-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/mempool_perf: test with larger bursts
Bursts of up to 64, 128 and 256 packets are not uncommon, so increase the maximum tested get and put burst sizes from 32 to 256. For convenience, also test get and put burst sizes of RTE_MEMPOOL_CACHE_MAX_SIZE. Some applications keep more than 512 objects, so increase the maximum number of kept objects from 512 to 32768, still in jumps of factor four. This exceeds the typical mempool cache size of 512 objects, so the test also exercises the mempool driver. Reduced the duration of each iteration from 5 seconds to 1 second. Increased the precision of rate_persec calculation by timing the actual duration of the test, instead of assuming it took exactly 1 second. Added cache guard to per-lcore stats structure. Signed-off-by: Morten Brørup <mb@smartsharesystems.com> Acked-by: Chengwen Feng <fengchengwen@huawei.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
- Loading branch information
1 parent
5c0f970
commit 7775adc
Showing
1 changed file
with
97 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters