[android-porting] CGroups - add_tid_to_cgroup failed to write

2012-10-04 Thread John Tapsell
I've enabled cgroups on my android system, and now get lots of errors like: W/SchedPolicy( 195): add_tid_to_cgroup failed to write '432' (Permission denied); background=0 (For both background=0 and background=1, and for many different pids). I can't understand why I get this error though. If

[android-porting] CGroups with MULTIPLE_APPLICATION_UIDS

2012-10-11 Thread John Tapsell
Hi all, I have a fundamental problem understanding how CGroups and MULTIPLE_APPLICATION_UIDS work together. The CGroups code doesn't allow you to move a process into a cgroup if the process doing the moving has a different UID than the target process. But in android, most processes