From 78d07fe5e6351da946509da77f1c8d6d1b7c6f2f Mon Sep 17 00:00:00 2001 From: witt <52407727+witt-bit@users.noreply.github.com> Date: Tue, 21 Jan 2025 13:17:53 +0800 Subject: [PATCH] mbw: add page and Chinese translation (#15486) * mbw: add page * mbw: fix link error * mbw: fix syntax error * mbw: fix link * Update pages/linux/mbw.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages.zh/linux/mbw.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages.zh/linux/mbw.md --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages.zh/linux/mbw.md | 24 ++++++++++++++++++++++++ pages/linux/mbw.md | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 pages.zh/linux/mbw.md create mode 100644 pages/linux/mbw.md diff --git a/pages.zh/linux/mbw.md b/pages.zh/linux/mbw.md new file mode 100644 index 0000000000..a6a6836a0f --- /dev/null +++ b/pages.zh/linux/mbw.md @@ -0,0 +1,24 @@ +# mbw + +> 内存带宽性能测试工具。 +> 更多信息:. + +- 以 512MB 大小运行 3 次内存带宽测试: + +`mbw -n 3 512` + +- 以 512MB 大小运行 3 次内存带宽测试,仅输出统计信息,不显示平均值: + +`mbw -n 3 -q -a 512` + +- 以 512MB 大小运行 3 次内存复制测试,仅输出统计信息: + +`mbw -n 3 -q -t{{0}} 512` + +- 用 1024字节 的块运行10次内存块复制测试,分配 8192MB 内存: + +`mbw -n 10 -q -t{{2}} -b 1024 8192` + +- 持续 2048MB 大小运行内存字符串复制测试,仅输出统计信息: + +`mbw -n 0 -t{{1}} -q 2048` diff --git a/pages/linux/mbw.md b/pages/linux/mbw.md new file mode 100644 index 0000000000..d9bad7cf46 --- /dev/null +++ b/pages/linux/mbw.md @@ -0,0 +1,24 @@ +# mbw + +> Memory Bandwidth Benchmark. +> More information: . + +- Run 3 memory bandwidth tests with 512MB size: + +`mbw -n 3 512` + +- Run 3 memory bandwidth tests with 512MB memory size, output only statistics, not averages: + +`mbw -n 3 -q -a 512` + +- Run memcpy test 3 times with 512MB size, only display statistics: + +`mbw -n 3 -q -t{{0}} 512` + +- Run the memcpy test 10 times with 1024 byte blocks allocated 8192MB of memory: + +`mbw -n 10 -q -t{{2}} -b 1024 8192` + +- Run dumb test with 2048MB size, output only statistics, run forever: + +`mbw -n 0 -t{{1}} -q 2048`