Page MenuHomeFreeBSD

linprocfs: Add /proc/self/oom_score_adj.
ClosedPublic

Authored by dchagin on Mar 29 2022, 8:27 PM.
Tags
None
Referenced Files
F157022558: D34710.id104342.diff
Mon, May 18, 12:15 AM
F157022517: D34710.id104417.diff
Mon, May 18, 12:15 AM
F157022505: D34710.id104346.diff
Mon, May 18, 12:15 AM
F157018806: D34710.diff
Sun, May 17, 11:46 PM
F156965452: D34710.id104342.diff
Sun, May 17, 4:48 PM
F156958285: D34710.id104346.diff
Sun, May 17, 3:49 PM
F156943759: D34710.id104417.diff
Sun, May 17, 1:11 PM
Unknown Object (File)
Sat, May 16, 7:38 PM
Subscribers

Details

Summary

To avoid annoyng messages from LTP test suites add the simple
implementation of /proc/self/oom_score_adj which is do nothing.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44923
Build 41811: arc lint + arc unit

Event Timeline

emaste added a subscriber: emaste.

Seems fine to implement as a nop, a couple of comments inline

sys/compat/linprocfs/linprocfs.c
1939

extra comment line

1942

Maybe add some underscores, do_oom_score_adj? dooomscoreadj is hard to read/parse

sys/compat/linux/linux_emul.c
190

Does Linux start at max? That seems somewhat surprising, I'd expect it to default to 0 with the ability to choose more or less susceptible to OOM killer than default.

This revision is now accepted and ready to land.Mar 29 2022, 8:46 PM
This revision now requires review to proceed.Mar 29 2022, 9:17 PM
This revision is now accepted and ready to land.Mar 30 2022, 5:08 PM
This revision was automatically updated to reflect the committed changes.