From owner-freebsd-questions@FreeBSD.ORG Sat May 16 19:23:15 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F2A5C692 for ; Sat, 16 May 2015 19:23:14 +0000 (UTC) Received: from nm23-vm5.bullet.mail.ne1.yahoo.com (nm23-vm5.bullet.mail.ne1.yahoo.com [98.138.91.245]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B680719F7 for ; Sat, 16 May 2015 19:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1431804188; bh=jS9q6gs/WOU44LC/qzT6eEUiUiImZ2UNLom3TD/QTbc=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject; b=MpNqGRSve2sJabW+ZXD5+c3eUSP6qvcKHxAP0uISGuIGw/Wcv06M2us7jA8U1XeTQ/14fLPfjk0jZ9bk3PW92cpdjguZ5sgXyvXb0VzcV+MqnsitntvRpvO9+5Saa1S27UWHyhEh5rkxGdcWvb84rHelA14NG5ILTgwQTZEWFMKiPM1DH59DSLakcJEJ7v5fftY55uhmn/AYb05jWhDNZYIUgbQ0zNTP11oMutoYlirsy0iX4d5OQbQGvqEd5f3A/UyTlsvjzNGF5ht9T2R/zGXG/5YEklcSJxIKMzWe9KXFmC9ssP/5+murflxbek2WVd9GfxDMu7M49e42K7bKjg== Received: from [98.138.100.113] by nm23.bullet.mail.ne1.yahoo.com with NNFMP; 16 May 2015 19:23:08 -0000 Received: from [46.228.39.98] by tm104.bullet.mail.ne1.yahoo.com with NNFMP; 16 May 2015 19:23:08 -0000 Received: from [127.0.0.1] by smtp135.mail.ir2.yahoo.com with NNFMP; 16 May 2015 19:23:07 -0000 X-Yahoo-Newman-Id: 901125.66310.bm@smtp135.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: F5fRezQVM1kABP5alc.FY0pANCzKWq8byf32FzqlgfFRuSv mqcGeU0FbytwgnquJU0a5VIUj7WYmzHEfSVCZeh76Nwd3ae8JPFe1g7PFJ83 3G1gzjDZrjUr.34HR_iTTX5eONRtU9_p4jqAay_8.r_yPazIz82CJgOAOTyB Uf7ZMtDWRc0.xt5vUv0cNQvqxLYCOPcgwdYSvFFAb_HYBX_iAX3J9CbSf2VF TJ7bdiN1eoznWyql2PmrbwJBfHECzez6zcL9t_jVVEr9XOb4gtQ0H8DEmyFe 4LIlnFvzwlXeB8E1prb8MYetD790AXyKKDmsyzdGAqGhfERtwyHJmY2KmXth xPmxyuB9edpt9H0BHafNRbMn9OYG9FZN.RfGLLSkDNyo_Q_3Y1Ult_jPswZm fkUJwLPLHBNhcgZ5wQf0Ljh2tYe33Ppt2dcKnAXxKCOqjeZY7nCYNwR.yVbo rp6_XqTjDYNiZOydDSfbB64pDkhMBjRh8uReXQGCAZtF81zuoRqk1XW0jqdI - X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR Date: Sat, 16 May 2015 21:23:25 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org Subject: Re: Swap partition for FreeBSD Message-Id: <20150516212325.6a94acff3ba0ad69ddfcafb0@yahoo.es> In-Reply-To: References: <20150516120000.2a2a8a4d123d988760764441@yahoo.es> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.27; amd64-portbld-freebsd9.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 May 2015 19:23:15 -0000 On Sat, 16 May 2015 15:45:08 +0530 Avinash Sonawane wrote: > On Sat, May 16, 2015 at 3:43 PM, Avinash Sonawane > wrote: > > On Sat, May 16, 2015 at 3:30 PM, Eduardo Morras > > wrote: > >> On Sat, 16 May 2015 13:11:18 +0530 > >> Avinash Sonawane wrote: > >> > >>> Hello all! > >>> > >>> I was trying to build www/webkit-gtk3 (a dependency for > >>> x11/gnome3) then it abruptly exited with "Out of swap space > >>> error" so I created a separate 8GB partition to be used as > >>> freebsd-swap. > >> > >> Why don't use a regular file as swap? > > > > Because I read somewhere that swap partition is much more faster > > than swap file and given that I already have 4GB RAM and then too I > > was posed with "out of RAM/swap space" like error (which I never > > anticipated) I wanted a more and faster swap. So dedicated swap > > partition. > > > > -- > > Avinash Sonawane (RootKea) > > PICT, Pune > > http://rootkea.wordpress.com > > May be this will justify: > http://unix.stackexchange.com/a/2211 > > -- > Avinash Sonawane (RootKea) Well.... some points (+) to use a swap file: a) faster creation / delete. Root shell script can do it in one step. b) don't need to touch your partitions/slices scheme. An error on this step and your server/pc becomes a brick for a while c) the difference in speed with/to a partition dedicated swap is minimal or null d) the work, compile gnome3, would be finished yesterday ;) (yes, this is a smile) some points (-) to use swap file: a) may have less speed (each write access needs to modify the file metadata and journal if su+j is active) b) you don't learn how to work with slices and partitions on FreeBSD or repair them The link you provide, it's an answer from 2010 to a Linux user. Some points would not be applicable to FreeBSD or be outdated. --- --- Eduardo Morras