<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Hi,</div><div><br></div><div><p style="margin-top: 0px; margin-bottom: 0px; ">zil_slog_limit from illumos-gate source code is really 1024*1024 bytes for one write operation. There is nice self explain thread on zfs on linux github (https://github.com/zfsonlinux/zfs/issues/1012) when a write should be logged in indirect mode or in immediate mode. Application rarely use write > 1MB. In the most cases 1MB is enaugh, but it would be nice to have a option to configure zil slog limit (like zfs on linux module).</p></div><div><br></div><div><br></div><div>--</div>Martin Dojčák<br><br>mail: martin@dojcak.sk<br>jabber: martindojcak@jabbim.sk<br><br>pgp: http://pgp.dojcak.sk/<div></div><div></div><div><br></div><br><br><div>-------- Pôvodná správa --------</div><div>Od: Rune Tipsmark <rt@steait.net> </div><div>Dátum:18. 02. 2015  21:04  (GMT+01:00) </div><div>Komu: omnios-discuss@lists.omniti.com </div><div>Predmet: [OmniOS-discuss] ZFS Slog - force all writes to go to Slog </div><div><br></div>
<p>hi all,</p>
<p> </p>
<p>I found an entry about zil_slog_limit here: <a href="http://utcc.utoronto.ca/~cks/space/blog/solaris/ZFSWritesAndZILII">
http://utcc.utoronto.ca/~cks/space/blog/solaris/ZFSWritesAndZILII</a></p>
<p>it basically explains how writes larger than 1MB per default hits the main pool rather than my Slog device - I could not find much further information nor the equivalent setting in OmniOS. I also read
<a href="http://nex7.blogspot.ca/2013/04/zfs-intent-log.html">http://nex7.blogspot.ca/2013/04/zfs-intent-log.html</a> but it didn't truly help me understand just how I can force every written byte to my ZFS box to go the ZIL regardless of size, I never ever
 want anything to go directly to my man pool ever.</p>
<p> </p>
<p>I have sync=always and disabled write back cache on my volume based LU's.</p>
<p> </p>
<p>Testing with zfs_txg_timeout set to 30 or 60 seconds seems to make no difference if I write large files to my LU's - I don't seem the write speed being consistent with the performance of the Slog devices. It looks as if it goes straight to disk and hence
 the performance is less than great to say the least.</p>
<p> </p>
<p>How do I ensure 100% that all writes always goes to my Slog devices - no exceptions.</p>
<p> </p>
<p>br,</p>
<p>Rune  </p>
<p></p>


</body>