Discussion:
About supporting relative values (e.g. 50%) in configuration
(too old to reply)
ChenQi
2018-03-08 06:39:29 UTC
Permalink
Raw Message
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.

Best Regards,
Chen Qi
ChenQi
2018-03-08 07:48:54 UTC
Permalink
Raw Message
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.

Best Regards,
Chen Qi
Zbigniew Jędrzejewski-Szmek
2018-03-09 08:13:40 UTC
Permalink
Raw Message
Post by ChenQi
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.
"""
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.

Zbyszek
John Florian
2018-03-22 16:01:10 UTC
Permalink
Raw Message
Post by Zbigniew Jędrzejewski-Szmek
Post by ChenQi
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.
"""
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

Lennart Poettering
2018-03-20 10:33:12 UTC
Permalink
Raw Message
Post by ChenQi
Hi All,
I'd like to know if systemd community thinks that adding support for
relative values in configuration is a good idea.
Depends on which precise options you are talking of? But yeah, in general
would be very welcome for a number of settings!
Post by ChenQi
I found a related patch and discussion in
https://lists.freedesktop.org/archives/systemd-devel/2015-May/032191.html.
"""
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?
Correct!

Would be great if you'd submit PRs for this!

Lennart
--
Lennart Poettering, Red Hat
Loading...