Re: [RFC] How to handle the rules engine for cgroups

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ulrich Drepper
Date: Thursday, July 10, 2008 - 3:29 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vivek Goyal wrote:

That's what I said.  It would be necessary to get the old state and
reset it if necessary.

As for the interface: I hope nobody honestly thinks that it is doable to
perform a whole bunch of filesystem operations for every exec.

And more: reading a rule file, interpreting the rules to find the best
match, etc is also too expensive.  Every process would have to read the
rule file again.  If this is non-trivial or the rule file is large, the
cost of an exec could easily be overshadowed by the cost of this
preparation.  Unlike the kernel, the userlevel runtime cannot in general
amortize the cost over several exec calls.  Handling all this in the
kernel wouldn't have any of these problems.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkh2jVMACgkQ2ijCOnn/RHQ6JACgx4W0dUh/MK6po23D1ObcnsKA
HOAAn2Qfrh8m5zsdHQoniaoLl12Ut3ZE
=IU/X
-----END PGP SIGNATURE-----
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Tue Jul 1, 12:11 pm)
RE: [RFC] How to handle the rules engine for cgroups, Kazunaga Ikeno, (Wed Jul 2, 2:33 am)
Re: [RFC] How to handle the rules engine for cgroups, KAMEZAWA Hiroyuki, (Wed Jul 2, 6:19 pm)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 3, 8:54 am)
Re: [RFC] How to handle the rules engine for cgroups, KAMEZAWA Hiroyuki, (Thu Jul 3, 5:34 pm)
Re: [RFC] How to handle the rules engine for cgroups, Balbir Singh, (Tue Jul 8, 2:35 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Tue Jul 8, 6:45 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Thu Jul 10, 2:07 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Thu Jul 10, 2:23 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 7:06 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 7:30 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 7:33 am)
Re: [RFC] How to handle the rules engine for cgroups, Rik van Riel, (Thu Jul 10, 7:48 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 8:40 am)
Re: [RFC] How to handle the rules engine for cgroups, Dhaval Giani, (Thu Jul 10, 8:42 am)
Re: [RFC] How to handle the rules engine for cgroups, Ulrich Drepper, (Thu Jul 10, 8:56 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Thu Jul 10, 9:41 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Thu Jul 10, 9:46 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Thu Jul 10, 9:51 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 10:19 am)
Re: [RFC] How to handle the rules engine for cgroups, Rik van Riel, (Thu Jul 10, 10:25 am)
Re: [RFC] How to handle the rules engine for cgroups, Ulrich Drepper, (Thu Jul 10, 10:39 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 11:41 am)
Re: [RFC] How to handle the rules engine for cgroups, Ulrich Drepper, (Thu Jul 10, 3:29 pm)
Re: [RFC] How to handle the rules engine for cgroups, KAMEZAWA Hiroyuki, (Thu Jul 10, 5:55 pm)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Mon Jul 14, 6:57 am)
Re: [RFC] How to handle the rules engine for cgroups, David Collier-Brown, (Mon Jul 14, 7:44 am)
Re: Re: [RFC] How to handle the rules engine for cgroups, kamezawa.hiroyu, (Mon Jul 14, 8:07 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Mon Jul 14, 8:21 am)
RE: [RFC] How to handle the rules engine for cgroups, Kazunaga Ikeno, (Thu Jul 17, 12:05 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 17, 6:47 am)
Re: [RFC] How to handle the rules engine for cgroups, KAMEZAWA Hiroyuki, (Fri Jul 18, 2:52 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Fri Jul 18, 8:46 am)
Re: [RFC] How to handle the rules engine for cgroups, Balbir Singh, (Fri Jul 18, 9:39 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Fri Jul 18, 11:55 am)
Re: Re: [RFC] How to handle the rules engine for cgroups, kamezawa.hiroyu, (Fri Jul 18, 4:05 pm)
Re: Re: [RFC] How to handle the rules engine for cgroups, kamezawa.hiroyu, (Fri Jul 18, 4:10 pm)
Re: [RFC] [PATCH -mm] cgroup: uid-based rules to add proce ..., David Collier-Brown, (Tue Aug 26, 8:04 am)
Re: [RFC] [PATCH -mm] cgroup: uid-based rules to add proce ..., David Collier-Brown, (Tue Aug 26, 9:32 am)