Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-13-2010, 09:37 AM   #1
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
drop_caches doesn't drop all caches

I try this command:
$ sudo su -c 'sync && echo 3 > /proc/sys/vm/drop_caches; free'
And here's result:
             total       used       free     shared    buffers     cached
Mem:       1017108     405280     611828          0          8     183324
-/+ buffers/cache:     221948     795160
Swap:            0          0          0
Why after drop_caches do i still have lots of data cached?
Old 11-14-2010, 12:09 PM   #2
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
As my understand, it is normal. I suggest you open up 2 Terminals, the first one run "watch -n 1 'free -m'" and the second run the "sync && echo 3 > /proc/sys/vm/drop_caches" to see the memory cache from the first down immediately.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
drop_caches himdemon Linux - Enterprise 3 05-05-2010 09:31 AM
kernel 2.6.9-89.0.9.ELsmp related question - drop_caches amit shukla Linux - Kernel 2 10-10-2009 10:22 PM
/proc/sys/vm/drop_caches sulekha Ubuntu 4 12-06-2008 04:38 AM
Drop connections to port 80 at firewall machine also drop at protected network? Niceman2005 Linux - Security 2 10-27-2005 09:21 AM
iptables - drop all -> allow needed OR allow all -> drop specific lucastic Linux - Security 5 12-21-2004 03:07 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration