From owner-freebsd-questions@FreeBSD.ORG Tue Jun 6 05:55:16 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5660216B18C for ; Tue, 6 Jun 2006 05:33:53 +0000 (UTC) (envelope-from bkoenig@cs.tu-berlin.de) Received: from efacilitas.de (smtp.efacilitas.de [85.10.196.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id E03B143D45 for ; Tue, 6 Jun 2006 05:33:52 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-39-242.dynamic.qsc.de [212.202.39.242]) by efacilitas.de (Postfix) with ESMTP id AE8074D03A; Tue, 6 Jun 2006 07:34:08 +0200 (CEST) Received: from [192.168.1.2] (muhkuh.local [192.168.1.2]) by eurystheus.local (Postfix) with ESMTP id 2B5FA5285B; Tue, 6 Jun 2006 07:32:09 +0200 (CEST) Message-ID: <448513BE.2080600@cs.tu-berlin.de> Date: Tue, 06 Jun 2006 07:33:50 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-AT; rv:1.7.13) Gecko/20060519 X-Accept-Language: de, en MIME-Version: 1.0 To: pauls@utdallas.edu References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: questions@freebsd.org Subject: Re: Running out of swap space???? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 05:55:27 -0000 pauls@utdallas.edu schrieb: > I've got a server that is running out of swap space: > > +pid 37308 (mysqld), uid 88, was killed: out of swap space > +swap_pager: out of swap space > +swap_pager_getswapspace(1): failed > > The strange this is, this server has a 6GB swap partition! > > swapinfo -h > Device 1K-blocks Used Avail Capacity > /dev/da0s1b 6291456 2.6G 6.0G 43% > > This isn't exactly a resource-starved machine either: > > CPU: AMD Opteron(tm) Processor 244 (1793.88-MHz K8-class CPU) > Origin = "AuthenticAMD" Id = 0xf5a Stepping = 10 > > Features=0x78bfbff > SE,SSE2> > AMD Features=0xe0500800 > real memory = 2146893824 (2047 MB) > avail memory = 2065797120 (1970 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > > FreeBSD hostname.utdallas.edu 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu > Mar 30 19:25:18 CST 2006 > root@hostname.utdallas.edu:/usr/obj/usr/src/sys/SMPKERNEL amd64 > > last pid: 52327; load averages: 0.45, 0.46, 0.45 up 11+03:42:04 > 03:32:15 > 63 processes: 1 running, 62 sleeping > CPU states: 5.3% user, 0.0% nice, 0.8% system, 3.9% interrupt, 90.1% > idle > Mem: 1410M Active, 126M Inact, 190M Wired, 82M Cache, 214M Buf, 78M Free > Swap: 6144M Total, 2687M Used, 3457M Free, 43% Inuse > > Any suggestions are welcome - what could cause this? ps aux | sort -n +5 The latter processes need most memory. > How to > troubleshoot? This may be normal behaviour. It depends on the processes. > Possible solutions/workarounds? It depends also. Possible solutions are: Add more RAM, add swap (see [1]) or run less processes. [1] http://www.freebsd.org/handbook/adding-swap-space.html Regards Björn