From owner-freebsd-fs@FreeBSD.ORG Mon Apr 8 13:08:58 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 43D30474 for ; Mon, 8 Apr 2013 13:08:58 +0000 (UTC) (envelope-from gallasch@free.de) Received: from smtp.free.de (smtp.free.de [91.204.6.103]) by mx1.freebsd.org (Postfix) with ESMTP id AFDB7D11 for ; Mon, 8 Apr 2013 13:08:57 +0000 (UTC) Received: (qmail 16853 invoked from network); 8 Apr 2013 15:08:56 +0200 Received: from smtp.free.de (HELO orwell.free.de) (gallasch@free.de@[91.204.4.103]) (envelope-sender ) by smtp.free.de (qmail-ldap-1.03) with AES128-SHA encrypted SMTP for ; 8 Apr 2013 15:08:56 +0200 From: Kai Gallasch Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: FreeBSD 9.1 and swap on zfs Date: Mon, 8 Apr 2013 15:08:55 +0200 Message-Id: <9407C6ED-3B4C-4BA2-8B88-F8A998E0A847@free.de> To: freebsd-fs@freebsd.org Mime-Version: 1.0 (Apple Message framework v1085) X-Mailer: Apple Mail (2.1085) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Apr 2013 13:08:58 -0000 Hi. When running a ZFS on root FreeBSD install.. is it for FreeBSD 9.1 (ZFS v28) still not advisable to use a vdev as = swapspace? - like: # zfs create -V 8G \ -o org.freebsd:swap=3Don \ -o sync=3Ddisabled \ -o primarycache=3Dnone \ -o secondarycache=3Dnone rpool/swap # swapon /dev/zvol/rpool/swap Often voiced fears for swapping on zfs are, that at the moment the = server starts to swap, ZFS will start to compete for memory with the = short-on-memory server itself (reason for swapping) and the system will = lock up shortly after. Seems a lot of ZFS-on-root single disk setups make use of an extra swap = partition on the root-disk. People booting of a mirrored-zpool often seem to have a swap partition = on both disks forming the zpool and use those as devices for a gmirror. = They then use the gmirror device as swap. Which approach is the recommended one? Swapping to ZFS *or* a swap partition / gmirror on top of two = partitions?=20 Regards, Kai Gallasch.