Re: [PATCH v2 02/13] memcg: Kernel memory accounting infrastructure.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/13/2012 09:00 PM, Greg Thelen wrote:
Glauber Costa<glommer@xxxxxxxxxxxxx>  writes:
2) For the kernel itself, we are mostly concerned that a malicious container may
pin into memory big amounts of kernel memory which is, ultimately,
unreclaimable. In particular, with overcommit allowed scenarios, you can fill
the whole physical memory (or at least a significant part) with those objects,
well beyond your softlimit allowance, making the creation of further containers
impossible.
With user memory, you can reclaim the cgroup back to its place. With kernel
memory, you can't.

In overcommit situations the page allocator starts failing even though
memcg page can charge pages.
If you overcommit mem+swap, yes. If you overcommit mem, no: reclaim happens first. And we don't have that option with pinned kernel memory.

Of course you *can* run your system without swap, but the whole thing exists exactly because there is a large enough # of ppl who wants to be able to overcommit their physical memory, without failing allocations.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]