[systemd-devel] [PATCH 1/2] RFC: journald: Allow to cache the cg_get_root_path
k.lewandowsk at samsung.com
Mon Jul 8 09:39:20 PDT 2013
On 06/27/2013 06:30 PM, Holger Hans Peter Freyther wrote:
> From: Holger Hans Peter Freyther <holger at moiji-mobile.com>
> Allow to cache the cg_get_root_path and introduce a new method
> cg_pid_get_path_shifted_with_root that can use the cached version
> instead of allocating a new string.
I have been thinking about something similar albeit a bit more
According to my analysis /proc access is costly and it would
be best to cache the result for later use. Difficulty comes
from trying to keep cache up to date, though.
I've just started looking into connector's cn_proc which _seem_
to offer all the required functionality (fork, exec, exit
notifications). I have to finish my prototype to verify if
it's worth complications it brings.
More information about the systemd-devel