Re: [zfs-discuss] Couple questions about ZFS writes and fragmentation

2009-11-09 Thread Richard Elling
On Nov 9, 2009, at 9:15 PM, Ilya wrote: Wow, this forum is great and uber-fast in response, appreciate the responses, makes sense. Nothing on TV tonight and all of my stress tests are passing :-) Only, what does ZFS do to write to data? Let's say that you want to write x blocks somewhere,

Re: [zfs-discuss] Couple questions about ZFS writes and fragmentation

2009-11-09 Thread Ilya
Wow, this forum is great and uber-fast in response, appreciate the responses, makes sense. Only, what does ZFS do to write to data? Let's say that you want to write x blocks somewhere, is ZFS going to find a pointer to the space map of some metaslab and then write there? Is it going to find a

Re: [zfs-discuss] Couple questions about ZFS writes and fragmentation

2009-11-09 Thread Richard Elling
On Nov 9, 2009, at 6:42 PM, Ilya wrote: 1. Is it true that because block sizes vary (in powers of 2 of course) on each write that there will be very little internal fragmentation? Block size limit (aka recordsize) is in powers of 2. Block sizes are as needed. 2. I came upon this statem

Re: [zfs-discuss] Couple questions about ZFS writes and fragmentation

2009-11-09 Thread Bob Friesenhahn
On Mon, 9 Nov 2009, Ilya wrote: 2. I came upon this statement in a forum post: [i]"ZFS uses 128K data blocks by default whereas other filesystems typically use 4K or 8K blocks. This naturally reduces the potential for fragmentation by 32X over 4k blocks."[/i] How is this true? I mean, if yo

[zfs-discuss] Couple questions about ZFS writes and fragmentation

2009-11-09 Thread Ilya
1. Is it true that because block sizes vary (in powers of 2 of course) on each write that there will be very little internal fragmentation? 2. I came upon this statement in a forum post: [i]"ZFS uses 128K data blocks by default whereas other filesystems typically use 4K or 8K blocks. This natur