mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Lower minimum objects/slab threshold
As long as we can fit a minimum of one object/slab there's no reason to prevent the creation of the cache. This effectively pushes the maximum object size up to 32MB. The splat cache tests were extended accordingly to verify this functionality. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
@@ -799,6 +799,10 @@ splat_kmem_test6(struct file *file, void *arg)
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
rc = splat_kmem_cache_test(file, arg, name, 16*1024*1024, 0, KMC_VMEM);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
/* Off slab (default + kmem + vmem) */
|
||||
rc = splat_kmem_cache_test(file, arg, name, 256*1024, 0, KMC_OFFSLAB);
|
||||
if (rc)
|
||||
@@ -811,6 +815,11 @@ splat_kmem_test6(struct file *file, void *arg)
|
||||
|
||||
rc = splat_kmem_cache_test(file, arg, name, 1024*1024, 0,
|
||||
KMC_VMEM | KMC_OFFSLAB);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
rc = splat_kmem_cache_test(file, arg, name, 16*1024*1024, 0,
|
||||
KMC_VMEM | KMC_OFFSLAB);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user