From owner-freebsd-current@FreeBSD.ORG Sat Jul 26 01:04:35 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F05FF37B401 for ; Sat, 26 Jul 2003 01:04:35 -0700 (PDT) Received: from phk.freebsd.dk (phk.freebsd.dk [212.242.86.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id F278643F85 for ; Sat, 26 Jul 2003 01:04:34 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by phk.freebsd.dk (8.12.8/8.12.8) with ESMTP id h6Q84OV3000691; Sat, 26 Jul 2003 08:04:25 GMT (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 h6Q84M5H052700; Sat, 26 Jul 2003 10:04:24 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: "Ahmed Al-Hindawi" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 26 Jul 2003 07:58:44 -0000." Date: Sat, 26 Jul 2003 10:04:22 +0200 Message-ID: <52699.1059206662@critter.freebsd.dk> cc: mezz7@cox.net cc: freebsd-current@freebsd.org cc: wmoran@potentialtech.com cc: kientzle@acm.org Subject: Re: Memory Mangement Problem in 5.1-RELEASE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jul 2003 08:04:36 -0000 In message , "Ahmed Al-Hindawi" writes : >>If your system is spending a lot of time moving data to and from swap when >>it is not memory-starved, or if it is stalling memory allocations that it >>should be able to fulfill from free RAM, that's a concern. > >That is exactly it. I emphaises th words " when it is not memory-starved ". >It isn't memory starved. > >Also I get 150Mb frequently of swap disk space, whilst still having a >complete third of my memory free!! > >I can understand everyones view on this, that the swap algorithim is swaping >pre-emtively. But 150MB?? Is that what is called a low level of swaping?? Programs like cp(1) uses mmap(2) to copy things, so if you cp(1) a big file, it is not uncommon for some programs to end up on swap. Until they are used again, they will not get paged in. I often see the getty's for the vty's and similar junk on my swap space. -- 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.