On Mon, Mar 26, 2012 at 4:46 PM, Lennart Poettering <lenn...@poettering.net> wrote: >> Also, is there some standard way for the app[M#O7lication to determine if a >> MemoryLimit= is configured? We might want to automatically size some >> buffers based on this limit. > You can read /proc/self/cgroup. Find the line with ":memory:" there, > then extract the path after the second ":". Then use that path under > /sys/fs/cgroup/memory and read the "memory.soft_limit_in_bytes" file in > it.
Sweet, thanks very much! Regards Albert _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel