:摘要:
测试redis在生成rdb快照时,性能瓶颈
redis持久化相关配置:
stop-writes-on-bgsave-error no
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
rdb-save-incremental-fsync no
no-appendfsync-on-rewrite yes
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
aof-rewrite-incremental-fsync no
配置说明:
说明:
1) stop-writes-on-bgsave-error: 开启该参数后, 如果开启了RDB快
照(即配置了save指令) , 并且最近一次快照执行失败, 则Redis将停止
接收写相关的请求。
2) rdb-save-incremental-fsync: 开启该参数后, 生成RDB文件时每
产生32MB数据就执行一次fsync。
3) no-appendfsync-on-rewrite: 开启该参数后, 如果后台正在执行
一次RDB快照或者AOF重写, 则主进程不再进行fsync操作(即使将
appendfsync配置为always或者everysec) 。
4) aof-load-truncated: AOF文件以追加日志的方式生成, 所以服务
端发生故障时可能会有尾部命令不完整的情况。 开启该参数后, 在此种
情况下, AOF文件会截断尾部不完整的命令然后继续加载, 并且会在日
志中进行提示。 如果不开启该参数, 则加载AOF文件时会打印错误日
志, 然后直接退出。
测试方式:
- 使用dd测试磁盘的写速度
- 测试单个redis生成rdb快照时的磁盘io
- 测试两个redis进程分别同时生成rdb快照时的磁盘io
redis内存数据准备:
- 向redis内填充2G的string类型数据
- 可使用py脚本使用pipeline加快数据填充速度
数据填充脚本:
# -*- coding:utf-8 -*-
import redis
import time
import random
from concurrent.futures import ProcessPoolExecutor
from rediscluster import RedisCluster
# cluster
startup_nodes = [
{"host":"127.0.0.1", "port":7000},
{"host":"127.0.0.1", "port":7001},
{"host":"127.0.0.1", "port":7002},
{"host":"127.0.0.1", "port":7003}
]
# r = RedisCluster(startup_nodes=startup_nodes, decode_responses=True)
# sin
r = redis.Redis(host='127.0.0.1', port=6379, password='')
def try_pipeline():
start = time.time()
with r.pipeline(transaction=False) as p:
for i in range(1, 1000000):
for i in range (1, 10000):
index1 = random.randint(0,1000000)
index2 = random.randint(0,1000000)
index3 = random.randint(0,1000000)
key = "key_" + str(index1) + "_" + str(index2)
value = "value_" + str(index3) + "_" + "9p3gbQjrUOjm5yFARiwrnqoBzswhfJZXcTOetMsSYyxjSluPoJeRR9T2vYKlZc6XxgenvtPHUPu6x1nI7ZdSISJEuDrrScOCG199p3gbQjrUOjm5yFARiwrnqoBzswhfJZXcTOetMsSYyxjSluPoJeRR9T2vYKlZc6XxgenvtPHUPu6x1nI7ZdSISJEuDrrScOCG199p3gbQjrUOjm5yFARiwrnqoBzswhfJZXcTOetMsSYyxjSluPoJeRR9T2vYKlZc6XxgenvtPHUPu6x1nI7ZdSISJEuDrrScOCG199p3gbQjrUOjm5yFARiwrnqoBzswhfJZXcTOetMsSYyxjSluPoJeRR9T2vYKlZc6XxgenvtPHUPu6x1nI7ZdSISJEuDrrScOCG19"
p.set(key, value)
p.execute()
print("ok")
try_pipeline()
测试脚本:
io测试脚本:
#!/bin/bash
echo iotop -b -o -n 10 -d 5 -t > ./iotop.log
iotop -b -o -n 10 -d 5 -t > ./iotop.log
磁盘测试脚本:
一. 磁盘写入测试:
#!/bin/bash
bash ./io.sh &
sync;/usr/bin/time -p bash -c "(dd if=/dev/zero of=test.dd bs=1000K count=20000;sync)"
二. 单个redis生成快照测试磁盘io:
#!/bin/bash
# rm sin-redis/dump.rdb -f
bash ./io.sh &
time redis-cli -p 6379 save &
三. 两个redis进程分别同时生成rdb快照时的磁盘io
#!/bin/bash
# rm sin-redis/dump.rdb -f
# rm sin-redis2/dump.rdb -f
bash ./io_two.sh &
time redis-cli -p 6379 save &
time redis-cli -p 6389 save &
测试结果:
一. 磁盘基准写入数据:
^C3737+0 records in
3737+0 records out
3826688000 bytes (3.8 GB, 3.6 GiB) copied, 13.8006 s, 277 MB/s
real 14.13
user 0.01
sys 3.29
13:37:27 Total DISK READ : 0.00 B/s | Total DISK WRITE : 0.00 B/s
13:37:27 Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 0.00 B/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
13:37:32 Total DISK READ : 703.53 K/s | Total DISK WRITE : 452.99 M/s
13:37:32 Actual DISK READ: 703.53 K/s | Actual DISK WRITE: 370.28 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'13:37:32 3635232 be/4 root 0.00 B/s 452.87 M/s 0.00 % 33.94 % dd if=/dev/zero of=test.dd bs=1000K count=20000'
b'13:37:32 3633611 be/4 root 814.95 B/s 0.00 B/s 0.00 % 15.73 % [kworker/u256:1+flush-8:0]'
b'13:37:32 3635167 be/7 root 702.74 K/s 96.30 K/s 0.00 % 6.52 % platform-python /usr/bin/dnf makecache --timer'
b'13:37:32 3635077 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.03 % [kworker/1:2-events_power_efficient]'
b'13:37:32 3081 be/3 root 0.00 B/s 814.95 B/s 0.00 % 0.00 % auditd'
b'13:37:32 3243 be/4 root 0.00 B/s 814.95 B/s 0.00 % 0.00 % rsyslogd -n [in:imjournal]'
b'13:37:32 3247 be/4 root 0.00 B/s 4.78 K/s 0.00 % 0.00 % rsyslogd -n [rs:main Q:Reg]'
b'13:37:32 340090 be/4 root 0.00 B/s 18.30 K/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
b'13:37:32 3604087 be/4 root 0.00 B/s 814.95 B/s 0.00 % 0.00 % node /root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/bootstrap-fork --type=extensionHost --uriTransformerPath=/root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/vs/server/uriTransformer.js'
b'13:37:32 3635227 be/4 root 0.00 B/s 814.95 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
13:37:37 Total DISK READ : 20.65 K/s | Total DISK WRITE : 179.01 M/s
13:37:37 Actual DISK READ: 20.65 K/s | Actual DISK WRITE: 161.78 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'13:37:37 3635232 be/4 root 0.00 B/s 178.29 M/s 0.00 % 82.61 % dd if=/dev/zero of=test.dd bs=1000K count=20000'
b'13:37:37 3633611 be/4 root 0.00 B/s 0.00 B/s 0.00 % 79.56 % [kworker/u256:1+flush-8:0]'
b'13:37:37 3635167 be/7 root 16.68 K/s 725.06 K/s 0.00 % 8.92 % platform-python /usr/bin/dnf makecache --timer'
b'13:37:37 3635077 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.06 % [kworker/1:2-events_power_efficient]'
b'13:37:37 3635227 be/4 root 813.22 B/s 1626.43 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
b'13:37:37 340090 be/4 root 0.00 B/s 9.53 K/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
b'13:37:37 2870558 be/4 root 3.18 K/s 0.00 B/s 0.00 % 0.00 % dirmngr --daemon --homedir /root/.gnupg'
13:37:42 Total DISK READ : 0.00 B/s | Total DISK WRITE : 1239.91 K/s
13:37:42 Actual DISK READ: 10.28 M/s | Actual DISK WRITE: 159.37 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'13:37:42 3633611 be/4 root 0.00 B/s 0.00 B/s 0.00 % 67.42 % [kworker/u256:1-flush-8:0]'
b'13:37:42 3635167 be/7 root 0.00 B/s 1227.23 K/s 0.00 % 6.29 % platform-python /usr/bin/dnf makecache --timer'
b'13:37:42 3633588 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.05 % [kworker/1:1-events_power_efficient]'
b'13:37:42 3081 be/3 root 0.00 B/s 1622.58 B/s 0.00 % 0.00 % auditd'
b'13:37:42 3247 be/4 root 0.00 B/s 1622.58 B/s 0.00 % 0.00 % rsyslogd -n [rs:main Q:Reg]'
b'13:37:42 340090 be/4 root 0.00 B/s 7.92 K/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
b'13:37:42 3635227 be/4 root 0.00 B/s 1622.58 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
二. 单个redis进程生成rdb快照:
real 0m18.835s
user 0m0.001s
sys 0m0.005s
15:55:41 Total DISK READ : 0.00 B/s | Total DISK WRITE : 24.72 M/s
15:55:41 Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 0.00 B/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:55:41 3643300 be/4 root 0.00 B/s 24.72 M/s 0.00 % 0.00 % redis-server *:6379'
15:55:46 Total DISK READ : 0.00 B/s | Total DISK WRITE : 29.80 M/s
15:55:46 Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 13.70 K/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:55:46 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.04 % [kworker/1:2-events_power_efficient]'
b'15:55:46 3243 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % rsyslogd -n [in:imjournal]'
b'15:55:46 340090 be/4 root 0.00 B/s 1626.32 B/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
b'15:55:46 3643300 be/4 root 0.00 B/s 29.80 M/s 0.00 % 0.00 % redis-server *:6379'
b'15:55:46 3643434 be/4 root 0.00 B/s 813.16 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
15:55:51 Total DISK READ : 0.00 B/s | Total DISK WRITE : 38.79 M/s
15:55:51 Actual DISK READ: 368.21 K/s | Actual DISK WRITE: 30.36 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:55:51 3640631 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.09 % [kworker/u256:2-xfs-cil/sda3]'
b'15:55:51 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.02 % [kworker/1:2-events]'
b'15:55:51 537 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.01 % [xfsaild/sda3]'
b'15:55:51 340090 be/4 root 0.00 B/s 1625.19 B/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
b'15:55:51 3643300 be/4 root 0.00 B/s 38.79 M/s 0.00 % 0.00 % redis-server *:6379'
b'15:55:51 3643434 be/4 root 0.00 B/s 1625.19 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
15:55:56 Total DISK READ : 3.93 K/s | Total DISK WRITE : 26.59 M/s
15:55:56 Actual DISK READ: 3.01 M/s | Actual DISK WRITE: 57.51 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:55:56 3640631 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.33 % [kworker/u256:2-flush-8:0]'
b'15:55:56 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.12 % [kworker/1:2-events]'
b'15:55:56 3081 be/3 root 0.00 B/s 805.60 B/s 0.00 % 0.00 % auditd'
b'15:55:56 3243 be/4 root 0.00 B/s 805.60 B/s 0.00 % 0.00 % rsyslogd -n [in:imjournal]'
b'15:55:56 3247 be/4 root 0.00 B/s 805.60 B/s 0.00 % 0.00 % rsyslogd -n [rs:main Q:Reg]'
b'15:55:56 340090 be/4 root 0.00 B/s 1611.21 B/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
b'15:55:56 3592804 be/4 root 805.60 B/s 0.00 B/s 0.03 % 0.00 % node /root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/vs/server/main.js --start-server --host=127.0.0.1 --enable-remote-auto-shutdown --port=0 --connection-secret /root/.vscode-server/.899d46d82c4c95423fb7e10e68eba52050e30ba3.token'
b'15:55:56 3641417 be/4 root 3.15 K/s 0.00 B/s 0.01 % 0.00 % node /root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/bootstrap-fork --type=extensionHost --uriTransformerPath=/root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/vs/server/uriTransformer.js'
b'15:55:56 3643300 be/4 root 0.00 B/s 26.58 M/s 0.00 % 0.00 % redis-server *:6379'
b'15:55:56 3643434 be/4 root 0.00 B/s 1611.21 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
15:56:01 Total DISK READ : 815.44 B/s | Total DISK WRITE : 24.28 M/s
15:56:01 Actual DISK READ: 815.44 B/s | Actual DISK WRITE: 32.62 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:56:01 3643300 be/4 root 0.00 B/s 24.28 M/s 0.00 % 3.45 % redis-server *:6379'
b'15:56:01 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.29 % [kworker/1:2-events]'
b'15:56:01 3592804 be/4 root 815.44 B/s 0.00 B/s 0.01 % 0.00 % node /root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/vs/server/main.js --start-server --host=127.0.0.1 --enable-remote-auto-shutdown --port=0 --connection-secret /root/.vscode-server/.899d46d82c4c95423fb7e10e68eba52050e30ba3.token'
b'15:56:01 3643434 be/4 root 0.00 B/s 1630.88 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
15:56:06 Total DISK READ : 0.00 B/s | Total DISK WRITE : 2.39 K/s
15:56:06 Actual DISK READ: 4.05 M/s | Actual DISK WRITE: 0.00 B/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:56:06 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.01 % [kworker/1:2-events_power_efficient]'
b'15:56:06 3081 be/3 root 0.00 B/s 1632.94 B/s 0.00 % 0.00 % auditd'
b'15:56:06 3247 be/4 root 0.00 B/s 816.47 B/s 0.00 % 0.00 % rsyslogd -n [rs:main Q:Reg]'
15:56:11 Total DISK READ : 0.00 B/s | Total DISK WRITE : 0.00 B/s
15:56:11 Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 0.00 B/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:56:11 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.01 % [kworker/1:2-events]'
15:56:16 Total DISK READ : 813.10 B/s | Total DISK WRITE : 1626.21 B/s
15:56:16 Actual DISK READ: 5.56 K/s | Actual DISK WRITE: 2032.76 B/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:56:16 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.01 % [kworker/1:2-events_power_efficient]'
b'15:56:16 635 be/4 root 813.10 B/s 0.00 B/s 0.01 % 0.00 % systemd-journald'
b'15:56:16 3243 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % rsyslogd -n [in:imjournal]'
b'15:56:16 3247 be/4 root 0.00 B/s 813.10 B/s 0.00 % 0.00 % rsyslogd -n [rs:main Q:Reg]'
15:56:21 Total DISK READ : 24.65 K/s | Total DISK WRITE : 814.29 B/s
15:56:21 Actual DISK READ: 24.65 K/s | Actual DISK WRITE: 0.00 B/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:56:21 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.01 % [kworker/1:2-events_power_efficient]'
b'15:56:21 3641417 be/4 root 19.88 K/s 0.00 B/s 0.05 % 0.00 % node /root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/bootstrap-fork --type=extensionHost --uriTransformerPath=/root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/vs/server/uriTransformer.js'
b'15:56:21 3641421 be/4 root 4.77 K/s 0.00 B/s 0.01 % 0.00 % node /root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/bootstrap-fork --type=extensionHost --uriTransformerPath=/root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/vs/server/uriTransformer.js'
b'15:56:21 3643434 be/4 root 0.00 B/s 814.29 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
15:56:26 Total DISK READ : 0.00 B/s | Total DISK WRITE : 2.39 K/s
15:56:26 Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 1632.61 B/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:56:26 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.03 % [kworker/1:2-events]'
b'15:56:26 3243 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % rsyslogd -n [in:imjournal]'
b'15:56:26 340090 be/4 root 0.00 B/s 1632.61 B/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
三. 两个redis进程分别同时生成rdb快照时的磁盘io
real 0m15.868s
user 0m0.002s
sys 0m0.004s
OK
real 0m20.411s
user 0m0.001s
sys 0m0.004s
15:57:36 Total DISK READ : 433.72 K/s | Total DISK WRITE : 30.71 M/s
15:57:36 Actual DISK READ: 433.72 K/s | Actual DISK WRITE: 0.00 B/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:57:36 3643493 be/4 root 433.72 K/s 0.00 B/s 2.45 % 0.00 % redis-server *:6379'
b'15:57:36 3643514 be/4 root 0.00 B/s 30.71 M/s 0.00 % 0.00 % redis-server *:6389'
15:57:41 Total DISK READ : 10.10 M/s | Total DISK WRITE : 67.28 M/s
15:57:41 Actual DISK READ: 10.10 M/s | Actual DISK WRITE: 29.47 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:57:41 3642968 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.05 % [kworker/u256:1-xfs-cil/sda3]'
b'15:57:41 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.03 % [kworker/1:2-events_power_efficient]'
b'15:57:41 340090 be/4 root 0.00 B/s 1631.17 B/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
b'15:57:41 3643493 be/4 root 10.10 M/s 20.29 M/s 37.53 % 0.00 % redis-server *:6379'
b'15:57:41 3643514 be/4 root 0.00 B/s 46.98 M/s 0.00 % 0.00 % redis-server *:6389'
b'15:57:41 3643620 be/4 root 0.00 B/s 815.58 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
15:57:46 Total DISK READ : 1626.06 K/s | Total DISK WRITE : 81.32 M/s
15:57:46 Actual DISK READ: 4.30 M/s | Actual DISK WRITE: 107.06 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:57:46 3643272 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.09 % [kworker/1:1-events]'
b'15:57:46 3642968 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.08 % [kworker/u256:1-flush-8:0]'
b'15:57:46 3642812 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.03 % [kworker/1:2-ata_sff]'
b'15:57:46 3081 be/3 root 0.00 B/s 813.42 B/s 0.00 % 0.00 % auditd'
b'15:57:46 3247 be/4 root 0.00 B/s 1626.85 B/s 0.00 % 0.00 % rsyslogd -n [rs:main Q:Reg]'
b'15:57:46 340090 be/4 root 0.00 B/s 3.18 K/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
b'15:57:46 3643493 be/4 root 1626.06 K/s 36.99 M/s 7.80 % 0.00 % redis-server *:6379'
b'15:57:46 3643514 be/4 root 0.00 B/s 44.33 M/s 0.00 % 0.00 % redis-server *:6389'
b'15:57:46 3643620 be/4 root 0.00 B/s 1626.85 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
15:57:51 Total DISK READ : 27.85 K/s | Total DISK WRITE : 53.33 M/s
15:57:51 Actual DISK READ: 198.90 K/s | Actual DISK WRITE: 61.71 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:57:51 3642968 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.46 % [kworker/u256:1-flush-8:0]'
b'15:57:51 3643272 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.15 % [kworker/1:1-events]'
b'15:57:51 340090 be/4 root 0.00 B/s 1629.41 B/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
b'15:57:51 3641417 be/4 root 1629.41 B/s 814.70 B/s 0.01 % 0.00 % node /root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/bootstrap-fork --type=extensionHost --uriTransformerPath=/root/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/out/vs/server/uriTransformer.js'
b'15:57:51 3643493 be/4 root 26.26 K/s 26.97 M/s 0.10 % 0.00 % redis-server *:6379'
b'15:57:51 3643514 be/4 root 0.00 B/s 26.35 M/s 0.00 % 0.00 % redis-server *:6389'
b'15:57:51 3643620 be/4 root 0.00 B/s 1629.41 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
15:57:56 Total DISK READ : 0.00 B/s | Total DISK WRITE : 39.47 M/s
15:57:56 Actual DISK READ: 4.25 M/s | Actual DISK WRITE: 27.18 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:57:56 3643514 be/4 root 0.00 B/s 3.43 M/s 0.00 % 0.05 % redis-server *:6389'
b'15:57:56 3643272 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.01 % [kworker/1:1-events_power_efficient]'
b'15:57:56 3642968 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/u256:1-events_unbound]'
b'15:57:56 3081 be/3 root 0.00 B/s 809.87 B/s 0.00 % 0.00 % auditd'
b'15:57:56 3243 be/4 root 0.00 B/s 809.87 B/s 0.00 % 0.00 % rsyslogd -n [in:imjournal]'
b'15:57:56 3247 be/4 root 0.00 B/s 809.87 B/s 0.00 % 0.00 % rsyslogd -n [rs:main Q:Reg]'
b'15:57:56 340090 be/4 root 0.00 B/s 1619.74 B/s 0.00 % 0.00 % java -Dzookeeper.log.dir=/usr/local/apache-zookeeper-3.7.0-bin/bin/../logs -Dzookeeper.log.file=zookeeper-root-server-localhost.localdomain.log -Dzookeeper.root.logger=INFO,CONSOLE -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=kill -9 %p -cp /usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/classes:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/target/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../build/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-prometheus-metrics-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-jute-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/zookeeper-3.7.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/snappy-java-1.1.7.7.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-log4j12-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/slf4j-api-1.7.30.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_servlet-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_hotspot-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient_common-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/simpleclient-0.9.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-unix-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-native-epoll-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-transport-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-resolver-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-handler-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-common-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-codec-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/netty-buffer-4.1.59.Final.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/metrics-core-4.1.12.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/log4j-1.2.17.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jline-2.14.6.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-ajax-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-util-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-servlet-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-server-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-security-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-io-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jetty-http-9.4.38.v20210224.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/javax.servlet-api-3.1.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-databind-2.10.5.1.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-core-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/jackson-annotations-2.10.5.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/commons-cli-1.4.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../lib/audience-annotations-0.12.0.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../zookeeper-server/src/main/resources/lib/*.jar:/usr/local/apache-zookeeper-3.7.0-bin/bin/../conf: -Xmx1000m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false org.apache.zookeeper.server.quorum.QuorumPeerMain /usr/local/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg [VM Periodic Tas]'
b'15:57:56 3643493 be/4 root 0.00 B/s 36.03 M/s 0.00 % 0.00 % redis-server *:6379'
b'15:57:56 3643620 be/4 root 0.00 B/s 1619.74 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
15:58:01 Total DISK READ : 6.37 K/s | Total DISK WRITE : 109.10 K/s
15:58:01 Actual DISK READ: 6.37 K/s | Actual DISK WRITE: 20.65 M/s
TIME TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
b'15:58:01 3643493 be/4 root 5.57 K/s 107.51 K/s 0.03 % 1.56 % redis-server *:6379'
b'15:58:01 3643272 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.08 % [kworker/1:1-events_power_efficient]'
b'15:58:01 3640488 be/4 root 815.48 B/s 0.00 B/s 0.00 % 0.00 % -bash'
b'15:58:01 3643620 be/4 root 0.00 B/s 1630.97 B/s 0.00 % 0.00 % platform-python -s /usr/sbin/iotop -b -o -n 10 -d 5 -t'
结论:
- 磁盘的写速度在 277 MB/s
- redis生成rdb快照的速度, 无论是单个redis, 还是两个redis进程同时进行. 都保持在 40MB/s左右
- redis生成快照的速度远小于磁盘io的上限