I wondering how to get the size of data cached by the filesystem (on Linux) after the write
syscall was invoked. This is needed in order to find out which filesystem is the best in data caching and should be chosen to be used on SSD devices to reduce device wear as much as possible.
The initial idea was to check the amount of data passed to write syscall using strace
and compare it to the amount of data passed to the device using iostat
, but I'm not sure if this approach is correct.