<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://openzfsonosx.org/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://openzfsonosx.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=185.195.59.161</id>
		<title>OpenZFS on OS X - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://openzfsonosx.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=185.195.59.161"/>
		<link rel="alternate" type="text/html" href="https://openzfsonosx.org/wiki/Special:Contributions/185.195.59.161"/>
		<updated>2026-05-09T20:19:59Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.22.3</generator>

	<entry>
		<id>https://openzfsonosx.org/wiki/Windows_kstat</id>
		<title>Windows kstat</title>
		<link rel="alternate" type="text/html" href="https://openzfsonosx.org/wiki/Windows_kstat"/>
				<updated>2024-05-05T16:50:06Z</updated>
		
		<summary type="html">&lt;p&gt;185.195.59.161: of typo, changed to or&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Windows kstat ==&lt;br /&gt;
&lt;br /&gt;
'''kstat''' is the utility used on illumos to query the kernel for various statistics and detailed information. &lt;br /&gt;
It performs more or less the same responsibly as ''/proc/'' on Linux.&lt;br /&gt;
&lt;br /&gt;
Simply run the command to dump everything:&lt;br /&gt;
&lt;br /&gt;
 kstat.exe&lt;br /&gt;
 (output is large)&lt;br /&gt;
&lt;br /&gt;
You can also use it to set certain tunables in the kernel, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 ** kstat.exe ** is no longer the recommended way to change tunables. All tunables&lt;br /&gt;
 are now written to the Registry, and are updated dynamically when changed.&lt;br /&gt;
 &lt;br /&gt;
 The following information is no longer relevant!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Arc Max ===&lt;br /&gt;
&lt;br /&gt;
'''It is now recommended that you use the [[Windows_Registry|Registry]] to set the ZFS tunables.'''&lt;br /&gt;
&lt;br /&gt;
 To set max ARC size to 512 MiB:&lt;br /&gt;
 kstat.exe -w zfs:0:tunable:zfs_arc_max=536870912&lt;br /&gt;
&lt;br /&gt;
Dump the &amp;quot;zfs:0:tunable&amp;quot; sub-section to list the available knobs to fiddle with.&lt;br /&gt;
&lt;br /&gt;
A setting is not retained over reboot, and will need to be set each boot. &lt;br /&gt;
(In the future, there will be something to handle this automatically)&lt;br /&gt;
&lt;br /&gt;
=== HostID ===&lt;br /&gt;
&lt;br /&gt;
The '''HostID''' on Windows is generated from the Software/Microsoft/Cryptography/MachineGuid and &lt;br /&gt;
generally most users do not need to change it. However, should you want to set the '''HostID''' that&lt;br /&gt;
ZFS uses, you can do so by running;&lt;br /&gt;
&lt;br /&gt;
  kstat.exe -w zfs:0:tunable:hw_hostid=11223344&lt;br /&gt;
&lt;br /&gt;
=== ZFSin debug ===&lt;br /&gt;
&lt;br /&gt;
You can also ask the kernel to save the debug print buffer to disk.&lt;br /&gt;
&lt;br /&gt;
  kstat.exe -w zfs:0:tunable:vnop_debug=1337&lt;br /&gt;
&lt;br /&gt;
Will write the buffer to '''C:/Windows/debug/ZFSin.txt''' - if the directory exists.&lt;br /&gt;
&lt;br /&gt;
See [[Windows_BSOD#Debug_Print_Buffer|Debug]] for more information on the debug buffer.&lt;/div&gt;</summary>
		<author><name>185.195.59.161</name></author>	</entry>

	</feed>