mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-14 04:00:31 +03:00
Add spa_slop_shift module option
Allow for easy turning of a pools reserved free space. Previous versions of ZFS (v0.6.4 and earlier) held 1/64 of the pools capacity in reserve. Commits3d45fdd
and0c60cc3
increased this to 1/32. Setting spa_slop_shift=6 will restore the previous default setting. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3724
This commit is contained in:
parent
3f1cc17c90
commit
6cde64351e
@ -301,6 +301,22 @@ rewind" (\fB-X\fR) pool import.
|
|||||||
Default value: 10000
|
Default value: 10000
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
.sp
|
||||||
|
.ne 2
|
||||||
|
.na
|
||||||
|
\fBspa_slop_shift\fR (int)
|
||||||
|
.ad
|
||||||
|
.RS 12n
|
||||||
|
Normally, we don't allow the last 3.2% (1/(2^spa_slop_shift)) of space
|
||||||
|
in the pool to be consumed. This ensures that we don't run the pool
|
||||||
|
completely out of space, due to unaccounted changes (e.g. to the MOS).
|
||||||
|
It also limits the worst-case time to allocate space. If we have
|
||||||
|
less than this amount of free space, most ZPL operations (e.g. write,
|
||||||
|
create) will return ENOSPC.
|
||||||
|
.sp
|
||||||
|
Default value: 5
|
||||||
|
.RE
|
||||||
|
|
||||||
.sp
|
.sp
|
||||||
.ne 2
|
.ne 2
|
||||||
.na
|
.na
|
||||||
|
@ -2094,4 +2094,7 @@ MODULE_PARM_DESC(zfs_deadman_enabled, "Enable deadman timer");
|
|||||||
module_param(spa_asize_inflation, int, 0644);
|
module_param(spa_asize_inflation, int, 0644);
|
||||||
MODULE_PARM_DESC(spa_asize_inflation,
|
MODULE_PARM_DESC(spa_asize_inflation,
|
||||||
"SPA size estimate multiplication factor");
|
"SPA size estimate multiplication factor");
|
||||||
|
|
||||||
|
module_param(spa_slop_shift, int, 0644);
|
||||||
|
MODULE_PARM_DESC(spa_slop_shift, "Reserved free space in pool");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user