Re: [android-kernel] Configuring cgroups

2012-05-31 Thread Kanishka Ariyapala
Thank you Ken & San for the replies. I want to make a process move between two cgroups depending on a value from a sensor(GPS) So I need to automate it, with out user issuing echo. How to get around this? kernel module or hard coding it in sched.c or cgroup.c.. On Thu, May 31, 2012 at 10:52 AM, Sa

Re: [android-kernel] Configuring cgroups

2012-05-31 Thread San Mehat
Make sure you have http://git.android-x86.org/?p=kernel/common.git;a=commit;h=5038d42d2e60c855cf5b097197d95adaa1269d32 The code-change also should make it somewhat clearer on how the checks end up happening. Cheers, -san On Thu, May 31, 2012 at 10:47 AM, Ken Chen wrote: > > > On Wed, May 30,

Re: [android-kernel] Configuring cgroups

2012-05-31 Thread Ken Chen
On Wed, May 30, 2012 at 3:56 AM, Kanishka Ariyapala wrote: > Thank you Ken for the reply. I created a cgroup under /dev/cpuctl and > added a process to the tasks file. using echo PID > tasks. however it wont > get registered there, of course the PID changes every time when the > application is re-

Re: [android-kernel] Configuring cgroups

2012-05-30 Thread Kanishka Ariyapala
Thank you Ken for the reply. I created a cgroup under /dev/cpuctl and added a process to the tasks file. using echo PID > tasks. however it wont get registered there, of course the PID changes every time when the application is re-started. In my case I was testing with browser and the music player.

Re: [android-kernel] Configuring cgroups

2012-05-29 Thread Ken Chen
Currently, Android dalvik VM leverages cpu cgroup to determine whether to use kernel scheduler policies, /dev/cpuctl is mounted in init.rc by default. You can create a sub-cpu cgroup under /dev/cpuctl, and control the priorization of processes there as long as your process is granted with CAP_SYS_N

Re: [android-kernel] Configuring cgroups

2012-05-28 Thread Kanishka Ariyapala
after some googling came to know that android framework is it self using cgroups. Is it the reason for the device or resource busy error? Dose it mean that I won't be able to use cgroups? On Mon, May 28, 2012 at 12:26 AM, DK wrote: > Hi, > > I have trouble configuring cgroups, please help! When

[android-kernel] Configuring cgroups

2012-05-28 Thread DK
Hi, I have trouble configuring cgroups, please help! When I issue the following command I get the error "mount: Device or resource busy" # mount -t cgroup -ocpu none /dev/cpuctl These are the configurations options that I have enabled. CONFIG_GROUP_SCHED=y CONFIG_FAIR_GROUP_SCHED=y CONFIG_RT_GR