diff options
author | Lee Duncan <lduncan@suse.com> | 2022-10-14 10:56:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 10:56:59 -0700 |
commit | fd0b3973ac90f6b0e57f5007034705628f7d6b3e (patch) | |
tree | 09ee4f863201f7da24fccd043f73493e65bf8588 /doc/iscsid.8.template | |
parent | fe11f9da5c73581c0e1b01cc59031995b8254f96 (diff) | |
download | open-iscsi-fd0b3973ac90f6b0e57f5007034705628f7d6b3e.tar.gz |
iscsid/iscsiuio: fix OOM adjustment (#377)
* iscsid/iscsiuio: fix OOM adjustment
For both the iscsid and iscsiuio daemons, they try to modify
nice value and OOM adjustment value, so they have priority
and will not be killed by the OOM-killer.
But the code incorrectly set the value to "-17" for modern
linux systems, when the maximum is actually "-1000". While
making the changes, use "/proc/self/..." instead of
"/proc/<PID>/...", so we don't have to use getpid() nor
print out the pathname. Now we either write "-16" to
the old interface, "-1000" to the new interface, or we
print a warning.
Several "log_debug()" calls that should have been warnings
are changed to "log_warning()" calls in iscsid.
* iscsid/iscsiuio: fix OOM adjustment value for older systems
On older linux system, "-17" is the maximum, not "-16".
Diffstat (limited to 'doc/iscsid.8.template')
0 files changed, 0 insertions, 0 deletions