HomeFreeBSD

Limit maximum object size in kmem tests

Description

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>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Nov 16 2015, 10:45 PM
Parents
rG31f24932a405: Remove superfluous `newline` character
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGe7b75d9b46fc: Limit maximum object size in kmem tests (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Nov 16 2015, 11:02 PM