link/unlink problem gone?
In article <[email protected]>,
Quoted 4 lines · Oleg Drokin
Hello!
Sigh, these were false hopes indeed.
I can reproduce it with 2.4.21-pre4, only it is now harder for some reason.
I've seen times-to-failure ranging from 20 minutes to 20+ hours (!).
Interestingly enough, both extremes occurred back-to-back--I tried for 20 hours to reproduce the problem, failed, tried again with the same kernel setup, and 20 minutes later the machine was spewing out "Permission denied" too quickly to display.
Quoted 6 lines
Chris: My current idea is it happens during low memory conditions, so I am actively running around
prune_icacheand id's dcache equivalent. Probably you can easily reproduce that if you'd have no swap and not very much RAM.(Ok, I just checked, limited the RAM to 90M and turned off SWAP entirely.
and reproduced the problem fairly quickly)
I have observed the problem on machines ranging in size from 96 to 512MB RAM. I haven't observed a correlation between swapping activity and failures but I haven't been looking for this either. The machines that have problems machines are swapping at some time or another (they have several hundred MB of swap used).
Signature · 2 lines
Zygo Blaxell (Laptop) <[email protected]> GPG = D13D 6651 F446 9787 600B AD1E CCF3 6F93 2823 44AD
Hello!
Quoted 3 lines · Zygo Blaxell
Quoted 2 lines
Sigh, these were false hopes indeed.
I can reproduce it with 2.4.21-pre4, only it is now harder for some reason.I've seen times-to-failure ranging from 20 minutes to 20+ hours (!).
Same here.
Quoted 9 lines
Quoted 6 lines
Chris: My current idea is it happens during low memory conditions, so I am actively running around
prune_icacheand id's dcache equivalent. Probably you can easily reproduce that if you'd have no swap and not very much RAM.(Ok, I just checked, limited the RAM to 90M and turned off SWAP entirely.
and reproduced the problem fairly quickly)I have observed the problem on machines ranging in size from 96 to 512MB RAM. I haven't observed a correlation between swapping activity and failures but I haven't been looking for this either. The machines
I noticed that with newer 2.4.21-pre kernels first I see processes die because of OOM and only after that I see direntries pointing to nowhere. I reproduced this much more than once, so I believe there is some correlation between these.
Quoted 2 lines
that have problems machines are swapping at some time or another (they have several hundred MB of swap used).
And they are just swapping all the time, so it may take a while before useful code runs and problem happens, it seems.
So far I decided that with SWAP turned off one can reproduce problem more easily that with SWAP on (especially if swap is large).
Bye,
Oleg
In article <[email protected]>,
Quoted 4 lines · Oleg Drokin
I noticed that with newer 2.4.21-pre kernels first I see processes die because of OOM and only after that I see direntries pointing to nowhere. I reproduced this much more than once, so I believe there is some correlation between these.
This may explain why the rsyncs seem to be necessary. When I was trying to build a bug demonstrator, I initially tried a bunch of processes doing link()/unlink() on a handful of files, and then tried the concurrent 'cp -al's and 'rm -rf's, but neither of those worked (I let it run all weekend). I then added the rsyncs just to add some churn to the filesystem and at that point the errors started appearing. I was so happy that I could reproduce the problem at all that the next thing I did was post to the list. ;-)
So maybe rsync itself is irrelevant, except as a process that forces the system to swap. If you replace the rsync in the script with a process that eats memory but doesn't touch the filesystem (or alternatively, reduce the amount of RAM in the system so severely that cp will be swapping), does the script still demonstrate errors?
Meanwhile, in the field I've rearranged various software so that it tries to avoid concurrently linking or unlinking the same files at the same time in order to work around this bug. I can't entirely prevent concurrent links or unlinks, but I'm pretty sure they're now happening much less often--tasks that were scheduled at the same time each day now occur 12 hours apart, jobs that worked on different parts of the directory concurrently now run sequentially, etc. Unfortunately, this bug's manifestations are still appearing at about the same rate they were before... :-P
Signature · 2 lines
Zygo Blaxell (Laptop) <[email protected]> GPG = D13D 6651 F446 9787 600B AD1E CCF3 6F93 2823 44AD