From owner-freebsd-fs@FreeBSD.ORG Mon Aug 13 16:54:56 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6713D106566B for ; Mon, 13 Aug 2012 16:54:56 +0000 (UTC) (envelope-from stevenschlansker@gmail.com) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0F5E58FC12 for ; Mon, 13 Aug 2012 16:54:55 +0000 (UTC) Received: by qcsg15 with SMTP id g15so3017781qcs.13 for ; Mon, 13 Aug 2012 09:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=RdLdFVXLW6tib+K7jTSwDVrVuAKpjBtcQFUvKOBb4nE=; b=a+6R6XDEnAWt/eH8dhpG7jwoG7A8bFgzZJ3sV2L/NYpGgTkr6d+7+P9Z924DMmDzE5 1bj7FgfrfjuJQWZKmo1boNsHRdGZrXgtzQk+2E6IiQTxVsiZ6XMGYLJxHDdMkDRSUW9y eQwVkVoXcBykc9po0aorgz1Xd8W29jBR9YBaZSboFjQRSEuVHh4YcideDgzyeKKVtvtQ lEmJf31MBOYlxhYz694SMAX1iE5DVtngNGxidbtKSw1l2PN5hkRbc1Rg0wouw/jAHrmM TrYUR/ehrf1IqaCehzTurjRh2KNlz1+inANPsjgaqIiAhiS2kZJC0MtDKL4x2xcUrlv6 sqEg== Received: by 10.50.168.66 with SMTP id zu2mr6427121igb.54.1344876894872; Mon, 13 Aug 2012 09:54:54 -0700 (PDT) Received: from anesthetize.dyn.corp.trumpet.io ([207.86.77.58]) by mx.google.com with ESMTPS id q1sm15131910igj.15.2012.08.13.09.54.53 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Aug 2012 09:54:53 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) From: Steven Schlansker In-Reply-To: Date: Mon, 13 Aug 2012 09:54:52 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7BDA02A3-99ED-4F67-9B2D-5AAF1523642E@helenius.fi> To: Olivier Smedts X-Mailer: Apple Mail (2.1485) Cc: freebsd-fs@freebsd.org, Petri Helenius Subject: Re: zero deleted blocks 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: Mon, 13 Aug 2012 16:54:56 -0000 On Aug 13, 2012, at 2:27 AM, Olivier Smedts wrote: > 2012/8/13 Petri Helenius : >>=20 >> Hi, >>=20 >> Is it possible to have ZFS or UFS to zero out the deallocated blocks = to facilitate VM disk compaction? >>=20 >> Pete >=20 > Did you try a classic "dd if=3D/dev/zero of=3Da-file-on-the-pool" ? = This > won't give good results if you do this on a filesystem with > compression enabled. ZFS uses copy on write = (http://en.wikipedia.org/wiki/ZFS#Copy-on-write_transactional_model) so = overwriting with zeroes will actually allocate new space to hold all the = zeroed data and leave the old data mostly untouched.