linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
To: Chris Snook <csnook@redhat.com>
Cc: mike <mike503@gmail.com>, linux-mm@kvack.org
Subject: Re: Drop caches - is this safe behavior?
Date: Thu, 23 Aug 2007 23:47:37 -0500	[thread overview]
Message-ID: <1187930857.6406.12.camel@norville.austin.ibm.com> (raw)
In-Reply-To: <46CE3617.6000708@redhat.com>

On Thu, 2007-08-23 at 21:36 -0400, Chris Snook wrote:

> If you think the system is doing the wrong thing (and it doesn't sound 
> like it is) you should be tweaking the vm.swappiness sysctl.  The 
> default is 60, but lower values will make it behave more like you think 
> it should be behaving, though you'll still probably see a tiny bit of 
> swap usage.  Of course, if your webservers are primarily serving up 
> static content, you'll want a higher value, since swapping anonymous 
> memory will leave more free for the pagecache you're primarily working with.

swappiness deals with page cache, whereas writing "2" to drop_caches
cleans out the inode and dentry caches.  Mike may be better off writing
a high number (say 10000) to /proc/sys/vm/vfs_cache_pressure.  This
would cause inode and dentry cache to be reclaimed sooner than other
memory.

-- 
David Kleikamp
IBM Linux Technology Center

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2007-08-24  4:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bd9320b30708231645x3c6524efi55dd2cf7b1a9ba51@mail.gmail.com>
2007-08-24  0:07 ` mike
2007-08-24  1:36   ` Chris Snook
2007-08-24  4:35     ` mike
2007-08-24  5:14       ` Chris Snook
2007-08-24  4:47     ` Dave Kleikamp [this message]
2007-08-24  5:17       ` Chris Snook
2007-08-24  5:27         ` mike
2007-08-24  5:52           ` Chris Snook
2007-08-24  7:12             ` mike
2007-08-24 19:30               ` Chris Snook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1187930857.6406.12.camel@norville.austin.ibm.com \
    --to=shaggy@linux.vnet.ibm.com \
    --cc=csnook@redhat.com \
    --cc=linux-mm@kvack.org \
    --cc=mike503@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox