lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 1 Nov 2020 16:47:42 +0000
From:   NASA Jeff <tallboy258@...il.com>
To:     Linux Kml <linux-kernel@...r.kernel.org>
Subject: BFS revisited, brain fuck scheduling

Here's a somewhat imperfect, though short script I knocked together
that fixes scheduling issues.

while true
do
for i in `iotop -P -b -q -o -d 0.1 -n 10 | awk -F ' ' '{if ( $1 ~
/[0-9]/ && $10 > 10) print  $1}'`
do
        ionice -c 3 -p $i
       echo "process $i reniced to idel as it was hogging io"
done
for i in `top  -b -d 0.1 -n 10 | awk -F ' ' '{if ( $1 ~ /[0-9]/ && $4
== 0 && $9 > 15) print  $1}'`
do
        renice -n 10 -p $i
       echo "process $i reniced to idel as it was hogging cpu"
done
for i in `top  -b -d 0.1 -n 10 | awk -F ' ' '{if ( $1 ~ /[0-9]/ && $4
== 10 && $9 < 10) print  $1}'`
do
        renice -n 0 -p $i
       echo "process $i reniced to idel as it stopped hogging cpu"
done
sleep 0.5
done

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ