Hi,
the very first thing to do would be to do a mmfsadm dump iohist instead of mmdiag --iohist one time (we actually add this info in next release to mmdiag --iohist) to see if the thread type will reveal something :
07:25:53.578522 W data 1:20260249600 8192 35.930 488076 181 C0A70D0A:59076980 cli 192.167.20.129 Prefetch WritebehindWorkerThread
07:25:53.632722 W data 1:20260257792 8192 45.179 627136 173 C0A70D0A:59076980 cli 192.167.20.129 Cleaner CleanBufferThread
07:25:53.662067 W data 2:20259815424 8192 45.612 992975086 40 C0A70D0A:59076985 cli 192.167.20.130 Prefetch WritebehindWorkerThread
07:25:53.734274 W data 1:19601858560 8 0.624 50237 0 C0A70D0A:59076980 cli 192.167.20.129 MBHandler DioHandlerThread
if you see DioHandlerThread most likely somebody changed a openflag to use O_DIRECT . if you don't use that flag even the app does only 4k i/o which is inefficient GPFS will detect this and do prefetch writebehind in large blocks, as soon as you add O_DIRECT, we don't do this anymore to honor the hint and then every single request gets handled one by one.
after that the next thing would be to run a very low level trace with just IO infos like :
mmtracectl --start --trace=io --tracedev-write-mode=overwrite -N .
this will start collection on the node you execute the command if you want to run it against a different node replace the dot at the end with the hostname .
wait a few seconds and run
mmtracectl --off
you will get a message that the trace gets formated and a eventually a trace file .
now grep for FIO and you get lines like this :
7.293293470 127182 TRACE_IO: FIO: write data tag 1670183 1 ioVecSize 64 1st buf 0x5C024940000 nsdId C0A71482:5872D94A da 2:51070828544 nSectors 32768 err 0
if you further reduce it to nSectors 8 you would focus only on your 4k writes you mentioned above.
the key item in the line above you care about is tag 16... this is the inode number of your file.
if you now do :
cd /usr/lpp/mmfs/samples/util ; make
then run (replace -i and filesystem path obviously)
[root@fire01 util]# ./tsfindinode -i 1670183 /ibm/fs2-16m-09/
and you get a hit like this :
1670183 0 /ibm/fs2-16m-09//shared/test-newbuf
you now know the file that is being accessed in the I/O example above is /ibm/fs2-16m-09//shared/test-newbuf
hope that helps.
sven