`<div dir="ltr"><div><div><div><div>Hi, <br><br>i have tried with a pool with ashift=9 and there is no write amplification, problem is solved.<br><br></div>But i can't used a ashift=9 with ssd (850 evo), i have read many articles indicated problems with ashift=9 on ssd.<br><br></div>How ca i do ? does i need to tweak specific zfs value ?<br><br></div>Thanks,<br><br></div>Anthony<br><div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-28 11:48 GMT+02:00 anthony omnios <span dir="ltr"><<a href="mailto:icoomnios@gmail.com" target="_blank">icoomnios@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for you help Stephan.<br><div><br>i have tried differents LUN with default of 512b and 4096:<br><br>LU Name: 600144F04D4F0600000059A5889100<wbr>01<br> Operational Status: Online<br> Provider Name : sbd<br> Alias : /dev/zvol/rdsk/filervm2/hdd-<wbr>110002b<br> View Entry Count : 1<br> Data File : /dev/zvol/rdsk/filervm2/hdd-<wbr>110002b<br> Meta File : not set<br> Size : 26843545600<br> Block Size : 4096<br> Management URL : not set<br> Vendor ID : SUN <br> Product ID : COMSTAR <br> Serial Num : not set<br> Write Protect : Disabled<br> Writeback Cache : Disabled<br> Access State : Active<br><br></div><div>Problem is the same.<br><br></div><div>Cheers,<br><br></div><div>Anthony<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-09-28 10:33 GMT+02:00 Stephan Budach <span dir="ltr"><<a href="mailto:stephan.budach@jvm.de" target="_blank">stephan.budach@jvm.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">----- Ursprüngliche Mail -----<br>
<br>
> Von: "anthony omnios" <<a href="mailto:icoomnios@gmail.com" target="_blank">icoomnios@gmail.com</a>><br>
> An: "Richard Elling" <<a href="mailto:richard.elling@richardelling.com" target="_blank">richard.elling@richardelling.<wbr>com</a>><br>
> CC: <a href="mailto:omnios-discuss@lists.omniti.com" target="_blank">omnios-discuss@lists.omniti.co<wbr>m</a><br>
> Gesendet: Donnerstag, 28. September 2017 09:56:42<br>
> Betreff: Re: [OmniOS-discuss] write amplification zvol<br>
<div><div class="m_-8347231174088605085h5"><br>
> Thanks Richard for your help.<br>
<br>
> My problem is that i have a network ISCSI traffic of 2 MB/s, each 5<br>
> seconds i need to write on disks 10 MB of network traffic but on<br>
> pool filervm2 I am writing much more that, approximatively 60 MB<br>
> each 5 seconds. Each ssd of filervm2 is writting 15 MB every 5<br>
> second. When i check with smartmootools every ssd is writing<br>
> approximatively 250 GB of data each day.<br>
<br>
> How can i reduce amont of data writting on each ssd ? i have try to<br>
> reduce block size of zvol but it change nothing.<br>
<br>
> Anthony<br>
<br>
> 2017-09-28 1:29 GMT+02:00 Richard Elling <<br>
> <a href="mailto:richard.elling@richardelling.com" target="_blank">richard.elling@richardelling.c<wbr>om</a> > :<br>
<br>
> > Comment below...<br>
><br>
<br>
> > > On Sep 27, 2017, at 12:57 AM, anthony omnios <<br>
> > > <a href="mailto:icoomnios@gmail.com" target="_blank">icoomnios@gmail.com</a><br>
> > > > wrote:<br>
><br>
> > ><br>
><br>
> > > Hi,<br>
><br>
> > ><br>
><br>
> > > i have a problem, i used many ISCSI zvol (for each vm), network<br>
> > > traffic is 2MB/s between kvm host and filer but i write on disks<br>
> > > many more than that. I used a pool with separated mirror zil<br>
> > > (intel s3710) and 8 ssd samsung 850 evo 1To<br>
><br>
> > ><br>
><br>
> > > zpool status<br>
><br>
> > > pool: filervm2<br>
><br>
> > > state: ONLINE<br>
><br>
> > > scan: resilvered 406G in 0h22m with 0 errors on Wed Sep 20<br>
> > > 15:45:48<br>
> > > 2017<br>
><br>
> > > config:<br>
><br>
> > ><br>
><br>
> > > NAME STATE READ WRITE CKSUM<br>
><br>
> > > filervm2 ONLINE 0 0 0<br>
><br>
> > > mirror-0 ONLINE 0 0 0<br>
><br>
> > > c7t5002538D41657AAFd0 ONLINE 0 0 0<br>
><br>
> > > c7t5002538D41F85C0Dd0 ONLINE 0 0 0<br>
><br>
> > > mirror-2 ONLINE 0 0 0<br>
><br>
> > > c7t5002538D41CC7105d0 ONLINE 0 0 0<br>
><br>
> > > c7t5002538D41CC7127d0 ONLINE 0 0 0<br>
><br>
> > > mirror-3 ONLINE 0 0 0<br>
><br>
> > > c7t5002538D41CD7F7Ed0 ONLINE 0 0 0<br>
><br>
> > > c7t5002538D41CD83FDd0 ONLINE 0 0 0<br>
><br>
> > > mirror-4 ONLINE 0 0 0<br>
><br>
> > > c7t5002538D41CD7F7Ad0 ONLINE 0 0 0<br>
><br>
> > > c7t5002538D41CD7F7Dd0 ONLINE 0 0 0<br>
><br>
> > > logs<br>
><br>
> > > mirror-1 ONLINE 0 0 0<br>
><br>
> > > c4t2d0 ONLINE 0 0 0<br>
><br>
> > > c4t4d0 ONLINE 0 0 0<br>
><br>
> > ><br>
><br>
> > > i used correct ashift of 13 for samsung 850 evo<br>
><br>
> > > zdb|grep ashift :<br>
><br>
> > ><br>
><br>
> > > ashift: 13<br>
><br>
> > > ashift: 13<br>
><br>
> > > ashift: 13<br>
><br>
> > > ashift: 13<br>
><br>
> > > ashift: 13<br>
><br>
> > ><br>
><br>
> > > But i write a lot on ssd every 5 seconds (many more than the<br>
> > > network traffic of 2 MB/s)<br>
><br>
> > ><br>
><br>
> > > iostat -xn -d 1 :<br>
><br>
> > ><br>
><br>
> > > r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device<br>
><br>
> > > 11.0 3067.5 288.3 153457.4 6.8 0.5 2.2 0.2 5 14 filervm2<br>
><br>
<br>
> > filervm2 is seeing 3067 writes per second. This is the interface to<br>
> > the upper layers.<br>
><br>
> > These writes are small.<br>
><br>
<br>
> > > 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 rpool<br>
><br>
> > > 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c4t0d0<br>
><br>
> > > 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c4t1d0<br>
><br>
> > > 0.0 552.6 0.0 17284.0 0.0 0.1 0.0 0.2 0 8 c4t2d0<br>
><br>
> > > 0.0 552.6 0.0 17284.0 0.0 0.1 0.0 0.2 0 8 c4t4d0<br>
><br>
<br>
> > The log devices are seeing 552 writes per second and since<br>
> > sync=standard that<br>
><br>
> > means that the upper layers are requesting syncs.<br>
><br>
<br>
> > > 1.0 233.3 48.1 10051.6 0.0 0.0 0.0 0.1 0 3 c7t5002538D41657AAFd0<br>
><br>
> > > 5.0 250.3 144.2 13207.3 0.0 0.0 0.0 0.1 0 3 c7t5002538D41CC7127d0<br>
><br>
> > > 2.0 254.3 24.0 13207.3 0.0 0.0 0.0 0.1 0 4 c7t5002538D41CC7105d0<br>
><br>
> > > 3.0 235.3 72.1 10051.6 0.0 0.0 0.0 0.1 0 3 c7t5002538D41F85C0Dd0<br>
><br>
> > > 0.0 228.3 0.0 16178.7 0.0 0.0 0.0 0.2 0 4 c7t5002538D41CD83FDd0<br>
><br>
> > > 0.0 225.3 0.0 16210.7 0.0 0.0 0.0 0.2 0 4 c7t5002538D41CD7F7Ed0<br>
><br>
> > > 0.0 282.3 0.0 19991.1 0.0 0.0 0.0 0.2 0 5 c7t5002538D41CD7F7Dd0<br>
><br>
> > > 0.0 280.3 0.0 19871.0 0.0 0.0 0.0 0.2 0 5 c7t5002538D41CD7F7Ad0<br>
><br>
<br>
> > The pool disks see 1989 writes per second total or 994 writes per<br>
> > second logically.<br>
><br>
<br>
> > It seems to me that reducing 3067 requested writes to 994 logical<br>
> > writes is the opposite<br>
><br>
> > of amplification. What do you expect?<br>
><br>
> > -- richard<br>
><br>
<br>
> > ><br>
><br>
> > > I used zvol of 64k, i try with 8k and problem is the same.<br>
><br>
> > ><br>
><br>
> > > zfs get all filervm2/hdd-110022a :<br>
><br>
> > ><br>
><br>
> > > NAME PROPERTY VALUE SOURCE<br>
><br>
> > > filervm2/hdd-110022a type volume -<br>
><br>
> > > filervm2/hdd-110022a creation Tue May 16 10:24 2017 -<br>
><br>
> > > filervm2/hdd-110022a used 5.26G -<br>
><br>
> > > filervm2/hdd-110022a available 2.90T -<br>
><br>
> > > filervm2/hdd-110022a referenced 5.24G -<br>
><br>
> > > filervm2/hdd-110022a compressratio 3.99x -<br>
><br>
> > > filervm2/hdd-110022a reservation none default<br>
><br>
> > > filervm2/hdd-110022a volsize 25G local<br>
><br>
> > > filervm2/hdd-110022a volblocksize 64K -<br>
><br>
> > > filervm2/hdd-110022a checksum on default<br>
><br>
> > > filervm2/hdd-110022a compression lz4 local<br>
><br>
> > > filervm2/hdd-110022a readonly off default<br>
><br>
> > > filervm2/hdd-110022a copies 1 default<br>
><br>
> > > filervm2/hdd-110022a refreservation none default<br>
><br>
> > > filervm2/hdd-110022a primarycache all default<br>
><br>
> > > filervm2/hdd-110022a secondarycache all default<br>
><br>
> > > filervm2/hdd-110022a usedbysnapshots 15.4M -<br>
><br>
> > > filervm2/hdd-110022a usedbydataset 5.24G -<br>
><br>
> > > filervm2/hdd-110022a usedbychildren 0 -<br>
><br>
> > > filervm2/hdd-110022a usedbyrefreservation 0 -<br>
><br>
> > > filervm2/hdd-110022a logbias latency default<br>
><br>
> > > filervm2/hdd-110022a dedup off default<br>
><br>
> > > filervm2/hdd-110022a mlslabel none default<br>
><br>
> > > filervm2/hdd-110022a sync standard local<br>
><br>
> > > filervm2/hdd-110022a refcompressratio 3.99x -<br>
><br>
> > > filervm2/hdd-110022a written 216K -<br>
><br>
> > > filervm2/hdd-110022a logicalused 20.9G -<br>
><br>
> > > filervm2/hdd-110022a logicalreferenced 20.9G -<br>
><br>
> > > filervm2/hdd-110022a snapshot_limit none default<br>
><br>
> > > filervm2/hdd-110022a snapshot_count none default<br>
><br>
> > > filervm2/hdd-110022a redundant_metadata all default<br>
><br>
> > ><br>
><br>
> > > Sorry for my bad english.<br>
><br>
> > ><br>
><br>
> > > What can be the problem ? thanks<br>
><br>
> > ><br>
><br>
> > > Best regards,<br>
><br>
> > ><br>
><br>
> > > Anthony<br>
><br>
<br>
</div></div>How did you setup your LUNs? Especially, what is the block size for those LUNs. Could it be, that you went with the default of 512b blocks, where the drives do have 4k or even 8k blocks?<br>
<br>
Cheers,<br>
Stephan<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
`