From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 6 18:46:02 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFFDD106566B for ; Tue, 6 Sep 2011 18:46:02 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by mx1.freebsd.org (Postfix) with ESMTP id 7BBAA8FC15 for ; Tue, 6 Sep 2011 18:46:02 +0000 (UTC) Received: by eye4 with SMTP id 4so4003152eye.31 for ; Tue, 06 Sep 2011 11:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=iBLnrpOez55hPO0oJBAHyLY40t1VPWyrUWYhjf4/js8=; b=xplE28mB4hfd2pECki/9fft448x39EsvtpzWe4b8+uHTgjFvrpiekWCTfLdLlveIPu j3U7ADeQ7evUa2DI1UKt5MjRCQQmIpMsgvgfs+ykpNnoe5ytZTikbqpV6M+KtRCrzt5K Jh0FBPjOJul1rzSQ0Ov29v0g/RdxGKD50hn/Q= Received: by 10.213.8.80 with SMTP id g16mr1496532ebg.74.1315332937976; Tue, 06 Sep 2011 11:15:37 -0700 (PDT) Received: from limbo.lan ([195.225.157.86]) by mx.google.com with ESMTPS id e4sm1568499eec.10.2011.09.06.11.15.36 (version=SSLv3 cipher=OTHER); Tue, 06 Sep 2011 11:15:37 -0700 (PDT) Message-ID: <4E666347.5010603@gmail.com> Date: Tue, 06 Sep 2011 21:15:35 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:6.0.1) Gecko/20110902 Thunderbird/6.0.1 MIME-Version: 1.0 To: Sean Hamilton References: <20110905194857.GC9801@dan.emsphone.com> In-Reply-To: <20110905194857.GC9801@dan.emsphone.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: Recommended amount of swap X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 18:46:03 -0000 05.09.2011 22:48, Dan Nelson написав(ла): > In the last episode (Sep 05), Sean Hamilton said: >> What is the state of the art for the recommended amount of swap in >> FreeBSD? Both "normal" systems with 512 MB - 8 GB of RAM, and large >> database systems with around 128 - 256 GB. > > I suggest 2x RAM for systems less than 4gb or so. Anything more than 4GB of > swap is probably never going to be used, and if it is used, you're just > going to thrash your swap device. If you have 128GB of RAM and need to swap > to disk, you desperately need more RAM, not swap :) My +1 to wishlist, I want OpenOffice to not trash memory when reading large xlsx files. Mem: 1937M Active, 243M Inact, 672M Wired, 98M Cache, 9412K Free Swap: 36G Total, 21G Used, 15G Free, 59% Inuse, 252K In PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 1912 arcade 5 45 1 23311M 1721M ucond 0 66:07 55.37% /usr/local/openoffice.org-3.3.0/openoffice.org3/program/so Different things happens. When I hardly need some swap I think about: 0. More RAM. 1. Spare flash or SSD. 2. Another disk. 3. Touching disk sizes. Also please note that system that uses at least 1G of swap actively (I don't mean tmp/mdfs or long running non active processes) is dripping slime and therefor is useless and should be upgraded. -- Sphinx of black quartz judge my vow.