From owner-cvs-src@FreeBSD.ORG Thu Mar 3 06:42:41 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C82C116A4CE; Thu, 3 Mar 2005 06:42:41 +0000 (GMT) Received: from VARK.MIT.EDU (VARK.MIT.EDU [18.95.3.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BB5843D46; Thu, 3 Mar 2005 06:42:41 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.MIT.EDU (localhost [127.0.0.1]) by VARK.MIT.EDU (8.13.3/8.13.1) with ESMTP id j236g6Lf014518; Thu, 3 Mar 2005 01:42:06 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.MIT.EDU (8.13.3/8.13.1/Submit) id j236g6rv014517; Thu, 3 Mar 2005 01:42:06 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Thu, 3 Mar 2005 01:42:06 -0500 From: David Schultz To: Mike Silbersack Message-ID: <20050303064206.GA14434@VARK.MIT.EDU> Mail-Followup-To: Mike Silbersack , David Xu , John Baldwin , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200503021343.j22DhpQ3075008@repoman.freebsd.org> <200503020915.28512.jhb@FreeBSD.org> <4226446B.7020406@freebsd.org> <20050303033115.GA13174@VARK.MIT.EDU> <42269DB0.6070107@freebsd.org> <20050303052902.GA14011@VARK.MIT.EDU> <4226A46B.2090704@freebsd.org> <20050303060357.GA14180@VARK.MIT.EDU> <20050303001403.W811@odysseus.silby.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050303001403.W811@odysseus.silby.com> cc: cvs-src@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: David Xu cc: John Baldwin cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern kern_sig.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2005 06:42:41 -0000 On Thu, Mar 03, 2005, Mike Silbersack wrote: > > On Thu, 3 Mar 2005, David Schultz wrote: > > >Of course, there's another possible solution which is to remove > >the swapping code entirely. That would certainly simplify things, > >but it would also make FreeBSD degrade less gracefully under load. > > I don't think that would be a big loss; by the time you're doing a lot of > process swapping, you're pretty screwed. > > A process has to be swapped back in in order for it to be killed, right? > We might be better off without swapping, in that case. Yeah, with 16K kernel stacks, you'd have to swap a lot of threads to make a big difference in the amount of wired memory in the system. KSE helps with this, because processes with thousands of user threads don't have thousands of kernel threads. Another thing that swapping does, though, is prevent some processes from running for a while when the system is under load, thereby reducing contention for resources and allowing the other processes to get things done. If people decide to go this way, it might be a good idea to keep the second feature. It costs very little in terms of complexity because no actual swapping is done. But who knows? Maybe nobody cares about this, either...