Go to file
2022-11-11 15:14:26 +01:00
.gitignore Only show hdisk and append a timestamp 2022-11-11 14:51:33 +01:00
main.c Rework diff numbers 2022-11-11 15:14:26 +01:00
Makefile Only show hdisk and append a timestamp 2022-11-11 14:51:33 +01:00
README.md Show diff output 2022-11-11 12:21:46 +01:00

AIX Disk I/O Perfstat Test Code

Test code for investigating wierd constant read stats on AIX.

Example from PowerVS AIX 7.3

# ./test
hdisk0 => reads: [ blocks:    1995768 (       0 ), bytes: 1021833216 (       0 ) ], writes: [ blocks:     126169 (       0 ), bytes:   64598528 (       0 ) ]
hdisk0 => reads: [ blocks:    1999986 (    4218 ), bytes: 1023992832 ( 2159616 ) ], writes: [ blocks:     126241 (      72 ), bytes:   64635392 (   36864 ) ]
hdisk0 => reads: [ blocks:    2004196 (    4210 ), bytes: 1026148352 ( 2155520 ) ], writes: [ blocks:     126321 (      80 ), bytes:   64676352 (   40960 ) ]
hdisk0 => reads: [ blocks:    2008406 (    4210 ), bytes: 1028303872 ( 2155520 ) ], writes: [ blocks:     126393 (      72 ), bytes:   64713216 (   36864 ) ]
hdisk0 => reads: [ blocks:    2012616 (    4210 ), bytes: 1030459392 ( 2155520 ) ], writes: [ blocks:     127321 (     928 ), bytes:   65188352 (  475136 ) ]
hdisk0 => reads: [ blocks:    2016826 (    4210 ), bytes: 1032614912 ( 2155520 ) ], writes: [ blocks:     127393 (      72 ), bytes:   65225216 (   36864 ) ]
hdisk0 => reads: [ blocks:    2021036 (    4210 ), bytes: 1034770432 ( 2155520 ) ], writes: [ blocks:     127465 (      72 ), bytes:   65262080 (   36864 ) ]
hdisk0 => reads: [ blocks:    2025246 (    4210 ), bytes: 1036925952 ( 2155520 ) ], writes: [ blocks:     127537 (      72 ), bytes:   65298944 (   36864 ) ]
hdisk0 => reads: [ blocks:    2029456 (    4210 ), bytes: 1039081472 ( 2155520 ) ], writes: [ blocks:     127617 (      80 ), bytes:   65339904 (   40960 ) ]
hdisk0 => reads: [ blocks:    2033666 (    4210 ), bytes: 1041236992 ( 2155520 ) ], writes: [ blocks:     127689 (      72 ), bytes:   65376768 (   36864 ) ]
hdisk0 => reads: [ blocks:    2037876 (    4210 ), bytes: 1043392512 ( 2155520 ) ], writes: [ blocks:     128033 (     344 ), bytes:   65552896 (  176128 ) ]
hdisk0 => reads: [ blocks:    2042094 (    4218 ), bytes: 1045552128 ( 2159616 ) ], writes: [ blocks:     128113 (      80 ), bytes:   65593856 (   40960 ) ]
hdisk0 => reads: [ blocks:    2046304 (    4210 ), bytes: 1047707648 ( 2155520 ) ], writes: [ blocks:     128185 (      72 ), bytes:   65630720 (   36864 ) ]
hdisk0 => reads: [ blocks:    2050514 (    4210 ), bytes: 1049863168 ( 2155520 ) ], writes: [ blocks:     128257 (      72 ), bytes:   65667584 (   36864 ) ]
hdisk0 => reads: [ blocks:    2054724 (    4210 ), bytes: 1052018688 ( 2155520 ) ], writes: [ blocks:     128329 (      72 ), bytes:   65704448 (   36864 ) ]
hdisk0 => reads: [ blocks:    2058934 (    4210 ), bytes: 1054174208 ( 2155520 ) ], writes: [ blocks:     128441 (     112 ), bytes:   65761792 (   57344 ) ]
hdisk0 => reads: [ blocks:    2063152 (    4218 ), bytes: 1056333824 ( 2159616 ) ], writes: [ blocks:     129297 (     856 ), bytes:   66200064 (  438272 ) ]
hdisk0 => reads: [ blocks:    2067362 (    4210 ), bytes: 1058489344 ( 2155520 ) ], writes: [ blocks:     129369 (      72 ), bytes:   66236928 (   36864 ) ]
hdisk0 => reads: [ blocks:    2071572 (    4210 ), bytes: 1060644864 ( 2155520 ) ], writes: [ blocks:     129441 (      72 ), bytes:   66273792 (   36864 ) ]
hdisk0 => reads: [ blocks:    2075782 (    4210 ), bytes: 1062800384 ( 2155520 ) ], writes: [ blocks:     129521 (      80 ), bytes:   66314752 (   40960 ) ]