Hacker News new | past | comments | ask | show | jobs | submit login

I feel like the "summary of the summary" from the comments is the best.

    Thank you for detailing this stuff. I had a quick read.

    For the sake of other readers, if you don’t have time to read Part 6, here is the summary of the summary:

    If you are using a decent OS like linux, as opposed to direct hardware access (who other than google ever did that?), all you need to worry about is how to co-locate your data. By “using”, I don’t mean using O_DIRECT, which basically says, “OS, please get out of my way.”

    If you do use O_DIRECT, do “man 2 open” and search the man page for “monkey”. If that’s not enough, google “Linus O_DIRECT” and look at the war with Oracle and the like. You could probably also google “Linus Braindead” and you are likely to find a post about O_DIRECT.

    If you are one of the few people actually working on the kernel’s disk layer, you probably know all this and is unlikely you will ever be reading this.

    As for co-locating data, there is no way to do it without knowing your app inside out. So know your app. For some apps, it can make orders of magnitude difference. That’s your domain. Leave the disk to the kernel. Let it use it’s cache and it’s scheduler. They will be better than yours and will benefit the whole system, in case other apps need to get at the data too. You can try to help the kernel by doing vectorized read/writes although that’s a bigger deal with spinning disks.

    Ata Roboubi



It might be nice if you italicized that rather than flagging it as code. For regular text, line-wrapping is a good thing.

I realize that's just my opinion though.


> I realize that's just my opinion though.

I agree. I also found the text very hard to read.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: