[systemd-devel] MemoryLimit and MemorySoftLimit

Albert Strasheim fullung at gmail.com
Mon Mar 26 02:50:11 PDT 2012


Hello

On Mon, Mar 26, 2012 at 11:44 AM, Manuel Amador <rudd-o at rudd-o.com> wrote:
> memorylimit and memorysoftlimit can be determined using the ulimit system
> call.

Do you mean getrlimit? man 2 ulimit on F16 says it's not implemented.
If it's getrlimit, is it RLIMIT_AS?

> you cannot detect when you've hit the soft limit other than by getting a NULL
> on malloc.

Thanks. I guess I could just duplicate this info with an environment
variable or parameter passed to the process.

Regards

Albert


More information about the systemd-devel mailing list