Re:PostgreSQL's fsync surprise
by vidarh on Thursday May 03, 2018 @03:10AM
(#16983940)
> We can make that fast by letting the OS / libc batch write transactions.
Those are two very different things, potentially. If the write traverse a userspace-kernel boundary, there is no way to make that fast for small writes. If the batching happens entirely userspace, but just in a standard implementation, then sure.
But people tend to severely underestimate how expensive syscalls are.
Those are two very different things, potentially. If the write traverse a userspace-kernel boundary, there is no way to make that fast for small writes. If the batching happens entirely userspace, but just in a standard implementation, then sure.
But people tend to severely underestimate how expensive syscalls are.