LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-05-2008, 05:41 AM   #1
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Rep: Reputation: 36
Question /proc/sys/vm/drop_caches


Hi all

what exactly is the purpose of /proc/sys/vm/drop_caches file ?

can any one give a practical situation where the tip given in the following link is used ?

http://www.ubuntu-unleashed.com/2008...-in-linux.html
 
Old 12-05-2008, 07:15 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
The only time I've ever seen anyone use this is when doing I/O benchmarking - dropping the caches forces disk operations to happen on the disk instead of in RAM.

Dave
 
Old 12-05-2008, 11:45 PM   #3
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Original Poster
Rep: Reputation: 36
Question

Quote:
Originally Posted by ilikejam View Post
The only time I've ever seen anyone use this is when doing I/O benchmarking - dropping the caches forces disk operations to happen on the disk instead of in RAM.

Dave
now what is this dentries ?
 
Old 12-06-2008, 12:39 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That's how I've used it - used to have to reboot all the time. Can also be employed when apps (updatedb e.g. - prior to mlocate) pollute the caches overnight.
As for dentry - what does google tell you ?.
 
Old 12-06-2008, 03:38 AM   #5
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Original Poster
Rep: Reputation: 36
Lightbulb

Quote:
Originally Posted by syg00 View Post
That's how I've used it - used to have to reboot all the time. Can also be employed when apps (updatedb e.g. - prior to mlocate) pollute the caches overnight.
As for dentry - what does google tell you ?.
the folloing site

http://kernelnewbies.org/KernelGlossary says like this

dentry

Directory entry, in-core structure defining a file's details: inode, parent dentry etc. Cached in a hash table indexed by hashed filename (see dcache).
 
  


Reply



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
/proc/sys/fs/file-nr ?? jharris Linux - General 5 07-27-2009 06:07 PM
LM_Sensors proc V sys Weirdname Slackware 5 11-29-2005 08:22 PM
/proc/sys/fs/file-max vaginismus Linux - General 1 10-31-2005 11:34 PM
/proc vs /sys alaios Linux - Newbie 1 06-11-2005 11:56 PM
/proc replaced by /sys in 2.6? Thaidog Linux - General 1 04-25-2005 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration