HomeFreeBSD

quota: disable quota check for ZVOL

Description

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

Details

Provenance
oshogboAuthored on Nov 8 2022, 8:40 PM
GitHub <noreply@github.com>Committed on Nov 8 2022, 8:40 PM
Parents
rGe197bb24f185: Optionally skip zil_close during zvol_create_minor_impl
Branches
Unknown
Tags
Unknown