mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
quota: disable quota check for ZVOL
The quota for ZVOLs is set to the size of the volume. When the quota reaches the maximum, there isn't an excellent way to check if the new writers are overwriting the data or if they are inserting a new one. Because of that, when we reach the maximum quota, we wait till txg is flushed. This is causing a significant fluctuation in bandwidth. In the case of ZVOL, the quota is enforced by the volsize, so we can omit it. This commit adds a sysctl thats allow to control if the quota mechanism should be enforced or not. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Mariusz Zaborski <mariusz.zaborski@klarasystems.com> Sponsored-by: Zededa Inc. Sponsored-by: Klara Inc. Closes #13838
This commit is contained in:
+5
-1
@@ -15,7 +15,7 @@
|
||||
.\" own identifying information:
|
||||
.\" Portions Copyright [yyyy] [name of copyright owner]
|
||||
.\"
|
||||
.Dd June 1, 2021
|
||||
.Dd November 7, 2022
|
||||
.Dt ZFS 4
|
||||
.Os
|
||||
.
|
||||
@@ -2386,6 +2386,10 @@ Defines zvol block devices behaviour when
|
||||
.It Sy 3
|
||||
.No equivalent to Sy none
|
||||
.El
|
||||
.
|
||||
.It Sy zvol_enforce_quotas Ns = Ns Sy 0 Ns | Ns 1 Pq uint
|
||||
Enable strict ZVOL quota enforcement.
|
||||
The strict quota enforcement may have a performance impact.
|
||||
.El
|
||||
.
|
||||
.Sh ZFS I/O SCHEDULER
|
||||
|
||||
Reference in New Issue
Block a user