From owner-freebsd-fs@FreeBSD.ORG Tue Jun 23 10:10:47 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D56C106566C for ; Tue, 23 Jun 2009 10:10:47 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id DE3328FC17 for ; Tue, 23 Jun 2009 10:10:46 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: by an-out-0708.google.com with SMTP id b38so24681ana.13 for ; Tue, 23 Jun 2009 03:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EGZFfhp5c3NxJL1dO2drSYyclOTLsD1sXaS0oMMBfr4=; b=Z1jj9Vj8ZJvu7pMxaYuR+j/1XUuKe/Ou6lBnK7CIXnkel88DkxUETFFxiyrhIqhvpq L/5nrI1pydnBI1qYC+iggSXDpaqwg8jLTVNd+YJ9Xsccel6N/y3kOHL2kEiR8oUAdj6c 0s3CQVP9ogTMg71U+dRwLM8yrmtbMafKXwbjQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=fT5o++vPZiB8Gk+KqKBqSM42NxcL/jCWk0qnVEmAuofZvlibpaqOwOUNccBPRW/Du4 oGy4WG8BdDOClnfdtLZ9Ah/Y/CmBYGmuM5+bNao8z4Rmsg5l5knj+nzDgmB7yI2fizSs GFhyxuU7GaEUximR3JSDkcdvbSAohTZiFVh3s= MIME-Version: 1.0 Received: by 10.100.42.14 with SMTP id p14mr9591133anp.199.1245751846191; Tue, 23 Jun 2009 03:10:46 -0700 (PDT) In-Reply-To: <288239.1376.qm@web37303.mail.mud.yahoo.com> References: <288239.1376.qm@web37303.mail.mud.yahoo.com> Date: Tue, 23 Jun 2009 13:10:46 +0300 Message-ID: From: Dan Naumov To: Simun Mikecin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: 7.2-STABLE: swap on ZFS v13 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 10:10:47 -0000 Pardon my perhaps stupid question, but what exactly does the "-o org.freebsd:swap=on" option do? Couldn't find anything related during a quick glance at the zfs manpage (on a 7.2-release/amd64 system with zfsv6). - Sincerely, Dan Naumov On Tue, Jun 23, 2009 at 1:01 PM, Simun Mikecin wrote: > > Hi! > > Before ZFS v13 import to the 7-STABLE branch, it was a well known fact that swap on ZFS volume (zvol) will not work. > Recently, I tried to use swap on ZFS v13 (7-STABLE/amd64). It seems that it works. > > I used 4k for the volblocksize as that is equivalent to hardware page size. > I tried with compression enabled and disabled. Enabling compression reduces number of bytes that need to be swapped in and out to the zvol. > > zfs create -o volblocksize=4k -o compression=on -o org.freebsd:swap=on -V 4g tank/swap > swapon /dev/zvol/tank/swap > > Is there anybody else who tried 7-STABLE/amd64 with swap on ZFS v13? Does it work or not? > > > > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >