]> git.proxmox.com Git - mirror_spl.git/commit
Limit maximum object size in kmem tests
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 16 Nov 2015 22:45:42 +0000 (14:45 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 16 Nov 2015 23:02:24 +0000 (15:02 -0800)
commite7b75d9b46fcfea149bf7fd1f53d40379e3c7b5d
treeba0e445e7f073be3467ff0f2cd396aae1ba48acc
parent31f24932a4052c1802f56e44b8e5194f4e7910ab
Limit maximum object size in kmem tests

Limit the maximum object size to 1/128 of total system memory for
the kmem cache tests.  Large values can result in out of memory errors
for systems with less the 512M of memory.  Additionally, use the
known number of objects per-slab for calculating the number of
objects to use for a test.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/splat/splat-kmem.c