From owner-freebsd-fs@FreeBSD.ORG Thu Jul 4 20:32:01 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 0C609A25; Thu, 4 Jul 2013 20:32:01 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-wg0-x229.google.com (mail-wg0-x229.google.com [IPv6:2a00:1450:400c:c00::229]) by mx1.freebsd.org (Postfix) with ESMTP id 7238E1D6C; Thu, 4 Jul 2013 20:32:00 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id y10so6731948wgg.0 for ; Thu, 04 Jul 2013 13:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=4AGU8E2MqiiEjaqnBhgpZTOItU+qbhUGx+1Amb7981Q=; b=tzc6XnKFxizlCWhbiAQ3zpSrVpjTAwDqnTc5F+5J/FbKs2Vcr3BViekR3uvpwSuCdx /L0TF1Kq7JgH7aYXJYvM+SLPLY1KYgyYgfG56Fmdc4MoOIWz14I/BR0X2NVilOKr8d+S SPsmxf27RtksiGpRSjUGxi2Cxf+CELT+AgvVktmJg7KAjFrvhS0en68A86Qnyh683UxR hUymBdB8FPPhqss0Vy1tl1IyyRv4Meehv4ceTfm68dQiFVJ23UStc2Fto48Uv2fHEZm/ Ml9yrLpsTNJGwhHm9bYaJqN5EUYgk9m0jH8Ks6oQsQuYRihG+v7OHnBahvsUYNMSPMza P5vQ== X-Received: by 10.194.243.226 with SMTP id xb2mr4490174wjc.67.1372969919551; Thu, 04 Jul 2013 13:31:59 -0700 (PDT) Received: from limbo.xim.bz ([46.150.100.6]) by mx.google.com with ESMTPSA id p1sm36988520wix.9.2013.07.04.13.31.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Jul 2013 13:31:58 -0700 (PDT) Message-ID: <51D5DBBD.70702@gmail.com> Date: Thu, 04 Jul 2013 23:31:57 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130627 Thunderbird/17.0.7 MIME-Version: 1.0 To: Dmitry Morozovsky Subject: Re: ZFS default compression algo for contemporary FreeBSD versions References: <51D576E1.6030803@gmail.com> <51D59B6C.5030600@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, avg@freebsd.org 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: Thu, 04 Jul 2013 20:32:01 -0000 04.07.2013 19:05, Dmitry Morozovsky wrote: > On Thu, 4 Jul 2013, Volodymyr Kostyrko wrote: > >>>>> is it sane to just set 'zfs compression=on dataset' to achieve best algo >>>>> on >>>>> fresh FreeBSD systems (-current and/or stable/9)? >>>> >>>> No and this is not safe AFAIK. Default compression is still lzjb and >>>> bootloader can't boot oof datasets compressed with lzjb. However on >>>> stable/9 >>>> you can simply set zfs compression=lz4 pool and everything would work fine >>>> if >>>> you updated the boot loader. >>> >>> I did not intend to compress root/boot datasets (and there is no much sense >>> in >>> this AFAICS); >>> >>> the second (and actually more important) my question is -- is lz4 in general >>> better than lzjb? >> >> Yes. Much better in terms of speed. > > Then, next logical step semms to me is to make lz4 the default ;-P As far as the code is too young and most other distribution are behind in terms of compatibility this is a no go. My naive dream is to see lz4hc in ZFS too. This way I can just give up at compressing logs. -- Sphinx of black quartz judge my vow.