mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
L2ARC: Implement DWPD-based rate limiting with adaptive feed intervals
Add DWPD (Drive Writes Per Day) rate limiting to control L2ARC write speeds and protect SSD endurance. Write rate is constrained by the minimum of l2arc_write_max and DWPD-calculated budget. Devices accumulate unused write budget over 24-hour periods with automatic reset and carry-over. Writes occur in controlled bursts (max 50MB) with adaptive intervals to achieve target rates. Applies after initial device fill. Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ameer Hamza <ahamza@ixsystems.com> Closes #18093
This commit is contained in:
committed by
Brian Behlendorf
parent
b525525b44
commit
d1f290f1ea
@@ -65,6 +65,9 @@
|
||||
#define param_set_arc_max_args(var) \
|
||||
CTLTYPE_U64, NULL, 0, param_set_arc_max, "QU"
|
||||
|
||||
#define param_set_l2arc_dwpd_limit_args(var) \
|
||||
CTLTYPE_U64, &var, 0, param_set_l2arc_dwpd_limit, "QU"
|
||||
|
||||
#define param_set_arc_free_target_args(var) \
|
||||
CTLTYPE_UINT, NULL, 0, param_set_arc_free_target, "IU"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user