测试大概17分钟的样子,osd、mds和client均未出错,可是测试程序停止执行,在mds和client上执行dmesg如下:
fs93:~ # dmesg
[ 4052.000006] connection2:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4295902790, last ping 4295904042, now 4295905296
[ 4052.000014] connection2:0: detected conn error (1011)
[ 4172.256063] session2: session recovery timed out after 120 secs
bug:
osd内部打印日志过于频繁导致响应client和mds的request太慢,超过了scsi驱动的时间限制,导致超时,连接自然断开,程序停止。
fixing-method:
关闭大部分log,提升osd模块处理速度。
test_result:
fs96:~ # postmark pmk.cfg
PostMark v1.51 : 8/14/01
Reading configuration from file 'pmk.cfg'
Creating subdirectories...Done
Creating files...Done
Performing transactions..........Done
Deleting files...Done
Deleting subdirectories...Done
Time:
5459 seconds total
2226 seconds of transactions (8 per second)
Files:
30053 created (5 per second)
Creation alone: 20000 files (7 per second)
Mixed with transactions: 10053 files (4 per second)
9979 read (4 per second)
0 appended (0 per second)
30053 deleted (5 per second)
Deletion alone: 20106 files (28 per second)
Mixed with transactions: 9947 files (4 per second)
Data:
38.98 megabytes read (7.31 kilobytes per second)
117.39 megabytes written (22.02 kilobytes per second)