Page 1 of 1

Random read slower with cache

Posted: Sun Dec 25, 2022 12:04 pm
by tverweij
I just measured the disk performance without cache and with cache - every caching block size was tested.
The results:
Image

You see that for my situation a cache block of 32k give the best results.

But what worries me is that in all cached cases the Random read 4k 32 queues, 16 threads is much slower than without cache, about 33% slower.
Is there an optimization that I overlooked, something I can do to improve this to at least the physical disk speed?

Re: Random read slower with cache

Posted: Mon Dec 26, 2022 7:11 am
by Support
Was your CPU usage at 100% while testing 4K@32Q16T?

The root cause is the proportion of caching processing time is relatively large in the entire 4KB data read/write process as completion time of 4KB read/write is very short. The SSD raid itself has good 4K performance, so you probably need a faster CPU and RAM to beat it.

We've been struggling for reducing cache processing time, but currently there's no better way yet.

Re: Random read slower with cache

Posted: Mon Dec 26, 2022 9:29 am
by tverweij
Its running on 2 CPU's with each 10 cores, each running on 2.68 Ghz without C-states, measusered on christmas day to make sure nobody was working.
So, no, CPU wasn't 100% - do you use multi threaded code for this?

But not a real big problem; in the real world tests, the cached scenario outperforms the non cached scenario without a problem :-)

Re: Random read slower with cache

Posted: Fri Dec 30, 2022 12:26 pm
by Support
tverweij wrote: Mon Dec 26, 2022 9:29 am - do you use multi threaded code for this?
Yes, we have tried and tuned with many different parameters. I hope in future we can find a better way to improve this.