Is there a specific use case where you need the nice value increased?
Realize that we're also running in SCHED_BATCH mode, which also affects how
the processes are scheduled. We didn't really see any build time changes
when we switched this, only an increase in interactivity when using the
desktop while building a build.

If you did want to change this, it looks like we'd need to upgrade our
nsjail prebuilt (with this change
<https://github.com/google/nsjail/commit/494a5f63cdbb91565e8233133c345280687bd451>),
then you could add "--nice_value", "0", to the argument list here
<https://cs.android.com/android/platform/superproject/+/master:build/soong/ui/build/sandbox_linux.go;drc=0506361a60215defc5098a6253fdc8f51371ce88;l=158>
.

- Dan

On Wed, Aug 18, 2021 at 10:40 AM Longping Tang <[email protected]>
wrote:

> Hi  Dan
> I want to increase priority when building aosp.  How can I increase ni
> value to 0?
> On Monday, October 12, 2020 at 11:27:27 PM UTC+8 [email protected] wrote:
>
>> Thank you very much.
>>
>> 在2020年4月8日星期三 UTC+8 上午12:52:26<Dan Willemsen> 写道:
>>
>>> Yes, one byproduct of the nsjail sandboxing that we use is to switch up
>>> the scheduling groups. In our testing, this did not change the performance
>>> of the build.
>>>
>>> It did help the interactiveness (ssh, desktop w/mouse+keyboard, etc) of
>>> the machine while the build was running. It's still not perfect, but it's
>>> an improvement (cgroups help the most, but are difficult for the build to
>>> set up).
>>>
>>> - Dan
>>>
>>> On Tue, Apr 7, 2020 at 9:42 AM Minghui Ma <[email protected]> wrote:
>>>
>>>>
>>>> hi all
>>>>
>>>>  when i build android q version on ubuntu 18.04 i found all cpu at low
>>>> priority, and the ni value is 19, PRI value is 39. like below picture. is
>>>> this normal???
>>>>
>>>>
>>>>
>>>>
>>>> [image: QQ拼音截图20200407142802.png]
>>>>
>>>> --
>>>> --
>>>> You received this message because you are subscribed to the "Android
>>>> Building" mailing list.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-building?hl=en
>>>>
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Android Building" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/android-building/91a40872-46d8-4755-9419-06a039fbaccc%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/android-building/91a40872-46d8-4755-9419-06a039fbaccc%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/d770a1b0-c026-4689-8d13-d818d327c56an%40googlegroups.com
> <https://groups.google.com/d/msgid/android-building/d770a1b0-c026-4689-8d13-d818d327c56an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALQgHdkMDh%3DTZiZLMxbyBnR1i201sozE-KM28%2B7H5b5tZAxDcg%40mail.gmail.com.

Reply via email to