HomeFreeBSD

Add zfs_arc_meta_limit_percent tunable

Description

Add zfs_arc_meta_limit_percent tunable

ARC will evict meta buffers that exceed the arc_meta_limit. Before a further
investigating on whether we should take special protection on meta buffers,
this tunable make arc_meta_limit adjustable for different workloads.

People can set zfs_arc_meta_limit_percent to any value while insmod zfs.ko,
so some range check is added to guarantee a suitable arc_meta_limit.

Suggested by Tim Chase, zfs_arc_dnode_limit is changed to a percent-style
tunable as well.

Signed-off-by: GeLiXin <ge.lixin@zte.com.cn>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4957

Details

Provenance
GeLiXin <ge.lixin@zte.com.cn>Authored on Aug 11 2016, 3:15 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 23 2016, 8:03 PM
Parents
rG3e635ac15c09: Prevent reclaim in send_traverse_thread()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG9907cc1cc8c1: Add zfs_arc_meta_limit_percent tunable (authored by GeLiXin <ge.lixin@zte.com.cn>).Aug 23 2016, 8:03 PM