linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* linux-mm wiki drop_caches doc is incomplete
@ 2018-09-12 16:39 Todd Vierling
  0 siblings, 0 replies; only message in thread
From: Todd Vierling @ 2018-09-12 16:39 UTC (permalink / raw)
  To: Linux-MM

I've traced back several bad uses of drop_caches to users and bloggers
who have used this doc page as a reference:

https://linux-mm.org/Drop_Caches

Of course, *we* know that this knob is intended for benchmarking and
debugging, but many less experienced system administrators don't. To a
more green admin, "free" memory might be considered a "good" thing,
never mind the entire purpose of reclaimable caches.

As this is not an editable moinmoin page, will someone with the proper
perms please fix this page, to include the next two paragraphs from the
kernel doc where it came from?:

===

https://www.kernel.org/doc/Documentation/sysctl/vm.txt

...

This file is not a means to control the growth of the various kernel
caches (inodes, dentries, pagecache, etc...)  These objects are
automatically reclaimed by the kernel when memory is needed elsewhere on
the system.

Use of this file can cause performance problems.  Since it discards
cached objects, it may cost a significant amount of I/O and CPU to
recreate the dropped objects, especially if they were under heavy use.
Because of this, use outside of a testing or debugging environment is
not recommended.

-- 
-- Todd Vierling <todd.vierling@oracle.com> +1-770-730-4426

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-12 16:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-12 16:39 linux-mm wiki drop_caches doc is incomplete Todd Vierling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox