cgexec man page on SuSE

Man page or keyword search:  
man Server   14857 pages
apropos Keyword Search (all sections)
Output format
SuSE logo
[printable version]


CGEXEC(1)		       libcgroup Manual			     CGEXEC(1)

NAME
       cgexec - run the task in given control groups

SYNOPSIS
       cgexec [-g <controllers>:<path>] [--sticky] command [arguments]

DESCRIPTION
       The  cgexec  program executes the task command with arguments arguments
       in the given control groups.

       -g <controllers>:<path>
	      defines the control groups in which the task will be run.	  con‐
	      trollers	is a list of controllers and path is the relative path
	      to control groups in the given controllers list.

	      This flag can be used multiple times to define multiple pairs of
	      lists of controllers and relative paths.	Instead of the list of
	      all mounted controllers, the wildcard b"*b" can be used.

	      If this option is not used, cgexec will automatically place  the
	      task in the right cgroup based on /etc/cgrules.conf.

       --sticky
	      If running the task command with this option, the daemon of ser‐
	      vice cgred (cgrulesengd process) does not change both  the  task
	      of  the  command	and  the child tasks. Without this option, the
	      daemon does not change the task of the command but it  automati‐
	      cally  changes  the  child  tasks	 to  the right cgroup based on
	      /etc/cgrules.conf.

EXAMPLES
       cgexec -g *:test1 ls
       runs command ls in control group test1 in all mounted controllers.

       cgexec -g cpu,memory:test1 ls -l
       runs command ls -l in control group test1 in controllers cpu  and  mem‐
       ory.

       cgexec -g cpu,memory:test1 -g swap:test2 ls -l
       runs command ls -l in control group test1 in controllers cpu and memory
       and control group test2 in controller swap.

FILES
       /etc/cgrules.conf
       default libcgroup configuration file

SEE ALSO
       cgrules.conf (5)

Linux				  2009-03-15			     CGEXEC(1)
[top]

List of man pages available for SuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net