0

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.

tens0r
  • 55
  • 3
  • Given the endurance of modern SSDs, that's a strange reason for choosing a filesystem. – stark Mar 12 '22 at 03:10
  • That SSD is going to be run for years as a part of the embedded system without the possibility to replace it with a new one. – tens0r Mar 13 '22 at 18:48

0 Answers0