Chandra Seetharaman wrote:
On Thu, 2006-06-01 at 14:04 +0530, Balbir Singh wrote:Hi, Kirill, Kirill Korotaev wrote:Do you have any documented requirements for container resource management? Is there a minimum list of features and nice to have features for containersSure! You can check OpenVZ project (http://openvz.org) for example of required resource management. BTW, I must agree with other people here who noticed that per-process resource management is really useless and hard to use :(as far as resource management is concerned?I totally agree.
"nice" seems to be doing quite nicely :-)To me this capping functionality is a similar functionality to that provided by "nice" and all that's needed to make it useful is a command (similar to "nice") that runs tasks with caps applied. To that end I've written a small script (attached) that does this. As this is something that a user might like to combine with "nice" the command has an option for setting "nice" as well as caps.
Usage: withcap [options] command [arguments ...] withcap -h Options: [-c <CPU rate soft cap>] [-C <CPU rate hard cap>] [-n <nice value>] -c Set CPU usage rate soft cap -C Set CPU usage rate hard cap -n Set nice value -h Display this help Peter -- Peter Williams [email protected] "Learning, n. The kind of ignorance distinguishing the studious." -- Ambrose Bierce
Attachment:
withcap.sh
Description: application/shellscript
- Follow-Ups:
- Re: [ckrm-tech] [RFC 3/5] sched: Add CPU rate hard caps
- From: Mike Galbraith <[email protected]>
- Re: [ckrm-tech] [RFC 3/5] sched: Add CPU rate hard caps
- From: Kirill Korotaev <[email protected]>
- Re: [ckrm-tech] [RFC 3/5] sched: Add CPU rate hard caps
- References:
- [RFC 0/5] sched: Add CPU rate caps
- From: Peter Williams <[email protected]>
- [RFC 3/5] sched: Add CPU rate hard caps
- From: Peter Williams <[email protected]>
- Re: [RFC 3/5] sched: Add CPU rate hard caps
- From: "Balbir Singh" <[email protected]>
- Re: [RFC 3/5] sched: Add CPU rate hard caps
- From: Peter Williams <[email protected]>
- Re: [RFC 3/5] sched: Add CPU rate hard caps
- From: Kirill Korotaev <[email protected]>
- Re: [RFC 3/5] sched: Add CPU rate hard caps
- From: Balbir Singh <[email protected]>
- Re: [RFC 3/5] sched: Add CPU rate hard caps
- From: Kirill Korotaev <[email protected]>
- Re: [RFC 3/5] sched: Add CPU rate hard caps
- From: Balbir Singh <[email protected]>
- Re: [ckrm-tech] [RFC 3/5] sched: Add CPU rate hard caps
- From: Chandra Seetharaman <[email protected]>
- [RFC 0/5] sched: Add CPU rate caps
- Prev by Date: Why NFS enforce size limit on readdirplus
- Next by Date: Re: [BUG](-mm)pci_disable_device function clear bars_enabled element
- Previous by thread: Re: [ckrm-tech] sched: Add CPU rate hard caps
- Next by thread: Re: [ckrm-tech] [RFC 3/5] sched: Add CPU rate hard caps
- Index(es):