Was able to reproduce "cp: cannot stat file.x: Input/output error"
This is definitely reproducible. I rebooted and reran the script. Same result at about the same point in the sequence (part way into first COPY iteration).
Right now I'm running identical mongo config against reiserfs and it appears to be running just fine into the second copy iteration.
Should someone from Namesys downloads the bzip tar I mentioned before here's a summary of the changes in my version of mongo:
reiser_fract_tree.c
- added extensions to generated filenames bay adding rnd to a base char of backtick. Extensions generated should be in the range of 'a' to 'a' + MAX_NAME_LEN.
mongo.pl
- added PHASE_MKDIRS
Makes directories on the target device from a static list.
- added PHASE_MKFILES
Makes files on the target device from a static list.
- added MAX_FNAME_LEN option
Allows me to use something different than a hard coded value of 6. I ran it with 23.
- Some extra LOG calls so I can see commands being executed.
David
Hello
Quoted 10 lines · David Dabbs
This is definitely reproducible. I rebooted and reran the script. Same result at about the same point in the sequence (part way into first COPY iteration).
Right now I'm running identical mongo config against reiserfs and it appears to be running just fine into the second copy iteration.
Should someone from Namesys downloads the bzip tar I mentioned before here's a summary of the changes in my version of mongo:
Yes, i am running your version of mongo.
Quoted 20 lines
reiser_fract_tree.c
- added extensions to generated filenames bay adding rnd to a base char of backtick. Extensions generated should be in the range of 'a' to 'a' +MAX_NAME_LEN.mongo.pl
- addedPHASE_MKDIRS
Makes directories on the target device from a static list.
- addedPHASE_MKFILES
Makes files on the target device from a static list.
- addedMAX_FNAME_LENoption
Allows me to use something different than a hard coded value of 6. I ran it with 23.
- Some extra LOG calls so I can see commands being executed.David
Hello,
I've run David's version of Mongo and hit the following error during the PHASE MODIFY sequence.
reiser4[mongo_modify(4127)]: commit_current_atom (fs/reiser4/txnmgr.c:1206)[nikita-3176]:
WARNING: Flushing like mad: 16384
All 3 mongo_modify processes are stuck in D+
Running a fsck --check now.
Thanks,
Philippe
On Fri, 06 Aug 2004 19:51:58 +0400
"Vladimir V. Saveliev" <[email protected]> wrote:
| > Should someone from Namesys downloads the bzip tar I mentioned before here's | > a summary of the changes in my version of mongo: | > | | Yes, i am running your version of mongo.
Hello
Quoted 7 lines · Philippe Gramoullé
Hello,
I've run David's version of Mongo and hit the following error during the PHASE MODIFY sequence.
reiser4[mongo_modify(4127)]:
commit_current_atom(fs/reiser4/txnmgr.c:1206)[nikita-3176]:
WARNING: Flushing like mad: 16384
This is harmless message
Quoted 2 lines
All 3
mongo_modifyprocesses are stuck in D+
So, it did not complete?
It is working yet here
Quoted 16 lines
Running a fsck --check now.
Thanks,
Philippe
On Fri, 06 Aug 2004 19:51:58 +0400
"Vladimir V. Saveliev" <[email protected]> wrote:| > Should someone from Namesys downloads the bzip tar I mentioned before here's | > a summary of the changes in my version of mongo: | > | | Yes, i am running your version of mongo.
Philippe (or anyone else using my modified Mongo), note that if you use the MAX_FNAME_LEN option you should restrict the value to something under 26. The extension character is the backtick (dec 96) + the value of the random number the code already generates left zero pad the filename in the sprintf. i.e.
"%.c", '`' + (char) rnd
If you exceed 26 then you will generate filenames that may cause problems.
David
Quoted 9 lines · Philippe Gramoull?
Hello,
I've run David's version of Mongo and hit the following error during the PHASE MODIFY sequence.
reiser4[mongo_modify(4127)]:
commit_current_atom(fs/reiser4/txnmgr.c:1206)[nikita-3176]:
WARNING: Flushing like mad: 16384All 3
mongo_modifyprocesses are stuck in D+
did vmstat(8) show no disk i/o?
Quoted 15 lines
Running a fsck --check now.
Thanks,
Philippe
On Fri, 06 Aug 2004 19:51:58 +0400
"Vladimir V. Saveliev" <[email protected]> wrote:| > Should someone from Namesys downloads the bzip tar I mentioned before here's | > a summary of the changes in my version of mongo: | > | | Yes, i am running your version of mongo.
Signature · 1 line
Alex.
Hello,
On Fri, 06 Aug 2004 21:39:15 +0400
"Vladimir V. Saveliev" <[email protected]> wrote:
| > reiser4[mongo_modify(4127)]: commit_current_atom (fs/reiser4/txnmgr.c:1206)[nikita-3176]: | > WARNING: Flushing like mad: 16384 | > | This is harmless message
Ok,
| | > All 3 mongo_modify processes are stuck in D+ | > | | So, it did not complete?
no
| It is working yet here
Here mongo_modify processes were stuck in D+ state doing nothing, strace has shown no activity.
Thanks,
Philippe
Hello Alex,
I was in a hurry to leave, and didn't have a look.
I'll try to reproduce the problem and get better description of the problem.
Thanks,
Philippe
On Fri, 6 Aug 2004 21:51:57 +0400
Alex Zarochentsev <[email protected]> wrote:
| > All 3 mongo_modify processes are stuck in D+ | | did vmstat(8) show no disk i/o?
Hello david,
I copy/pasted the exact command line than you posted at the beginning of this thread, so with MAX_FNAME_LEN=23.
Thanks for the info.
Philippe
On Fri, 6 Aug 2004 12:46:02 -0500
"David Dabbs" <[email protected]> wrote:
| | If you exceed 26 then you will generate filenames that may cause problems. | | David | | | | |
Quoted 4 lines · Vladimir V. Saveliev
Hello
Philippe Gramoullé wrote:
Quoted 8 lines
Quoted 7 lines
Hello,
I've run David's version of Mongo and hit the following error during the PHASE MODIFY sequence.
reiser4[mongo_modify(4127)]:
commit_current_atom(fs/reiser4/txnmgr.c:1206)[nikita-3176]:
WARNING: Flushing like mad: 16384This is harmless message
Then remove it.
Quoted 26 lines
Quoted 3 lines
All 3
mongo_modifyprocesses are stuck in D+So, it did not complete?
It is working yet hereQuoted 15 lines
Running a fsck --check now.
Thanks,
Philippe
On Fri, 06 Aug 2004 19:51:58 +0400
"Vladimir V. Saveliev" <[email protected]> wrote:| > Should someone from Namesys downloads the bzip tar I mentioned
before here's
| > a summary of the changes in my version of mongo:
| > | | Yes, i am running your version of mongo.
Quoted 11 lines · David Dabbs
Philippe (or anyone else using my modified Mongo), note that if you use the
MAX_FNAME_LENoption you should restrict the value to something under 26. The extension character is the backtick (dec 96) + the value of the random number the code already generates left zero pad the filename in the sprintf. i.e."%.c", '`' + (char) rndIf you exceed 26 then you will generate filenames that may cause problems.
Problems that indicate reiser4 bugs or mongo bugs?
Quoted 9 lines
David
Quoted 14 lines
-----Original Message-----
From: Hans Reiser [mailto:[email protected]]
Sent: Friday, August 06, 2004 11:16 PM
To: David Dabbs
Cc: 'Philippe Gramoullé'; 'ReiserFS List'
Subject: Re: Was able to reproduce "cp: cannot stat file.x: Input/output error"Quoted 2 lines · David Dabbs
i.e.
Quoted 8 lines
Quoted 3 lines
"%.c", '`' + (char) rndIf you exceed 26 then you will generate filenames that may cause
problems.
Quoted 2 lines
Problems that indicate reiser4 bugs or mongo bugs?
Mongo. The pipe character is not legal in a filename as an example.
I think I have discovered the problem - unless there was a reason mongo was issuing mount/unmount commands at the start/end of a mongo 'run' as well as before/after _each phase_. I just removed the mount/unmount calls that bracket each phase execution and I am not seeing the errors. In addition, reiser4 is running much faster. For instance, with the 'extra' mount/unmounts r4 reported a REAL TIME stats of approximately 700 & 40 for CREATE and MKFILES. After removing the mount/un calls it is reporting 224 & 50 REAL TIME.
I will reboot and run a sequence of each of the filesystem configs overnight and see what happens.
David
Quoted 33 lines · David Dabbs
Quoted 21 lines
-----Original Message-----
From: Hans Reiser [mailto:[email protected]]
Sent: Friday, August 06, 2004 11:16 PM
To: David Dabbs
Cc: 'Philippe Gramoullé'; 'ReiserFS List'
Subject: Re: Was able to reproduce "cp: cannot stat file.x: Input/output error"Quoted 7 lines · David Dabbs
i.e.
"%.c", '`' + (char) rndIf you exceed 26 then you will generate filenames that may cause
Quoted 9 lines
problems.
Quoted 2 lines
Problems that indicate reiser4 bugs or mongo bugs?
Mongo. The pipe character is not legal in a filename as an example.
Quoted 10 lines
I think I have discovered the problem - unless there was a reason mongo was issuing mount/unmount commands at the start/end of a mongo 'run' as well as before/after
_eachphase_. I just removed the mount/unmount calls that bracket each phase execution and I am not seeing the errors. In addition, reiser4 is running much faster. For instance, with the 'extra' mount/unmounts r4 reported a REAL TIME stats of approximately 700 & 40 for CREATE and MKFILES. After removing the mount/un calls it is reporting 224 & 50 REAL TIME.
can you quote code more in these emails?
Quoted 11 lines
I will reboot and run a sequence of each of the filesystem configs overnight and see what happens.
David
Probably someone wanted to separate the measurement of the phases. It has been a while since I read mongo.....
Quoted 21 lines
-----Original Message-----
From: Hans Reiser [mailto:[email protected]]
Sent: Saturday, August 07, 2004 2:50 AM
To: David Dabbs
Cc: 'ReiserFS List'
Subject: Re: Was able to reproduce "cp: cannot stat file.x: Input/output error"Quoted 4 lines
Mongo. The pipe character is not legal in a filename as an example.
I think I have discovered the problem - unless there was a reason mongo
was
Quoted 1 line
issuing mount/unmount commands at the start/end of a mongo 'run' as well
as
Quoted 4 lines
before/after
_eachphase_. I just removed the mount/unmount calls that bracket each phase execution and I am not seeing the errors. In addition, reiser4 is running much faster. For instance, with the 'extra' mount/unmounts r4 reported a REAL TIME stats of approximately 700 & 40
Quoted 8 lines
for
Quoted 1 line
CREATE and MKFILES. After removing the mount/un calls it is reporting 224
&
Quoted 3 lines
50 REAL TIME.
can you quote code more in these emails?
Instead of cutting/pasting sections here see
http://dabbs.net/reiser4/mongopl.html. I have annotated my modifications to mongo's mount handling with 'dmd.' There are other non-annotated changes I have made, but they are not germane to this issue. If you want to know exactly what is different, diff this with the mongo.pl in the build Elena recently uploaded at
http://thebsh.namesys.com/benchmarks/mongo-2004.07.26.tar.gz.
I'm still rerunning tests to see if I can reproduce, but time is limited this weekend.
David
Quoted 6 lines · Hans Reiser
Quoted 3 lines
I think I have discovered the problem - unless there was a reason mongo was issuing mount/unmount commands at the start/end of a mongo 'run' as well as before/after
_eachphase_.Probably someone wanted to separate the measurement of the phases. It has been a while since I read mongo.....
Note that an unmount/mount pair will force a flush of all dirtied pages in the in-memory file cache, and *really* not return until it's really done and really out on disk. In addition, sync() will force stuff to disk, but *not* invalidate in-cache pages - more drastic measures are needed if you want to benchmark with a cold cache (which is almost a must if you're doing actual filesystem benchmarking, as otherwise you're benching the in-core cache instead).
As an aside, although the Linux fs/buffer:do_sync() won't return until it's all really done, there is no mandate that the sync() syscall wait (and in fact, is the source of the old "type 'sync' three times, then 'halt'" - the second and third times you typed sync and hit return hopefully gave the I/O scheduled by the *first* sync time to complete. At least one 'Unix for Dummies' book proved their lack of depth of understanding when they recommended:
# sync;sync;sync;halt
;)
Quoted 16 lines · [email protected] wrote:
Quoted 11 lines · Hans Reiser
Quoted 5 lines
I think I have discovered the problem - unless there was a reason mongo was issuing mount/unmount commands at the start/end of a mongo 'run' as well as before/after
_eachphase_.Probably someone wanted to separate the measurement of the phases. It has been a while since I read mongo.....
Quoted 9 lines
Note that an unmount/mount pair will force a flush of all dirtied pages in the in-memory file cache, and *really* not return until it's really done and really out on disk. In addition,
sync()will force stuff to disk, but *not* invalidate in-cache pages - more drastic measures are needed if you want to benchmark with a cold cache (which is almost a must if you're doing actual filesystem benchmarking, as otherwise you're benching the in-core cache instead).
Yes, but benchmarking the invalidation of the cache is a mistake to avoid.
Quoted 7 lines
As an aside, although the Linux fs/buffer:do_sync() won't return until it's all really done, there is no mandate that the
sync()syscall wait (and in fact, is the source of the old "type 'sync' three times, then 'halt'" - the second and third times you typed sync and hit return hopefully gave the I/O scheduled by the *first* sync time to complete. At least one 'Unix for Dummies' book proved their lack of depth of understanding when they recommended:
Quoted 6 lines
# sync;sync;sync;halt
;)
Thanks for explaining
sync;sync;sync;halt
I always felt I was failing to grok something.
Quoted 9 lines · On Mon, Aug 09, 2004 at 11:21:17PM -0400, [email protected] wrote:
Quoted 6 lines · Hans Reiser
Quoted 3 lines
I think I have discovered the problem - unless there was a reason mongo was issuing mount/unmount commands at the start/end of a mongo 'run' as well as before/after
_eachphase_.Probably someone wanted to separate the measurement of the phases. It has been a while since I read mongo.....
Quoted 6 lines
Note that an unmount/mount pair will force a flush of all dirtied pages in the in-memory file cache, and *really* not return until it's really done and really out on disk. In addition,
sync()will force stuff to disk, but *not* invalidate in-cache pages - more drastic measures are needed if you want to benchmark with a cold cache (which is almost a must if you're doing actual filesystem benchmarking, as otherwise you're benching the in-core cache instead).
That was designed to have result in each phase as independent as we can. For example, if we have read slowdown in mongo, we will analyze only reads and, probably, fs fragmentation, we won't deal with unmeasurable cache state before the read phase. Known and persistent "cold cache effect" is better than unknown hot cache one :) And, mongo phases are designed to be long and keep the cold cache effect at minimum.
Quoted 9 lines
As an aside, although the Linux fs/buffer:do_sync() won't return until it's all really done, there is no mandate that the
sync()syscall wait (and in fact, is the source of the old "type 'sync' three times, then 'halt'" - the second and third times you typed sync and hit return hopefully gave the I/O scheduled by the *first* sync time to complete. At least one 'Unix for Dummies' book proved their lack of depth of understanding when they recommended:# sync;sync;sync;halt
Signature · 1 line
Alex.
Quoted 5 lines · Hans Reiser
Thanks for explaining
sync;sync;sync;halt
I always felt I was failing to grok something.
As was the author who recommended it. It started out as:
# sync ( this one schedules the I/O) # sync ( just a time waster typing) # sync ( just a time waster typing ) # halt ( and we finally actually shut down).
The disks on the old PDP and Vax 750 boxes were actually sluggish enough that if you had a whole 1M or 2M in the buffer cache to flush out, it was actually not difficult to enter "sync", hit return, enter "halt", hit return, and have the halt happen before sync finished, doing the predictable to the non-journaled file systems. Empirical studies showed that even on the biggest-memory boxes, sync could almost always finish with 2 time-wasters before the halt.. ;)
Quoted 24 lines · Alex Zarochentsev
Quoted 12 lines · On Mon, Aug 09, 2004 at 11:21:17PM -0400, [email protected] wrote:
Quoted 8 lines · Hans Reiser
Quoted 5 lines
I think I have discovered the problem - unless there was a reason mongo was issuing mount/unmount commands at the start/end of a mongo 'run' as well as before/after
_eachphase_.Probably someone wanted to separate the measurement of the phases. It has been a while since I read mongo.....
Quoted 8 lines
Note that an unmount/mount pair will force a flush of all dirtied pages in the in-memory file cache, and *really* not return until it's really done and really out on disk. In addition,
sync()will force stuff to disk, but *not* invalidate in-cache pages - more drastic measures are needed if you want to benchmark with a cold cache (which is almost a must if you're doing actual filesystem benchmarking, as otherwise you're benching the in-core cache instead).
Quoted 8 lines
That was designed to have result in each phase as independent as we can. For example, if we have read slowdown in mongo, we will analyze only reads and, probably, fs fragmentation, we won't deal with unmeasurable cache state before the read phase. Known and persistent "cold cache effect" is better than unknown hot cache one :) And, mongo phases are designed to be long and keep the cold cache effect at minimum.
Let me be more precise here. Is the time spent mounting and umounting included in the time for the phase?
Quoted 6 lines
Let me be more precise here. Is the time spent mounting and umounting included in the time for the phase?
[David Dabbs]
No. Each phase iteration is wrapped in a time call. The mounting and unmounting happen before and after this, so there's shouldn't be any timing impact. I'd need to double check the sources, but I'm pretty sure that's the case.
David
Quoted 8 lines · David Dabbs
Quoted 7 lines
Let me be more precise here. Is the time spent mounting and umounting included in the time for the phase?
Quoted 12 lines
[David Dabbs] No. Each phase iteration is wrapped in a time call. The mounting and unmounting happen before and after this, so there's shouldn't be any timing impact. I'd need to double check the sources, but I'm pretty sure that's the case.
David
Oh, well, then my criticism is invalid.
Quoted 46 lines · Hans Reiser
Quoted 31 lines · Alex Zarochentsev
Quoted 15 lines · On Mon, Aug 09, 2004 at 11:21:17PM -0400, [email protected] wrote:
Quoted 11 lines · Hans Reiser
Quoted 7 lines
I think I have discovered the problem - unless there was a reason mongo was
issuing mount/unmount commands at the start/end of a mongo 'run' as well as
before/after_eachphase_.Probably someone wanted to separate the measurement of the phases. It has been a while since I read mongo.....
Quoted 12 lines
Note that an unmount/mount pair will force a flush of all dirtied pages in the
in-memory file cache, and *really* not return until it's really done and really
out on disk. In addition,sync()will force stuff to disk, but *not* invalidate
in-cache pages - more drastic measures are needed if you want to benchmark with a cold cache (which is almost a must if you're doing actual filesystem
benchmarking, as otherwise you're benching the in-core cache instead).Quoted 12 lines
That was designed to have result in each phase as independent as we can. For
example, if we have read slowdown in mongo, we will analyze only reads and, probably, fs fragmentation, we won't deal with unmeasurable cache state before
the read phase. Known and persistent "cold cache effect" is better than unknown
hot cache one :) And, mongo phases are designed to be long and keep the cold
cache effect at minimum.
Quoted 2 lines
Let me be more precise here. Is the time spent mounting and umounting included in the time for the phase?
oops. sync time included. mount/umount time is not.
Signature · 1 line
Alex.
Quoted 50 lines · Alex Zarochentsev
Quoted 47 lines · Hans Reiser
Quoted 43 lines · Alex Zarochentsev
Quoted 18 lines · On Mon, Aug 09, 2004 at 11:21:17PM -0400, [email protected] wrote:
Quoted 7 lines · Hans Reiser
Quoted 7 lines
I think I have discovered the problem - unless there was a reason mongo was issuing mount/unmount commands at the start/end of a mongo 'run' as well as before/after
_eachphase_.Quoted 5 lines
Probably someone wanted to separate the measurement of the phases. It has been a while since I read mongo.....
Quoted 10 lines
Note that an unmount/mount pair will force a flush of all dirtied pages in the in-memory file cache, and *really* not return until it's really done and really out on disk. In addition,
sync()will force stuff to disk, but *not* invalidate in-cache pages - more drastic measures are needed if you want to benchmark with a cold cache (which is almost a must if you're doing actual filesystem benchmarking, as otherwise you're benching the in-core cache instead).That was designed to have result in each phase as independent as we can. For example, if we have read slowdown in mongo, we will analyze only reads and, probably, fs fragmentation, we won't deal with unmeasurable cache state before the read phase. Known and persistent "cold cache effect" is better than unknown hot cache one :) And, mongo phases are designed to be long and keep the cold cache effect at minimum.
Quoted 9 lines
Quoted 3 lines
Let me be more precise here. Is the time spent mounting and umounting included in the time for the phase?
oops. sync time included. mount/umount time is not.
You see the problem, yes? Your suggestion?
Quoted 70 lines · Hans Reiser
Quoted 68 lines · Alex Zarochentsev
Quoted 64 lines · Hans Reiser
Quoted 41 lines · Alex Zarochentsev
Quoted 21 lines · On Mon, Aug 09, 2004 at 11:21:17PM -0400, [email protected] wrote:
Quoted 9 lines · Hans Reiser
Quoted 9 lines
I think I have discovered the problem - unless there was a reason mongo was
issuing mount/unmount commands at the start/end of a mongo 'run' as well as
before/after_eachphase_.Quoted 6 lines
Probably someone wanted to separate the measurement of the phases. It has been a while since I read mongo.....
Quoted 15 lines
Note that an unmount/mount pair will force a flush of all dirtied pages in the
in-memory file cache, and *really* not return until it's really done and really
out on disk. In addition,sync()will force stuff to disk, but *not* invalidate
in-cache pages - more drastic measures are needed if you want to benchmark
with a cold cache (which is almost a must if you're doing actual filesystem
benchmarking, as otherwise you're benching the in-core cache instead).Quoted 15 lines
That was designed to have result in each phase as independent as we can. For
example, if we have read slowdown in mongo, we will analyze only reads and,
probably, fs fragmentation, we won't deal with unmeasurable cache state before
the read phase. Known and persistent "cold cache effect" is better than unknown
hot cache one :) And, mongo phases are designed to be long and keep the cold
cache effect at minimum.Let me be more precise here. Is the time spent mounting and umounting included in the time for the phase?
Quoted 6 lines
Quoted 5 lines
oops. sync time included. mount/umount time is not.
You see the problem, yes? Your suggestion?
The problem is that sync may not wait, yes? it might be considered as fs bug. we can time the umount() and, if it takes sufficient time (like 0.5+% of the test phase duration) report benchmark error. If number of "buggy" fs would be big enough, we will include umount() into the timed part.
However, we can add options to control sync()/umount() between phases and see that benchmark results do not depend on it too much :)
Signature · 1 line
Alex.