Was able to reproduce "cp: cannot stat file.x: Input/output error"
Quoted 13 lines · David Dabbs
Quoted 2 lines
The solution I proposed is below, and I followed up that the wait should
be in the iteration command, but it should probably be moved _after_ all reps as I have it below. This will sync/wait after all the phase iterations have run instead of after each individual phase iteration command. In either case it will not be timed. Sound right, Alex?
one "wait" should be at the old place still.
[David Dabbs]
I thought so, then second guessed it.
Quoted 3 lines
but, I don't think we should measure writes w/o final cleaning of the fs cache.
[David Dabbs]
If you mean at phase end, yes that does sound right for write ops.
Quoted 7 lines
Reiser4 had no support for write throttling at some early stages of development, w/o final
sync()it might look faster than physical disk drive.Quoted 2 lines
dd
I have been running benchmarks with SYNC=off, as the mongo page recommends against doing so. In configs where SYNC=ON we would omit the syncs/wais, yes?
David
Quoted 28 lines · David Dabbs
Quoted 13 lines · David Dabbs
Quoted 2 lines
The solution I proposed is below, and I followed up that the wait should
be in the iteration command, but it should probably be moved _after_ all reps as I have it below. This will sync/wait after all the phase iterations have run instead of after each individual phase iteration command. In either case it will not be timed. Sound right, Alex?
one "wait" should be at the old place still.
[David Dabbs]
I thought so, then second guessed it.Quoted 3 lines
but, I don't think we should measure writes w/o final cleaning of the fs cache.
[David Dabbs]
If you mean at phase end, yes that does sound right for write ops.Quoted 5 lines
Reiser4 had no support for write throttling at some early stages of development, w/o final
sync()it might look faster than physical disk drive.
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
dd
I have been running benchmarks with SYNC=off, as the mongo page recommends against doing so. In configs where SYNC=ON we would omit the syncs/wais, yes?
not sure. metadata need to be synched still.
Quoted 1 line
David
Signature · 1 line
Alex.
Quoted 12 lines
-----Original Message-----
From: Alex Zarochentsev [mailto:[email protected]]
Sent: Tuesday, August 10, 2004 4:07 PM
To: David Dabbs
Cc: 'Hans Reiser'; 'ReiserFS List'
Subject: Re: Was able to reproduce "cp: cannot stat file.x: Input/output error"Quoted 1 line · David Dabbs
Quoted 7 lines
Quoted 3 lines
I have been running benchmarks with SYNC=off, as the mongo page recommends against doing so. In configs where SYNC=ON we would omit the syncs/waits, yes?
not sure. metadata need to be synched still.
Alex.
Saw following recently on LKML re. ext3. Does r4 O_SYNC not sync metadata?
From Theodore Ts'o
Subject Re: ext3 and SPEC SFS Run rules.
Quoted 4 lines · Tigran Aivazian
Quoted 3 lines · Andrew Morton
ext3 should be fully syncing data and metadata for both
fsync()andO_SYNCwrites in all three journalling modes.
If not, that's a big bug.
David
Quoted 6 lines
Quoted 2 lines
I have been running benchmarks with SYNC=off, as the mongo page
recommends
Quoted 2 lines
against doing so. In configs where SYNC=ON we would omit the syncs/wais, yes?
Quoted 6 lines
not sure. metadata need to be synched still.
Quoted 1 line
David
--
Alex.
See also below. I'm pretty sure my IDE disks are write cache-enabled. Perhaps the statement below that "ide write caches must be disabled for reliable fsync operations with Linux" is an explanation for the errors I saw during my benchmarking. Will look more into the "IDE barrier and true fsync() in Linux on IDE" threads.
David
Subject: Re: Why O_SYNC is faster than fsync on ext3
Date: Sun, 21 Mar 2004 11:45:18 +0100
-------------------------------------------------------------------------
Quoted 4 lines · Yusuf Goolamabbas
I sent this to Bruce but forgot to cc pgsql-hackers, The patches are likely to go into 2.6.6. People interested in extremely safe fsync writes should also follow the IDE barrier thread and the true
fsync()in Linux on IDE thread
Actually the most interesting part of the thread was the initial post from Peter Zaitsev on a fcntl(fd, F_FULLSYNC, NULL): He wrote that this is necessary for Mac OS X to force a flush of the write caches in the disks. Unfortunately I can't find anything about this flag with google.
Another interesting point is that right now, ide write caches must be disabled for reliable fsync operations with Linux. Recent suse kernels contain partial support. If the existing patches are completed and merged, it will be safe to enable write caching.
Perhaps Bruce's cache flush test could be modified slightly to check that the OS isn't lying about fsync: if fsync is faster than the rotational delay of the disks, then the setup is not suitable for postgres. This could be recommended as a setup test in the install document.
Hello
Quoted 15 lines · David Dabbs
Quoted 15 lines
-----Original Message-----
From: Alex Zarochentsev [mailto:[email protected]]
Sent: Tuesday, August 10, 2004 4:07 PM
To: David Dabbs
Cc: 'Hans Reiser'; 'ReiserFS List'
Subject: Re: Was able to reproduce "cp: cannot stat file.x: Input/output error"Quoted 3 lines · David Dabbs
I have been running benchmarks with SYNC=off, as the mongo page recommends against doing so. In configs where SYNC=ON we would omit the syncs/waits, yes?
Quoted 7 lines
Quoted 3 lines
not sure. metadata need to be synched still.
Alex.
Saw following recently on LKML re. ext3. Does r4
O_SYNCnot sync metadata?
It does. Well, it should.
Quoted 17 lines
Quoted 2 lines
From Theodore Ts'o
Subject Re: ext3 and SPEC SFS Run rules.
Quoted 4 lines · Tigran Aivazian
Quoted 2 lines · Andrew Morton
ext3 should be fully syncing data and metadata for both
fsync()andO_SYNCwrites in all three journalling modes. If not, that's a big bug.David