User: Password:
|
|
Subscribe / Log in / New account

Swapping

Swapping

Posted Jul 30, 2011 17:54 UTC (Sat) by oak (guest, #2786)
In reply to: Swapping by mhelsley
Parent article: Checkpoint/restart (mostly) in user space

That's what cgroups is for. You make sure that things OOM early enough that rest of the system has enough memory to handle it gracefully.

As to kernel swapping the OOMed program back to ram from swap when you read the dump file, with cgroups setup retaining enough memory for the rest of the system (and kernel) while the OOMing container group is frozen that shouldn't be a problem either.


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds