Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jun 2001 11:06:58 -0700 (PDT)
From:      Matt Dillon <dillon@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/vm vm_map.c vm_map.h vm_pageout.c
Message-ID:  <200106091806.f59I6wO10857@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
dillon      2001/06/09 11:06:58 PDT

  Modified files:
    sys/vm               vm_map.c vm_map.h vm_pageout.c 
  Log:
  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
  
  Revision  Changes    Path
  1.202     +36 -1     src/sys/vm/vm_map.c
  1.64      +2 -1      src/sys/vm/vm_map.h
  1.177     +9 -4      src/sys/vm/vm_pageout.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106091806.f59I6wO10857>