Skip to content

Commit

Permalink
Minor changes to add details
Browse files Browse the repository at this point in the history
  • Loading branch information
zfs2019 authored and lundman committed Mar 6, 2019
1 parent 25f8a67 commit 56ca0bb
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,16 +402,24 @@ No pools available

A reboot might be neccessary to uninstall it completely.

# Tuning ZFSin
# Tuning

You can use `kstat` to tune various settings of ZFSin, using the following format:
```
kstat -w module:instance:name:statistic=value
```
You can use `kstat` to tune various parameters.

e.g. To set `zfs_arc_max` to 512 MiB:
```
kstat -w zfs:0:tunable:zfs_arc_max=536870912
```
**SYNTAX**

kstat -w module:instance:name:statistic=value [ ... ]

**EXAMPLES**

To set max ARC size to 512 MiB:

kstat -w zfs:0:tunable:zfs_arc_max=536870912

To specify multiple values:

kstat -w zfs:0:tunable:zfs_arc_max=536870912 zfs:0:tunable:zfs_arc_meta_limit=402653184

These settings will be reset on reboot.
[Details](https://github.com/zfsonlinux/zfs/wiki/ZFS-on-Linux-Module-Parameters)
Some are unavailable, such as `zfs_arc_meta_limit_percent`.
These will be reset on reboot.

0 comments on commit 56ca0bb

Please sign in to comment.