From owner-freebsd-current@FreeBSD.ORG Sun Sep 21 15:06:19 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6484A3D7 for ; Sun, 21 Sep 2014 15:06:19 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id 3E6502FA for ; Sun, 21 Sep 2014 15:06:18 +0000 (UTC) Received: from [192.168.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 2E8544EC1A for ; Sun, 21 Sep 2014 15:06:12 +0000 (UTC) Message-ID: <541EE962.2000801@freebsd.org> Date: Sun, 21 Sep 2014 11:06:10 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: zpool frag References: <1411289830171-5950788.post@n5.nabble.com> In-Reply-To: <1411289830171-5950788.post@n5.nabble.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2e20LbLAWAxPAxWuoIUlLTrTvTjFTVepF" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2014 15:06:19 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2e20LbLAWAxPAxWuoIUlLTrTvTjFTVepF Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2014-09-21 04:57, Beeblebrox wrote: > FRAG means fragmentation, right? Zpool fragmentation? That's news to me= =2E If > this is real how do I fix it? >=20 > NAME SIZE ALLOC FREE FRAG EXPANDSZ CAP DEDUP HEALTH AL= TROOT > pool1 75.5G 53.7G 21.8G 60% - 71% 1.00x ONLINE = - > pool2 48.8G 26.2G 22.6G 68% - 53% 1.00x ONLINE = - > pool3 204G 177G 27.0G 53% - 86% 1.11x ONLINE = - >=20 > Regards. >=20 >=20 >=20 > ----- > FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS > -- > View this message in context: http://freebsd.1045724.n5.nabble.com/zpoo= l-frag-tp5950788.html > Sent from the freebsd-current mailing list archive at Nabble.com. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" >=20 It is not something you 'fix', it is just a metric to help you understand the performance of your pool. The higher the fragmentation, the longer it might take to allocate new space, and obviously you will have more random seek time while reading from the pool. As Steven mentions, there is no defragmentation tool for ZFS. You can zfs send/recv or backup/restore the pool if you have a strong enough reason to want to get the fragmentation number down. It is a fairly natural side effect of a copy-on-write file system. Note: the % is not the % fragmented, IIRC, it is the percentage of the free blocks that are less that a specific size. I forget what that size i= s. --=20 Allan Jude --2e20LbLAWAxPAxWuoIUlLTrTvTjFTVepF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJUHullAAoJEJrBFpNRJZKf9dUP/38JxsXqgDMVp8dPfkVGZba+ bxrqH65LPbW9B5VEI98XipWzauQ5oHQlsqn6tZ0afoVvcq+vjPzHqJJXOdu8rAPt 6hVMaCE0FeeWDvzVtTeQSg/W4o2ICxsAN7OJf/L3m6bI9xdB4fYmowwUX3Ma7iGV r/OEbHuHwZMAXgYW0V3Lgqb4k6jBcwPhEqvRjIPzVUFujDwp5wP3fWRmslykfmzA afmKurateJJd85nf9RoaQ3xCqJj3n8w7zbqerRz0RORX2ESvAgA5+o+xZWTGqjKW cuPAqa1oZTu9sXhJPaKrUYOmYWUB6wzJIwK1UbRKCf0BXMWmzp012ZEuDIH0i2vw HGmWEZFh5m+F79w90tUESEqKskZGJ/KeobjJiDxuslAq60nKL3SjjvOmytRwF80q qcOa1e7bGEZ/MQxqcd+z0nLOLCz9g2ov/MLE8FU19/1L5+baQpbXF4wF8cMcJNU8 dRnVgxV7lIoymiFpGMsaEMKRm2J2l3AQARuZbijZ7UmWXojYde6EewbAwoGUFNsb Le5PBDcYCSyRmtvf3foaxNWhoHS9Cq6QJsrW0sKPiHnGV2FLLqcxZ2c1/9Ksas2z H17OHI4pWsrLqUmPCfEJRl98kFQw8Ysu1zVbftxiEmZdMsVRaYhDEJN/EQXWQSa+ JwVBLcns/7Qfgk75JtGv =7l3G -----END PGP SIGNATURE----- --2e20LbLAWAxPAxWuoIUlLTrTvTjFTVepF--