[root@localhost sysbench]# sysbench --test=memory help
sysbench 0.5: multi-threaded system evaluation benchmark
memory options:
--memory-block-size=SIZE size of memory block for test [1K] 内存块的大小
--memory-total-size=SIZE total size of data to transfer [100G] 操纵内存的总体数量
--memory-scope=STRING memory access scope {global,local} [global] 内存的访问范围
--memory-hugetlb=[on|off] allocate memory from HugeTLB pool [off] 是否从HUGEPAGE中分配内存
--memory-oper=STRING type of memory operations {read, write, none} [write] 内存操作方式读或者写
--memory-access-mode=STRING memory access mode {seq,rnd} [seq] 内存访问方式 顺序还是随机
[root@localhost sysbench]# sysbench --test=memory --memory-block-size=8k --memory-total-size=100G --memory-access-mode=seq run ;
sysbench 0.5: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Random number generator seed is 0 and will be ignored
Threads started!
Operations performed: 13107200 (661700.07 ops/sec)
102400.00 MB transferred (5169.53 MB/sec)
General statistics:
total time: 19.8084s --总体花费时间
total number of events: 13107200 --访问内存的次数 100*1024(M)=8K*1024*128
total time taken by event execution: 16.1179s --纯测试发生的总时间
response time:
min: 0.00ms
avg: 0.00ms
max: 9.43ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 13107200.0000/0.00
execution time (avg/stddev): 16.1179/0.00
[root@localhost sysbench]# sysbench --test=memory --memory-block-size=8k --memory-total-size=100G --memory-access-mode=rnd run ;
sysbench 0.5: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 1
Random number generator seed is 0 and will be ignored
Threads started!
Operations performed: 13107200 (2549692.81 ops/sec)
102400.00 MB transferred (19919.48 MB/sec)
General statistics:
total time: 5.1407s
total number of events: 13107200
total time taken by event execution: 1.5183s
response time:
min: 0.00ms
avg: 0.00ms
max: 2.62ms
approx. 95 percentile: 0.00ms
Threads fairness:
events (avg/stddev): 13107200.0000/0.00
execution time (avg/stddev): 1.5183/0.00
使用sysbench对Oracle做基准测试(五) MEMORY
最新推荐文章于 2023-03-19 17:06:32 发布