Re: [systemd-devel] [PATCH] Cache aggregated cgroup mask data at the slice level.

2013-11-07 Thread David Strauss
I'm specifically wondering if it's safe to use cgroup_mask in slices to aggregate the masks of their children. If not, it's trivial to add another item to the struct (like cgroup_mask_children) to use for aggregation. ___ systemd-devel mailing list system

Re: [systemd-devel] [PATCH] Cache aggregated cgroup mask data at the slice level.

2013-11-06 Thread David Strauss
This may need a few tweaks, most notably the extraneous log items. Is this a decent approach, though, to caching cgroup mask data? ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-dev

[systemd-devel] [PATCH] Cache aggregated cgroup mask data at the slice level.

2013-11-06 Thread david
From: David Strauss --- src/core/cgroup.c | 20 +++- src/core/cgroup.h | 2 ++ src/core/unit.c | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 6a6c504..b75ab55 100644 --- a/src/core/cgroup.c +++ b/src/core/cgr