'binder: RLIMIT_NICE not set' when using binder from the ubuntu side
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-grouper (Ubuntu) |
New
|
Medium
|
Unassigned | ||
linux-maguro (Ubuntu) |
New
|
Medium
|
Unassigned | ||
linux-mako (Ubuntu) |
New
|
Medium
|
Unassigned | ||
linux-manta (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
"""
static void binder_
{
long min_nice;
if (can_nice(current, nice)) {
set_user_
return;
}
min_nice = 20 - current-
binder_
"binder: %d: nice value %ld not allowed use "
"%ld instead\n", current->pid, nice, min_nice);
set_user_
if (min_nice < 20)
return;
binder_
}
"""
That happens because binder expects it to be able to change the nice value for the specific process, and fails when the process is started by Ubuntu, which has a default nice value of 0 (rlimit nice is set to 40 40 by default in android, via android's init).
tags: | added: kernel-da-key saucy |
Changed in linux-grouper (Ubuntu): | |
importance: | Undecided → Medium |
Changed in linux-maguro (Ubuntu): | |
importance: | Undecided → Medium |
Changed in linux-mako (Ubuntu): | |
importance: | Undecided → Medium |
Changed in linux-manta (Ubuntu): | |
importance: | Undecided → Medium |
Changed in touch-preview-images: | |
importance: | Undecided → Medium |
no longer affects: | touch-preview-images |
Some logs:
Jul 18 22:32:07 ubuntu-phablet kernel: [ 81.813598] binder: 1255: nice value 0 not allowed use 20 instead
Jul 18 22:32:07 ubuntu-phablet kernel: [ 81.813598] binder: 1255 RLIMIT_NICE not set
Jul 18 22:32:07 ubuntu-phablet kernel: [ 81.881927] binder: 1262: nice value -8 not allowed use 20 instead
Jul 18 22:32:07 ubuntu-phablet kernel: [ 81.881927] binder: 1262 RLIMIT_NICE not set
To reproduce: file_hint= /usr/share/ applications/ camera- app.desktop
- Stop unity8 (stop unity8)
- Start the camera-app as phablet user:
/usr/bin/camera-app -testability --fullscreen --desktop_