performance

Investigating open() and close() performance

On another day, the question came up, in how far the performance of open() affects a certain system. In my mind I was going through the need to go to disk and do sync() calls to open a file that didn't exist. Eventually I decided to write a simple tester for this use case. open-tester.cpp will open ten thousand files. In combination with Linux perf tool, this leaves us in a convenient position to benchmark the performance of this particular system call. The questions that I want to answer…

Keep reading