[PATCH 0/4] Add SCHED_BATCH and SCHED_IDLE support to chrt

Denys Vlasenko vda.linux at googlemail.com
Sat Jan 27 18:37:26 UTC 2018


On Wed, Jan 24, 2018 at 1:28 AM, Povilas Kanapickas <povilas at radix.lt> wrote:
>>> The following patches add SCHED_BATCH and SCHED_IDLE support to chrt.
>>> The priority limits are fixed to follow the specification. The last
>>> patch avoids hardcoding the values of SCHED_* macros as array indices.
>>> Perhaps counter-intuitively, this leads to binary size reduction of
>>> 90 bytes on x86-64. However the patch series as a whole still increase
>>> the binary size by 173 bytes on x86-64.
>>
>> Applied patches 1 and 2. Fixed a problem of patch 3 a bit differently.
>> Patch 4 increases the code, not applied.
>
> Thanks a lot.
>
> I'd like to know what I missed with regards to code size increase. Which
> architectures do you check the code size on? Is there anything else I
> should've known? Maybe the size of the text segment carries more weight
> than e.g. rodata or something similar?

This may depend on toolchain and libc. In my test, with my toolchain,
it was not a win.


More information about the busybox mailing list