On 05/13/2013 09:24 PM, Dirk Brandewie wrote: > On 05/13/2013 12:13 PM, Toralf Förster wrote: >> On 05/13/2013 07:57 PM, Dirk Brandewie wrote: >>> cd /sys/fs/cgroup/cpu >>> mkdir bonic >>> echo 400 > boinc/cpu.shares >>> boinc & >>> echo $! > boinc/tasks >> >> In many places of my scripts for automated testing I use currently the >> "nice -n" prefix at my ThinkPad to keep a long battery life, quiet fan, >> cool CPU. The CPU just runs with minimal frequency but will give >> med/max. power on demand. >> >> If the P-State governor will be the replacement the old behaviour - >> >> the kernel menu config says "will become the perferred ... (sic!) >> ...scaling driver for Sandy bridge processors" - >> >> is there a nifty user space tool which replaces "nice" and do all cgroup >> stuff for the user ? >> > > cgexec from the libcgroup-tools package (fedora name) look like it will > place > a process in a group for you. > > https://wiki.archlinux.org/index.php/Cgroups > > Has some useful examples. > > --Dirk >
I'm not really convinced about using P-State in favour of ondemand - with the cpu ondemand governor my freshly booted system with just KDE started stays here around 39°C - with pstate I do have 53°C. Even more if I run BOINC the temperature is around 92° even with these settings : tail -v /sys/fs/cgroup/cpu/groupname/boinc/* ==> /sys/fs/cgroup/cpu/groupname/boinc/cgroup.clone_children <== 0 ==> /sys/fs/cgroup/cpu/groupname/boinc/cgroup.event_control <== tail: error reading ‘/sys/fs/cgroup/cpu/groupname/boinc/cgroup.event_control’: Invalid argument ==> /sys/fs/cgroup/cpu/groupname/boinc/cgroup.procs <== 3411 3415 3416 3417 3419 3421 3422 3423 3434 3435 ==> /sys/fs/cgroup/cpu/groupname/boinc/cpu.cfs_period_us <== 100000 ==> /sys/fs/cgroup/cpu/groupname/boinc/cpu.cfs_quota_us <== -1 ==> /sys/fs/cgroup/cpu/groupname/boinc/cpu.shares <== 2 ==> /sys/fs/cgroup/cpu/groupname/boinc/cpu.stat <== nr_periods 0 nr_throttled 0 throttled_time 0 ==> /sys/fs/cgroup/cpu/groupname/boinc/notify_on_release <== 0 ==> /sys/fs/cgroup/cpu/groupname/boinc/tasks <== 3417 3418 3419 3420 3421 3422 3423 3424 3434 3435 -- MfG/Sincerely Toralf Förster pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/