Hello All,
This is a continuation to the previous discussion that i had with Sven.
However against what i had mentioned previously - i realize that this is “not” related to mmap, and i see it when doing random freads.
I see that block-size of the filesystem matters when reading from Page pool.
I see a major difference in performance when compared 1M to 16M, when doing lot of random small freads with all of the data in pagepool.
Performance for 1M is a magnitude “more” than the performance that i see for 16M.
The GPFS that we have currently is :
Version : 5.0.1-0.5
Filesystem version: 19.01 (5.0.1.0)
Block-size : 16M
I had made the filesystem block-size to be 16M, thinking that i would get the most performance for both random/sequential reads from 16M than the smaller block-sizes.
With GPFS 5.0, i made use the 1024 sub-blocks instead of 32 and thus not loose lot of storage space even with 16M.
I had run few benchmarks and i did see that 16M was performing better “when hitting storage/disks” with respect to bandwidth for random/sequential on small/large reads.
However, with this particular workload - where it freads a chunk of data randomly from hundreds of files -> I see that the number of page-faults increase with block-size and actually reduce the performance.
1M performs a lot better than 16M, and may be i will get better performance with less than 1M.
It gives the best performance when reading from local disk, with 4K block size filesystem.
What i mean by performance when it comes to this workload - is not the bandwidth but the amount of time that it takes to do each iteration/read batch of data.
I figure what is happening is:
fread is trying to read a full block size of 16M - which is good in a way, when it hits the hard disk.
But the application could be using just a small part of that 16M. Thus when randomly reading(freads) lot of data of 16M chunk size - it is page faulting a lot more and causing the performance to drop .
I could try to make the application do read instead of freads, but i fear that could be bad too since it might be hitting the disk with a very small block size and that is not good.
With the way i see things now -
I believe it could be best if the application does random reads of 4k/1M from pagepool but some how does 16M from rotating disks.
I don’t see any way of doing the above other than following a different approach where i create a filesystem with a smaller block size ( 1M or less than 1M ), on SSDs as a tier.
May i please ask for advise, if what i am understanding/seeing is right and the best solution possible for the above scenario.