diff --git a/www/Utils.js b/www/Utils.js index cea69ffc..50dd4d7e 100644 --- a/www/Utils.js +++ b/www/Utils.js @@ -858,6 +858,10 @@ Ext.define('PBS.Utils', { gc_atime_cutoff = gc_atime_cutoff ?? '1445'; options.push(`${gettext('GC Access Time Cutoff')}: ${gc_atime_cutoff}m`); + let gc_cache_capacity = tuning['gc-cache-capacity']; + delete tuning['gc-cache-capacity']; + options.push(`${gettext('GC cache capacity')}: ${gc_cache_capacity ?? Proxmox.Utils.defaultText}`); + for (const [k, v] of Object.entries(tuning)) { options.push(`${k}: ${v}`); } diff --git a/www/datastore/OptionView.js b/www/datastore/OptionView.js index 9d28b829..de7751e8 100644 --- a/www/datastore/OptionView.js +++ b/www/datastore/OptionView.js @@ -295,6 +295,16 @@ Ext.define('PBS.Datastore.Options', { }, deleteEmpty: true, }, + { + xtype: 'proxmoxintegerfield', + name: 'gc-cache-capacity', + fieldLabel: gettext('GC cache capacity'), + emptyText: Proxmox.Utils.defaultText, + minValue: 0, + maxValue: 8192 * 1024, + deleteEmpty: true, + step: 1024, + }, ], }, },