LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

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:
Code:
             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, 11:09 AM   #2
quanta
Member
 
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.
 
  


Reply


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 08:31 AM
kernel 2.6.9-89.0.9.ELsmp related question - drop_caches amit shukla Linux - Kernel 2 10-10-2009 09:22 PM
/proc/sys/vm/drop_caches sulekha Ubuntu 4 12-06-2008 03:38 AM
Drop connections to port 80 at firewall machine also drop at protected network? Niceman2005 Linux - Security 2 10-27-2005 08:21 AM
iptables - drop all -> allow needed OR allow all -> drop specific lucastic Linux - Security 5 12-21-2004 02:07 AM


All times are GMT -5. The time now is 07:03 AM.

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