All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 0/3] track pte pages and use in OOM score
@ 2011-04-15 17:38 ` Dave Hansen
  0 siblings, 0 replies; 16+ messages in thread
From: Dave Hansen @ 2011-04-15 17:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-mm, Dave Hansen

PTE pages are a relatively invisible memory user.  Neither users
nor the kernel have any way of telling how many of them any given
application is using.  Nefarious applications can also
potentially tie up lagre amounts of memory in them:

	foo = malloc(big);
	touch(foo);
	madvise(foo, big, MADV_DONTNEED);

That'll leave you with no RSS for "foo", but the pagetable pages
will still be there.  Do that enough times, and you can
potentially harm the system.  Even worse, the OOM killer will not
necessarily go after such an application since the kernel has no
record of the pages.

For the containers and OpenVZ folks, pte pages are one of the
main consumers of kernel memory.  They should be able to use this
code as well.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-04-26 19:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-15 17:38 [RFC][PATCH 0/3] track pte pages and use in OOM score Dave Hansen
2011-04-15 17:38 ` Dave Hansen
2011-04-15 17:38 ` [RFC][PATCH 1/3] pass mm in to pgtable ctor/dtor Dave Hansen
2011-04-15 17:38   ` Dave Hansen
2011-04-15 17:38 ` [RFC][PATCH 2/3] track numbers of pagetable pages Dave Hansen
2011-04-15 17:38   ` Dave Hansen
2011-04-16  9:44   ` Matt Fleming
2011-04-16  9:44     ` Matt Fleming
2011-04-18 15:02     ` Dave Hansen
2011-04-18 15:02       ` Dave Hansen
2011-04-26 14:57       ` Matt Fleming
2011-04-26 14:57         ` Matt Fleming
2011-04-26 19:26         ` Hugh Dickins
2011-04-26 19:26           ` Hugh Dickins
2011-04-15 17:38 ` [RFC][PATCH 3/3] use pte pages in OOM score Dave Hansen
2011-04-15 17:38   ` Dave Hansen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.