-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
memory benchmark: support auto-detect CPU L3 cache
During writing to a small memory block, the CPU just writes to L3 cache. So use a memory block size larger than L3 cache size should be better. Allow to specify --memory-block-size=0, then sysbench auto-detect CPU L3 cache size and alignup to power of 2 to do test work. For example: Orignally, run this command on my PC and got a result 47634.81 MiB/sec # sysbench memory --memory-scope=local --threads=12 run In face, the real performance is about 15G/s. The test result gets about 300% deviation. Signed-off-by: zhenwei pi <[email protected]>
- Loading branch information
Showing
2 changed files
with
112 additions
and
21 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
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