From owner-cvs-all Sat Jun 9 11: 7: 3 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BE8A737B401; Sat, 9 Jun 2001 11:06:58 -0700 (PDT) (envelope-from dillon@FreeBSD.org) Received: (from dillon@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f59I6wO10857; Sat, 9 Jun 2001 11:06:58 -0700 (PDT) (envelope-from dillon) Message-Id: <200106091806.f59I6wO10857@freefall.freebsd.org> From: Matt Dillon Date: Sat, 9 Jun 2001 11:06:58 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm vm_map.c vm_map.h vm_pageout.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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