From owner-freebsd-questions@FreeBSD.ORG Sun May 26 09:36:45 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D601B35A for ; Sun, 26 May 2013 09:36:45 +0000 (UTC) (envelope-from emorrasg@yahoo.es) Received: from nm25-vm7.bullet.mail.ird.yahoo.com (nm25-vm7.bullet.mail.ird.yahoo.com [212.82.109.208]) by mx1.freebsd.org (Postfix) with SMTP id 12FF77C for ; Sun, 26 May 2013 09:36:44 +0000 (UTC) Received: from [77.238.189.238] by nm25.bullet.mail.ird.yahoo.com with NNFMP; 26 May 2013 09:36:35 -0000 Received: from [46.228.39.65] by tm19.bullet.mail.ird.yahoo.com with NNFMP; 26 May 2013 09:36:35 -0000 Received: from [127.0.0.1] by smtp102.mail.ir2.yahoo.com with NNFMP; 26 May 2013 09:36:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s1024; t=1369560995; bh=GXBttxthDKKLekYMKkSc/Kcam4t5MoahwPALRr45eHs=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References:X-Mailer:Disposition-Notification-To:Mime-Version:Content-Type:Content-Transfer-Encoding; b=kEkYxS6xeIapyv+D1FzZhUd3cc4ao88DajYOmLb4RzAYeeomNqgGZex5D5EMer3VMdKrskrXrw+wJT4sz5Jyhdacd2/x/vwoeCXFfK2sJD7Zvo/mk3O0Km5vLCL50PgeuQCgqCCfFBuh/LSDGCS1YKTafoh4a4K2JClXhocWCyQ= X-Yahoo-Newman-Id: 318388.62563.bm@smtp102.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: qvbKPfsVM1kTG6nrTGwAgFiW10FT.H3Sy9Zd4tHDO1s2aKb uxTFPoO_LTbKUuFGTDnaEq7SYzja_j9LDg4NMpuTYUOvSFfryinPSVCpC_I8 QgCofwaL_.z0KwVvAgrd5eWM7HjzDnBiTO_fjtYnRtyXfcAHlnVtLaW0KAOK 41yV4otpIi9CVGmOEe5wX2vGUd5pMOIHQaAGmTdswei5aITjzTB7kLKzlmMn XHBqFuziDYtpB9pULoSynkZ2K1lLTIRMhSIvq4NqZMVMUyPfTCseTKF.7Y_4 9wAtUUjVwGGnn2XFbPiCiZj2ZGsfykqd8IbsqWrhhl0AI.y45NZFVVOztZ_D dhmdaihALTZo0y6wWQ.ssMEnts6q0lEaUho93PE0CBsP9IgutsbR5Sq_GfgA K.CPyES.3UQZkg2Avg.1QmIw- X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR X-Rocket-Received: from camibar.emorras.eu (emorrasg@89.7.216.154 with ) by smtp102.mail.ir2.yahoo.com with SMTP; 26 May 2013 09:36:35 +0000 UTC Date: Sun, 26 May 2013 11:36:37 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org Subject: Re: "swap" partition leads to instability? Message-Id: <20130526113637.cf6fdfd5b0cb7f0413fc5f8d@yahoo.es> In-Reply-To: <1369558712.96152.YahooMailNeo@web165006.mail.bf1.yahoo.com> References: <1369558712.96152.YahooMailNeo@web165006.mail.bf1.yahoo.com> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.17; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "M. V." X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 May 2013 09:36:45 -0000 On Sun, 26 May 2013 01:58:32 -0700 (PDT) "M. V." wrote: > hi everyone, > > I have a 24/7 network server/gateway with FreeBSD-8.2 on a SSD drive. it's partitioned as normal (/ , /tmp, /var , /usr and swap) for a long time now. But recently I heard from a FreeBSD expert that I shouldn't have swap partition for my server, and having swap partition could make my server unstable. this was so strange for me, and I searched a lot but couldn't find a reason for this claim. > > > so my question is simple: > - could having a "swap" partition, be a bad thing for my FreeBSD server? and if so, why and in what conditions? I never had a problem with swap partitions, but perhaps the FreeBSD expert may refer to one of this three issues I can think about problems with swap, none of them are unstability issues: a) Swap partitions may store info from previous boot, you can use swap encryption for that. b) When using swap files (mounting a swap in a file), at shutdown sometimes there's a race condition and swap is unmounted before it's empty. c) If your system needs to use swap, network apps may show/throw timeouts when swap i/o is heavy. Sometimes b) kicks me but it's my fault because i don't shutdown process properly. > > Cheers! L --- --- Eduardo Morras