Skip to content

core: map io.bfq.weight to 1..1000#18467

Merged
keszybz merged 1 commit intosystemd:mainfrom
keszybz:bfq-io-weight
Feb 4, 2021
Merged

core: map io.bfq.weight to 1..1000#18467
keszybz merged 1 commit intosystemd:mainfrom
keszybz:bfq-io-weight

Conversation

@keszybz
Copy link
Copy Markdown
Member

@keszybz keszybz commented Feb 4, 2021

Aaargh. See the comment in the code.

Apparently the range is like that:
$ sudo bash -c 'echo "default 1001" >/sys/fs/cgroup/user.slice/io.bfq.weight'
bash: line 0: echo: write error: Numerical result out of range

$ uname -r
5.11.0-0.rc4.129.fc34.x86_64

/cc @paolo-github

Aaargh. See the comment in the code.

Apparently the range is like that:
$ sudo bash -c 'echo "default 1001" >/sys/fs/cgroup/user.slice/io.bfq.weight'
bash: line 0: echo: write error: Numerical result out of range

$ uname -r
5.11.0-0.rc4.129.fc34.x86_64
@lgtm-com
Copy link
Copy Markdown

lgtm-com Bot commented Feb 4, 2021

This pull request introduces 1 alert and fixes 2 when merging 1e6c897 into 436cde8 - view on LGTM.com

new alerts:

  • 1 for FIXME comment

fixed alerts:

  • 2 for FIXME comment

Copy link
Copy Markdown
Member

@bluca bluca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An... interesting interface. LGTM.

@bluca bluca added the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Feb 4, 2021
@keszybz
Copy link
Copy Markdown
Member Author

keszybz commented Feb 4, 2021

bionic-i386: FAILED TESTS: TEST-30-ONCLOCKCHANGE TEST-55-UDEV-TAGS
bionic-amd64: FAILED TESTS: TEST-17-UDEV-WANTS TEST-55-UDEV-TAGS

This looks unrelated to this PR, but maybe something changed recently to make those tests more flaky?

@bluca
Copy link
Copy Markdown
Member

bluca commented Feb 4, 2021

bionic-i386: FAILED TESTS: TEST-30-ONCLOCKCHANGE TEST-55-UDEV-TAGS
bionic-amd64: FAILED TESTS: TEST-17-UDEV-WANTS TEST-55-UDEV-TAGS

This looks unrelated to this PR, but maybe something changed recently to make those tests more flaky?

mmh TEST-55 does sometimes fail, but I cannot recall ever seeing TEST-30 fail before?

@keszybz
Copy link
Copy Markdown
Member Author

keszybz commented Feb 4, 2021

#12268

@bluca
Copy link
Copy Markdown
Member

bluca commented Feb 4, 2021

#12268

mmh looks like it was blocked for a while, but it is not currently? Only TEST-25 has a deny-list-ubuntu-ci

@poettering
Copy link
Copy Markdown
Member

still tempted to just drop bfq support. kernel people should figure out their api mess...

@poettering
Copy link
Copy Markdown
Member

lgtm though

@paolo-github
Copy link
Copy Markdown

paolo-github commented Feb 4, 2021 via email

@poettering
Copy link
Copy Markdown
Member

if kernel peeps can't figure out their mess I am not sure we should accept the bill for it though.

@keszybz keszybz removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Feb 4, 2021
@keszybz keszybz merged commit 29eb0ee into systemd:main Feb 4, 2021
@keszybz keszybz deleted the bfq-io-weight branch February 10, 2021 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants