• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to free pagecache, dentries and inodes from memory on linux

March 14, 2014 by Sharad Chhetri Leave a Comment

In this tutorial we will learn,how to free pagecache, dentries and inodes from memory on linux systems. The linux system is quite capable to manage the memory itself.Sometimes we require to flush the cache from memory in linux system .
On writing the file /proc/sys/vm/drop_caches cause the kernel to drop clean caches, dentries and inodes from memory.

To free pagecache:

echo 1 > /proc/sys/vm/drop_caches


To free dentries & inodes:

echo 2 > /proc/sys/vm/drop_caches

To free pagecache, dentries and inodes:

echo 3 > /proc/sys/vm/drop_caches

In given below screenshot, you can observe different values for buffers and cached after running the command echo 3 > /proc/sys/vm/drop_caches

flush memory linux

Recommended further reading for inode and dentry

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0
  2. df command not showing correct free space in linux
  3. Linux: Set user password by using encrypted password in command
  4. create a system account below uid 500 on RHEL/CentOS/Scientific Linux
  5. How to show line numbers with less command in Linux
  6. How to show user account password expiration detail on Linux
  7. 6 df Command Examples To Check Mounted Filesystem On Linux
  8. 6 important examples of cd command on Linux and Unix Systems
  9. print working directory ( pwd , PWD , OLDPWD ) in Linux / Unix
  10. Head command in Linux / Unix

Filed Under: Linux, Linux Commands Tagged With: linux command, memory

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

Non interactive ,without typing password do ssh to Server : By sshpass

find command to search keyword in files recursively in linux

Convert video file into gif file through command line in linux

How to put slider shortcode only in home page in WordPress

Recover Linux Grub Password in linux rescue mode CentOS/Red Hat

How to install pam_mysql in CentOS or Red Hat

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy