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

OOM and rlimits

OOM and rlimits

Posted Jun 9, 2013 3:31 UTC (Sun) by dlang (subscriber, #313)
In reply to: OOM and rlimits by giraffedata
Parent article: Toward reliable user-space OOM handling

if you exceed CPU limits, I would expect that the result would be that you get scheduled less frequently so that you drop back below the limits, not that you get killed.


(Log in to post comments)

OOM and rlimits

Posted Jun 9, 2013 21:32 UTC (Sun) by giraffedata (subscriber, #1954) [Link]

if you exceed CPU limits, I would expect that the result would be that you get scheduled less frequently so that you drop back below the limits, not that you get killed.

CPU time rlimits as we know them have always been total CPU time, as opposed to CPU utilization, so getting killed is pretty much the only option. But I've often thought that a more useful resource limitation for some processes would be a rate limitation. And I usually dream about having rate limits for other things too (e.g. you get 5 gigabyte-minutes per minute of real memory).

One way to implement CPU rate limit would be to keep the existing CPU time rlimit but just have the kernel stop scheduling the process indefinitely when the process goes over. Then some resource allocator process could raise the process' CPU time limit on a regular basis.

OOM and rlimits

Posted Jun 9, 2013 22:48 UTC (Sun) by anselm (subscriber, #2796) [Link]

It seems to me that control groups (cgroups) rather than resource limits may be what you are looking for.


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