Date: Thu, 20 Sep 2007 14:54:54 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Johan =?utf-8?Q?Str=C3=B6m?= <johan@stromnet.se> Cc: freebsd-fs@freebsd.org Subject: Re: ZFS (and quota) Message-ID: <86ps0do5sx.fsf@ds4.des.no> In-Reply-To: <93AE0860-0FF6-47C7-ACFC-D882D13EC7DB@stromnet.se> ("Johan =?utf-8?Q?Str=C3=B6m=22's?= message of "Thu\, 20 Sep 2007 14\:26\:25 %2B0200") References: <BE54DA53-0353-4EB3-B232-6A7193522582@stromnet.se> <86y7f1ofgo.fsf@ds4.des.no> <93AE0860-0FF6-47C7-ACFC-D882D13EC7DB@stromnet.se>
next in thread | previous in thread | raw e-mail | index | archive | help
Johan Str=C3=B6m <johan@stromnet.se> writes: > Dag-Erling Sm=C3=B8rgrav <des@des.no> writes: > > des@ds4 ~% sudo zfs create raid/q > > des@ds4 ~% sudo zfs set quota=3D1m raid/q > > des@ds4 ~% sudo dd if=3D/dev/zero of=3D/raid/q/test bs=3D65536 > > dd: /raid/q/test: Disc quota exceeded > > 16+0 records in > > 15+0 records out > > 983040 bytes transferred in 2.533990 secs (387942 bytes/sec) > > des@ds4 ~% zfs list raid/q > > NAME USED AVAIL REFER MOUNTPOINT > > raid/q 1.03M 0 1.03M /raid/q > With the bs=3D65536 parameter it works as expected, I get Disk quota > exceeded. Without it it just keeps on running until I interrupt it It seems that with small block sizes, it becomes increasingly slow as the partition fills up. You can easily see that by pressing ^T while dd is running; you will see that it still makes progress, but very slowly. des@ds4 ~% sudo dd if=3D/dev/zero of=3D/raid/q/test load: 0.18 cmd: dd 20250 [zfs:(&tx->tx_quiesce_done_cv)] 0.01u 0.48s 0% 11= 92k 17245+0 records in 17244+0 records out 8828928 bytes transferred in 18.743790 secs (471032 bytes/sec) load: 0.17 cmd: dd 20250 [zfs:(&tx->tx_quiesce_done_cv)] 0.01u 0.49s 0% 12= 12k 17273+0 records in 17272+0 records out 8843264 bytes transferred in 23.642442 secs (374042 bytes/sec) load: 0.24 cmd: dd 20250 [zfs:(&tx->tx_quiesce_done_cv)] 0.01u 0.51s 0% 12= 12k 17406+0 records in 17405+0 records out 8911360 bytes transferred in 45.053364 secs (197796 bytes/sec) load: 0.15 cmd: dd 20250 [zfs:(&tx->tx_quiesce_done_cv)] 0.01u 0.55s 0% 12= 12k 17601+0 records in 17600+0 records out 9011200 bytes transferred in 76.173965 secs (118298 bytes/sec) load: 0.06 cmd: dd 20250 [zfs:(&tx->tx_quiesce_done_cv)] 0.02u 0.60s 0% 12= 12k 17906+0 records in 17905+0 records out 9167360 bytes transferred in 126.020690 secs (72745 bytes/sec) ^C18259+0 records in 18258+0 records out 9348096 bytes transferred in 185.266755 secs (50457 bytes/sec) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ps0do5sx.fsf>