mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
vdev: expose dtl_sm_blksz and standard_sm_blksz on Linux
Expose zfs_vdev_dtl_sm_blksz and zfs_vdev_standard_sm_blksz as module parameters on Linux. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Christos Longros <[email protected]> Closes #18952
This commit is contained in:
1 parent
abbfabc83e
commit
4e006237ff
3 files changed
+16
-21
No files matched your search
@@ -532,6 +532,16 @@ and are recovering a damaged label.
|
||||
.It Sy zfs_vdev_ms_count_limit Ns = Ns Sy 131072 Po 128k Pc Pq uint
|
||||
Practical upper limit of total metaslabs per top-level vdev.
|
||||
.
|
||||
.It Sy zfs_vdev_dtl_sm_blksz Ns = Ns Sy 4096 Ns B Po 4 KiB Pc Pq int
|
||||
Since the DTL space map of a vdev is not expected to have a lot of
|
||||
entries, we default its block size to 4K.
|
||||
.
|
||||
.It Sy zfs_vdev_standard_sm_blksz Ns = Ns Sy 131072 Ns B Po 128 KiB Pc Pq int
|
||||
vdev-wide space maps that have lots of entries written to them at
|
||||
the end of each transaction can benefit from a higher I/O bandwidth
|
||||
.Pq e.g. Sy vdev_obsolete_sm ,
|
||||
thus we default their block size to 128K.
|
||||
.
|
||||
.It Sy metaslab_preload_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
|
||||
Enable metaslab group preloading.
|
||||
.
|
||||
|
||||
@@ -483,27 +483,6 @@ param_set_max_auto_ashift(SYSCTL_HANDLER_ARGS)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Since the DTL space map of a vdev is not expected to have a lot of
|
||||
* entries, we default its block size to 4K.
|
||||
*/
|
||||
extern int zfs_vdev_dtl_sm_blksz;
|
||||
|
||||
SYSCTL_INT(_vfs_zfs, OID_AUTO, dtl_sm_blksz,
|
||||
CTLFLAG_RDTUN, &zfs_vdev_dtl_sm_blksz, 0,
|
||||
"Block size for DTL space map. Power of 2 greater than 4096.");
|
||||
|
||||
/*
|
||||
* vdev-wide space maps that have lots of entries written to them at
|
||||
* the end of each transaction can benefit from a higher I/O bandwidth
|
||||
* (e.g. vdev_obsolete_sm), thus we default their block size to 128K.
|
||||
*/
|
||||
extern int zfs_vdev_standard_sm_blksz;
|
||||
|
||||
SYSCTL_INT(_vfs_zfs, OID_AUTO, standard_sm_blksz,
|
||||
CTLFLAG_RDTUN, &zfs_vdev_standard_sm_blksz, 0,
|
||||
"Block size for standard space map. Power of 2 greater than 4096.");
|
||||
|
||||
/* zio.c */
|
||||
|
||||
SYSCTL_INT(_vfs_zfs_zio, OID_AUTO, exclude_metadata,
|
||||
|
||||
@@ -7072,6 +7072,12 @@ ZFS_MODULE_PARAM(zfs_vdev, zfs_vdev_, min_ms_count, UINT, ZMOD_RW,
|
||||
ZFS_MODULE_PARAM(zfs_vdev, zfs_vdev_, ms_count_limit, UINT, ZMOD_RW,
|
||||
"Practical upper limit of total metaslabs per top-level vdev");
|
||||
|
||||
ZFS_MODULE_PARAM(zfs, zfs_vdev_, dtl_sm_blksz, INT, ZMOD_RW,
|
||||
"Block size for DTL space map. Power of 2 greater than 4096.");
|
||||
|
||||
ZFS_MODULE_PARAM(zfs, zfs_vdev_, standard_sm_blksz, INT, ZMOD_RW,
|
||||
"Block size for standard space map. Power of 2 greater than 4096.");
|
||||
|
||||
ZFS_MODULE_PARAM(zfs, zfs_, slow_io_events_per_second, UINT, ZMOD_RW,
|
||||
"Rate limit slow IO (delay) events to this many per second");
|
||||
|
||||
|
||||
Reference in new issue
Block a user