Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • @tim Where is that quote from? Commented Oct 14, 2018 at 0:03
  • @Tim do you mean synchronous? (the post says synchronous) Commented Oct 14, 2018 at 0:21
  • 1
    Sorry. My questions are: How do you understand the quote says "synchronous writes are not buffered"? Do you mean synchronous writes by O_SYNC? Commented Oct 14, 2018 at 0:25
  • @Tim, I think it's an artifact of the overloaded term "buffered". In this case it means that there isn't an intermediate buffer that may collate multiple write()s before actually writing the data, so two write()s of 10 bytes will be twice as slow as one of 20 byes. There's still full buffering in the kernel, although since the data won't be dirty for long, they may get discarded soon if there's memory pressure. Commented Oct 14, 2018 at 0:41
  • 2
    @Tim O_SYNC. See also the man page Commented Oct 14, 2018 at 0:56