]> git.proxmox.com Git - mirror_spl.git/commit
Add taskq contention splat test
authorNed Bass <bass6@llnl.gov>
Tue, 17 Jan 2012 22:23:58 +0000 (14:23 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 18 Jan 2012 18:36:51 +0000 (10:36 -0800)
commitcf5d23fa1e953db970b04f593f83d7ffa9e9e0df
treef1bf342092c3c097b8a28be2b67bd572e94f5424
parent966e5200d35a2c38cdb9e14bfaf698a10b31603b
Add taskq contention splat test

Add a test designed to generate contention on the taskq spinlock by
using a large number of threads (100) to perform a large number (131072)
of trivial work items from a single queue.  This simulates conditions
that may occur with the zio free taskq when a 1TB file is removed from a
ZFS filesystem, for example.  This test should always pass.  Its purpose
is to provide a benchmark to easily measure the effectiveness of taskq
optimizations using statistics from the kernel lock profiler.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #32
module/splat/splat-taskq.c