diff options
author | Mariusz Zaborski <oshogbo@vexillium.org> | 2022-11-08 21:40:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 12:40:22 -0800 |
commit | 945b407486a0072ec7dd117a0bde2f72d52eb445 (patch) | |
tree | 34b4bc8e55f8ef316fbedf6cb5d4e466975e00fb /man | |
parent | e197bb24f1857c823b44c2175b2318c472d79731 (diff) |
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
Diffstat (limited to 'man')
-rw-r--r-- | man/man4/zfs.4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/man/man4/zfs.4 b/man/man4/zfs.4 index 5b53b1310..ad3d8810e 100644 --- a/man/man4/zfs.4 +++ b/man/man4/zfs.4 @@ -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 |