Thread (35 messages) 35 messages, 7 authors, 2015-12-08

Re: RAID 5,6 sequential writing seems slower in newer kernels

From: Dallas Clement <hidden>
Date: 2015-12-03 02:51:05

On Wed, Dec 2, 2015 at 8:38 PM, Phil Turmel [off-list ref] wrote:
On 12/02/2015 09:33 PM, Dallas Clement wrote:
quoted
I'm not sure that the sync=1 has any effect in this case where I've
got direct=1 set (for non buffered I/O).  I think the sync=1 flag only
matters for buffered I/O.  I really shouldn't be setting that flag at
all.
It's substantially different from direct=1.  O_DIRECT just bypasses the
kernel's caches.  O_SYNC flushes the file data and filesystem metadata,
and kills the device caches and queues.
Isn't O_SYNC only applicable for buffered I/O or going through the
kernel caches?  If I'm using O_DIRECT, seems like it should just
ignore this flag.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help