Re: [RFC] How to handle the rules engine for cgroups
From: Ulrich Drepper
Date: Thu Jul 10 2008 - 13:52:24 EST
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rik van Riel wrote:
> One easy way is to have a "migrate on exec" option added to the
> process group code.
That's going to be ugly because the exec functions are signal-safe.
I.e., they can happen at any time. This would mean that one always has
to set the migration policy before every exec call and that there must
be a way to retrieve the currently selected policy so that it can
potentially be restored. This policy must be a thread property, not a
process property.
Sticky information like this is IMO always hairy at best. We had the
same discussion at the time of the sys_indirect discussion. This new
syscall proposal was the result of sticky information not being suitable
and it could very well be used for the exec syscalls, too.
Again, this is all about failing exec calls of which there can be
arbitrarily many.
- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkh2SVAACgkQ2ijCOnn/RHSYsgCfeH3tTQLSILTksRTfWPhffY0x
okkAn0fQDRDBkqSboqzfrqlj1zpvA3Hm
=bi0P
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/