Ftrace: The hidden light switch
lwn.net
lwn.net
Anybody knows why Ubuntu did that? I would have expected that in the age of SSDs, read-ahead becomes less useful.
In 2014 this should all really be auto tuned - how hard it is for a user space tool to figure out that a disk is SSD, do a seek latency and read speed test to conclude it will be better off without RA? (Thinking of it though RA brings data in RAM which is still orders of magnitude faster than reading from SSD. So may be there is _some_ benefit if you don't increase the IO overhead enough.)
• https://news.ycombinator.com/item?id=6842338
• https://news.ycombinator.com/item?id=7679822
• https://perf.wiki.kernel.org/index.php/Tutorial
Try to look closely at the methods used to correctly apply perf(1) to the problem at hand. If it feels like you understand _why_ it was used, you'll easily be able to determine if it's the right tool for the job.
So instead of the "have you tried turning it off-and-on-again", which takes next to no time, we venture off into tracing kernel code?
But the real issue is understanding the platform that you are building on, and having the tools to explore how that platform works. I am so thankful that Brenden is out there doing this work and sharing it for the rest of us to benefit from!