Vioperf

vioperf 实用工具会快速测试主机的输入和输出子系统的性能。该实用工具将执行下列测试:

  • 顺序写入

  • 顺序重写

  • 顺序读取

  • 跳过读取(读取非相邻数据块)

该实用工具会验证主机读取的字节数与写入的字节数是否相同,并将其输出打印到 STDOUT。该实用工具还会将输出记录到 JSON 格式的文件中。

对于 HDFS 中的数据,该实用程序虽然进行测试,但不会写入。

语法

vioperf [--help] [--duration=<INTERVAL>] [--log-interval=<INTERVAL>]
  [--log-file=<FILE>] [--condense-log] [--thread-count=<N>] [--max-buffer-size=<SIZE>]
  [--preserve-files] [--disable-crc] [--disable-direct-io] [--debug]
  [<DIR>*]

最低 IO 性能和建议的 I/O 性能

  • 在群集的所有节点上以并发方式同时进行全双工(读取和写入)IO 时,每个节点上的每个物理处理器核心要求的最低 I/O 性能为 20 MB/s 读/写。

  • 建议的 I/O 是每个节点上每个物理内核 40 MB/s。

  • 对于具有 2 个超线程六核 CPU(12 个物理内核)的节点,要求的最低 I/O 速率为 240 MB/s。Vertica 建议 480 MB/s。

例如,对于具有 2 个超线程六核心 CPU(12 个物理核心)的节点而言,要求的最低 I/O 速率为 240 MB/s,建议速率为 480 MB/s。

vioperf 需要的磁盘空间

vioperf 大约需要 4.5 GB 空间才能运行。

选项

返回

该实用工具返回以下信息:

示例

从终端调用 vioperf 将会输出以下消息和示例结果:

[dbadmin@v_vmart_node0001 ~]$ /opt/vertica/bin/vioperf --duration=60s
The minimum required I/O is 20 MB/s read and write per physical processor core on each node, in full duplex
i.e. reading and writing at this rate simultaneously, concurrently on all nodes of the cluster.
The recommended I/O is 40 MB/s per physical core on each node.
For example, the I/O rate for a server node with 2 hyper-threaded six-core CPUs is 240 MB/s required minimum, 480 MB/s recommended.

Using direct io (buffer size=1048576, alignment=512) for directory "/home/dbadmin"

test     | directory     | counter name         | counter value | counter value (10 sec avg) | counter value/core  | counter value/core (10 sec avg) | thread count  | %CPU  | %IO Wait  | elapsed time (s)| remaining time (s)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Write    | /home/dbadmin | MB/s                 | 420           | 420                             | 210                | 210                        | 2             | 89    | 10        | 10              | 5
Write    | /home/dbadmin | MB/s                 | 412           | 396                             | 206                 | 198                        | 2             | 89    | 9         | 15              | 0
ReWrite  | /home/dbadmin | (MB-read+MB-write)/s | 150+150       | 150+150                         | 75+75               | 75+75                      | 2             | 58    | 40        | 10              | 5
ReWrite  | /home/dbadmin | (MB-read+MB-write)/s | 158+158       | 172+172                         | 79+79              | 86+86                      | 2             | 64    | 33        | 15              | 0
Read     | /home/dbadmin | MB/s                 | 194           | 194                             | 97                 | 97                         | 2             | 69    | 26        | 10              | 5
Read     | /home/dbadmin | MB/s                 | 192           | 190                             | 96                 | 95                         | 2             | 71    | 27        | 15              | 0
SkipRead | /home/dbadmin | seeks/s              | 659           | 659                             | 329.5              | 329.5                      | 2             | 2     | 85        | 10              | 5
SkipRead | /home/dbadmin | seeks/s              | 677           | 714                             | 338.5              | 357                        | 2             | 2     | 59        | 15              | 0