summaryrefslogtreecommitdiffstats
path: root/sbin/growfs/debug.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-06-09 18:06:58 +0000
committerdillon <dillon@FreeBSD.org>2001-06-09 18:06:58 +0000
commit3d6ba4564bf239ad99f50088d7cad2ad6bc90092 (patch)
treed94b91b47c5666d6800efb64de3961ab8db12c56 /sbin/growfs/debug.h
parentb87b49d4db0c558a662d2405d6c74481bc36b2e9 (diff)
downloadFreeBSD-src-3d6ba4564bf239ad99f50088d7cad2ad6bc90092.zip
FreeBSD-src-3d6ba4564bf239ad99f50088d7cad2ad6bc90092.tar.gz
Two fixes to the out-of-swap process termination code. First, start killing
processes a little earlier to avoid a deadlock. Second, when calculating the 'largest process' do not just count RSS. Instead count the RSS + SWAP used by the process. Without this the code tended to kill small inconsequential processes like, oh, sshd, rather then one of the many 'eatmem 200MB' I run on a whim :-). This fix has been extensively tested on -stable and somewhat tested on -current and will be MFCd in a few days. Shamed into fixing this by: ps
Diffstat (limited to 'sbin/growfs/debug.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud