Open uweseimet opened 9 months ago
Isn't better/easier to use mmap and let the kernel worry about caching which is quite good at?
If you want to let the kernel do the work just use one of the non-legacy caching modes, which are filesystem based.
Is not the same thing, each read/write operations requires context switches which are quite expensive...
I forgot to mention that mmap
will NOT work for 32bit systems as it won't be able to map files over 2GB, so it's probably a bad idea anyway ...
It shall be evaluated whether an LRU cache results in a performance gain. If it does, it shall be implemented with a configurable size. In case it turns out that such a cache outperforms the PiSCSI legacy cache, the latter shall be removed.