search for: cgexec

Displaying 5 results from an estimated 5 matches for "cgexec".

2012 Jun 01
2
ssh & control groups
Hi List, I am looking for an option for sshd to start user's shell (when logging in interactively to a remote host) in a control group via cgexec - so for example: /bin/cgexec -g <username> /bin/bash This would be extremely handy on linux Terminal servers to control users access to the system resources (protect system from a malicious user hogging the machine by running cpu/memory intensive applications). Is something like that po...
2012 Oct 17
0
cgroup blkio.weight working, but not for KVM guests
...; <weight>1000</weight> </blkiotune> VM2 (background): <cputune> <shares>2</shares> </cputune> <blkiotune> <weight>100</weight> </blkiotune> I've tested write throughput on the host using cgexec and dd, demonstrating that libvirt has correctly set up the cgroups: cgexec -g blkio:libvirt/qemu/foreground time dd if=/dev/zero of=trash1.img oflag=direct bs=1M count=4096 & cgexec -g blkio:libvirt/qemu/background time dd if=/dev/zero of=trash2.img oflag=direct bs=1M count=4096 &...
2011 Feb 15
2
monitiring cpu usage via cgroup
...14 kernel if it is good enough for cgroup usage because I am trying to set a cgroup under cpu subsytem ( /dev/cgroup/cpu/group1/ ) that have /cpu.rt_runtime_us of 100000 while cpu.rt_period_us has a value of 1000000 i.e a ratio of 1/10 . still when I run a task (endless loop) in that group (cgexec -g cpu,cpuset:group1 ./test) it gets all the cpu core time that is assigned to it ( i watch via top utility) , so it seems that the quota set via the group does not take effect although I restart the cgconfig service . I also verified libcgroup is installed by: rpm -q libcgroup Am I missing...
2011 Jun 04
3
[PATCH 0/3] Enhancements to virt-ls
...extra stat information and optionally a file checksum. The output is designed to be easily grepped to look for common patterns. For example, to display all setuid and setgid executables in a virtual machine you can do: # virt-ls -lR -d guest / | grep '^- [42]' - 4755 12544 /bin/cgexec - - 4755 32448 /bin/fusermount - - 4755 78648 /bin/mount - - 4755 43160 /bin/ping - - 4755 47888 /bin/ping6 - - 4755 34904 /bin/su - - 4755 50432 /bin/umount - [etc] To display all public writable directories: # virt-ls -lR -d guest / | grep '^d ....
2016 Sep 07
2
how to limit cpu usage for specified processes
Hi, Is there some tool or method in centos that can limit cpu usage to some percentage for specified processes that consume large cpu resource? I found cpulimit which is only able to limit one process. what I want is one tool that can limit several same processes' cpu usage. Thanks! Regards andrew