From owner-freebsd-current@FreeBSD.ORG Fri Jul 25 04:44:31 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 177C237B401 for ; Fri, 25 Jul 2003 04:44:31 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C030F43FB1 for ; Fri, 25 Jul 2003 04:44:28 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h6PBiEj23185; Fri, 25 Jul 2003 08:44:14 -0300 Message-ID: <3F21180C.2060904@tcoip.com.br> Date: Fri, 25 Jul 2003 08:44:12 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Jeremy Messenger References: <000001c3521a$7fa912c0$6bd4bfac@AlHindawi> <3F203931.3030300@potentialtech.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Ahmed Al-Hindawi cc: freebsd-current@freebsd.org cc: Bill Moran 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: Fri, 25 Jul 2003 11:44:31 -0000 Jeremy Messenger wrote: > > Well, the 5.0, old -CURRENT and 4.8 have never touch the swap, until > 5.1- CURRENT. My system has 256mb ram and it's always touch swap now. If > I compile some stuff, sometime it will get around 300mb swap. Current, I > only have Gnome 2.3.x and Opera running, so what my top looks like this: > > Mem: 85M Active, 29M Inact, 51M Wired, 4496K Cache, 35M Buf, 73M Free > Swap: 512M Total, 79M Used, 433M Free, 15% Inuse > > But, I will remove the Gnome System Monitor applet, then reboot and see > how it goes for the whole afternoon. People, swap is just a backing store for idle data. If you have 79 Mb that isn't getting used, what would you prefer: to keep it swap-backed so you can throw the pages out on demand, or *wait* until your system is heavily loaded to put the pages on the swap? Anyway, placing data on the swap is not a problem. What is a problem is what some call "swapping": reading and writing to the swap all the time. Start a "vmstat 1" and see if pi and po have non-zero values constantly. If not, then your system is _not_ wasting time writing and reading to the disk. (btw, unless you have disk activity, writing data to the swap does not impact on performance either) -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net Ever feel like life was a game and you had the wrong instruction book?