[systemd-devel] About supporting relative values (e.g. 50%) in configuration

John Florian john at doubledog.org
Thu Mar 22 16:01:10 UTC 2018


On 2018-03-09 03:13, Zbigniew Jędrzejewski-Szmek wrote:
> On Thu, Mar 08, 2018 at 03:48:54PM +0800, ChenQi wrote:
>> Hi All,
>>
>> I'd like to know if systemd community thinks that adding support for
>> relative values in configuration is a good idea.
>>
>> I found a related patch and discussion in https://lists.freedesktop.org/archives/systemd-devel/2015-May/032191.html.
>>
>> Quoting from the comments:
>> """
>>
>> I'd always keep our basic structures as generic as possible, and as
>> close to the way CPUs work. Hence: store things as fixed-point
>> 32bit/32bit internally, but make it configurable in percent as
>> user-pointing UI.
>>
>> """
>>
>> According to the comments, it seems that adding such support is acceptable?
>>
>> I' sending out this email because I want to check with the community
>> before I start to investigate more.
> Hi,
>
> yes, a patch to allow relative values would be very much welcome.

Indeed, very much!  Please see my bug[0] for some history on this.

[0] https://bugzilla.redhat.com/show_bug.cgi?id=874631


More information about the systemd-devel mailing list