Dimitrios Apostolou <jimis@gmx.net> writes:
> Thanks for the extensive testing! Did you see the same syscall pattern in strace output, as I did?
Yes, I did look at that, and it's the same as you saw:
HEAD repeats
read(4k)
lseek(~128k forward)
which is to be expected if we have to read data block headers
that are ~128K apart; while patched repeats
read(4k)
read(~128k)
which is a bit odd in itself, why isn't it merging the reads better?
> I was using an HDD,
Ah. Your original message mentioned NVMe so I was assuming you
were also looking at solid-state drives. I can imagine that
seeking is more painful on HDDs ...
regards, tom lane