From owner-freebsd-arch@FreeBSD.ORG Fri Aug 1 03:02:07 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FC6E37B401 for ; Fri, 1 Aug 2003 03:02:07 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7223243FBD for ; Fri, 1 Aug 2003 03:02:06 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h71A20mE007380; Fri, 1 Aug 2003 12:02:00 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 01 Aug 2003 11:22:00 +0200." Date: Fri, 01 Aug 2003 12:02:00 +0200 Message-ID: <7379.1059732120@critter.freebsd.dk> cc: Peter Jeremy cc: arch@freebsd.org Subject: Re: headsup: swap_pager.c X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2003 10:02:07 -0000 In message , Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= writes: >"Poul-Henning Kamp" writes: >> The thing you overlook is that often when things gets paged out, the >> system is short on memory and therefore more likely to not do anything >> productive, whereas when things gets paged in, there are a better chance >> of some other process being able to use the CPU time productively. >> If we did predictive pageouts like some of the "serious" mainfram OS's >> this would be less true. > >How hard would it be to get the kernel to write the pages "most likely >to be swapped out" to swap in the idle loop, to save time if / when >they actually need to be swapped out later? I don't know :-) Quite frankly, given the sizes of RAM we see these days, I think that paging optimizations may be largely a thing of the past. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.