What Every Data Programmer Needs to Know about Disks

Here is an excellent presentation on how your application does IO. I have embedded the presentation from Ted Dziuba here:

From Session notes: