BTW: 2.4.19-patches-to-come?
Hi!
BTW, for 2.4.19-final it would be very nice to have...
1.) the deleted/truncated/completed-files-on-mount at least
printed in the kernel logs, at best with the real filename -- as afterwards they are not retrievable -- That's a security reason -- whoever can trigger a crash with various methods (I know the admin should take care against this case... but on my home sytem I'd like to know that info, too) but to get back the file from backups in case... who knows it before a
crash... ? Am I missing something?
2.) a disk/drive/partition distinction in reiserfs related
messages -- Oleg, you promised it to get real and best would be a real "patch" !
3.) a hint on how to turn on/off data-journaling for "some"
of our existing reiserfs partitions if it exists at all for now and why it could be needed in some cases?!.
4.) a hint why there is iicache code in the latest
speedup-compound-patch (so that the latest iicache patch would not apply)
Best regards for your stable ReiserFS, at all,
even under "settings" with 2.4.19-pre7 +reiserfs.pending +latest reiserfs.compound-speedup +aa.vm-for-2.4.19-pre7 +akpm.read-latency-2 +rml.preempt-kernel + rml.lock-break +some-more nice aa.patches... That's a valuably fast & interactive experience!
Manuel
Hello!
Quoted 2 lines · Manuel Krause
1.) the deleted/truncated/completed-files-on-mount at least
printed in the kernel logs, at best with the real filename
Huh??
Quoted 1 line
-- as afterwards they are not retrievable --
Sure. Files are deleted already. How do you plan to retrieve deleted files? (not using backups, that's it).
Quoted 6 lines
That's a security reason -- whoever can trigger a crash with various methods (I know the admin should take care against this case... but on my home sytem I'd like to know that info, too) but to get back the file from backups in case... who knows it before a
crash... ? Am I missing something?
This is unclear to me. You mean to crash a system to get a copy of deleted file, or to crash a system to delete a file? Both things sound very unlikely.
Quoted 3 lines
2.) a disk/drive/partition distinction in reiserfs related
messages -- Oleg, you promised it to get real and best would be a real "patch" !
Yes, I remember.
Quoted 3 lines
3.) a hint on how to turn on/off data-journaling for "some"
of our existing reiserfs partitions if it exists at all for now and why it could be needed in some cases?!.
Data journaling is available only in form of a separate patch from Chris for now.
Quoted 3 lines
4.) a hint why there is iicache code in the latest
speedup-compound-patch (so that the latest iicache patch would not apply)
Hm? What do you mean by latest speedup-compound-patch? I know Chris does not believe iicache should be good to use, because similar functionality (with less overhead) can be achieved by pagecache.
Bye,
Oleg
Quoted 18 lines · Manuel Krause
Hi!
BTW, for 2.4.19-final it would be very nice to have...
1.) the deleted/truncated/completed-files-on-mount at least
printed in the kernel logs, at best with the real filename -- as afterwards they are not retrievable -- That's a security reason -- whoever can trigger a crash with various methods (I know the admin should take care against this case... but on my home sytem I'd like to know that info, too) but to get back the file from backups in case... who knows it before a
crash... ? Am I missing something?2.) a disk/drive/partition distinction in reiserfs related
messages -- Oleg, you promised it to get real and best would be a real "patch" !
Quoted 8 lines
3.) a hint on how to turn on/off data-journaling for "some"
of our existing reiserfs partitions if it exists at all for now and why it could be needed in some cases?!.4.) a hint why there is iicache code in the latest
speedup-compound-patch (so that the latest iicache patch would not apply)
The iicache patch is inside compound-speedup-2.patch already. So, you can use just compound-speedup-2.
Quoted 9 lines
Best regards for your stable ReiserFS, at all,
even under "settings" with 2.4.19-pre7 +reiserfs.pending +latest reiserfs.compound-speedup +aa.vm-for-2.4.19-pre7 +akpm.read-latency-2 +rml.preempt-kernel + rml.lock-break +some-more nice aa.patches... That's a valuably fast & interactive experience!
Manuel
Thank you Manuel for testing,
Yura.
Quoted 37 lines · Oleg Drokin
Hello!
Quoted 2 lines · Manuel Krause
1.) the deleted/truncated/completed-files-on-mount at least
printed in the kernel logs, at best with the real filenameHuh??
Quoted 1 line
-- as afterwards they are not retrievable --
Sure. Files are deleted already. How do you plan to retrieve deleted files? (not using backups, that's it).
Quoted 6 lines
That's a security reason -- whoever can trigger a crash with various methods (I know the admin should take care against this case... but on my home sytem I'd like to know that info, too) but to get back the file from backups in case... who knows it before a
crash... ? Am I missing something?This is unclear to me. You mean to crash a system to get a copy of deleted file, or to crash a system to delete a file? Both things sound very unlikely.
Quoted 3 lines
2.) a disk/drive/partition distinction in reiserfs related
messages -- Oleg, you promised it to get real and best would be a real "patch" !Yes, I remember.
Quoted 3 lines
3.) a hint on how to turn on/off data-journaling for "some"
of our existing reiserfs partitions if it exists at all for now and why it could be needed in some cases?!.Data journaling is available only in form of a separate patch from Chris for now.
Quoted 8 lines
Quoted 3 lines
4.) a hint why there is iicache code in the latest
speedup-compound-patch (so that the latest iicache patch would not apply)Hm? What do you mean by latest speedup-compound-patch? I know Chris does not believe iicache should be good to use, because similar functionality (with less overhead) can be achieved by pagecache.
I think it is :
ftp://ftp.namesys.com/pub/reiserfs-for-2.4/testing/linux-2.4.19p7-compound-speedup-2.patch
It contains Chris's sppedup patch, Oleg's hole_sppedup patch and iicache patch.
All other speedup approaches are welcome of course.
Thanks,
Yura
Hi!
Quoted 9 lines · Oleg Drokin
Hello!
Quoted 3 lines · Manuel Krause
1.) the deleted/truncated/completed-files-on-mount at least
printed in the kernel logs, at best with the real filename
Quoted 8 lines
Huh??
Quoted 2 lines
-- as afterwards they are not retrievable --
Sure. Files are deleted already. How do you plan to retrieve deleted files? (not using backups, that's it).
Mmh. I meant to restore the affected files from existing backups. When they are removed by reiserfs on mount I know they are really corrupted during crash. It often looks like:
Removing [5523 5570 0x0 SD]..done
Removing [5523 5569 0x0 SD]..done
Removing [5523 5566 0x0 SD]..done
There were 3 uncompleted unlinks/truncates. Completed
I have an overview what files may be meant but... See the context below. I don't find this information very explicative. And I really don't know enough about reiserfs code to interprete these lines. BTW, can we have a "ReiserFS: " in front of these messages?
Quoted 9 lines
Quoted 8 lines
That's a security reason -- whoever can trigger a crash with various methods (I know the admin should take care against this case... but on my home sytem I'd like to know that info, too) but to get back the file from backups in case... who knows it before a
crash... ? Am I missing something?
Quoted 3 lines
This is unclear to me. You mean to crash a system to get a copy of deleted file, or to crash a system to delete a file? Both things sound very unlikely.
Yes, no doubt, I really don't know what is usual in these cases. I should explain what happened to make me write this comment. I had recompiled one DRI module for X recently when my system decided to crash. After rebooot I had some truncates-to-complete. So far "normal" or at least "o.k.".
But due to anti-aliasing configured in KDE it loaded everything but didn't show anything else than my desktops background color and the mouse arrow. It took me some time to figure out how to get things back into previous order. It finally seems like I just needed to reinstall the DRI component. But until now I don't know what files had disappeared/corrupted to get exactly and only these ones from my backup. You see? Yes, not usual, but...
Quoted 1 line
[disk distinction]
Quoted 8 lines
Quoted 4 lines
3.) a hint on how to turn on/off data-journaling for "some"
of our existing reiserfs partitions if it exists at all for now and why it could be needed in some cases?!.Data journaling is available only in form of a separate patch from Chris for now.
Yes, thanks, Chris gave that info, too. Thank you! I mostly (only) wondered about Hans' & Chris' discussion about not yet implemented and not released-on-Namesys-ftp-for-testing reiserfs options that seem to be useful in some cases...
Quoted 10 lines
Quoted 5 lines
4.) a hint why there is iicache code in the latest
speedup-compound-patch (so that the latest iicache patch would not apply)Hm? What do you mean by latest speedup-compound-patch? I know Chris does not believe iicache should be good to use, because similar functionality (with less overhead) can be achieved by pagecache.
Pagecache? How can I adjust this? Where did I read this before...?
Yura explained what patch I meant. Hey, that's on Namesys ftp for one week already!
Quoted 5 lines
Bye,
Oleg
Bye,
Manuel
Hi!
Quoted 4 lines · Yury Yu. Rupasov
Quoted 2 lines · Manuel Krause
Hi!
[...]
Quoted 16 lines
Quoted 5 lines
4.) a hint why there is iicache code in the latest
speedup-compound-patch (so that the latest iicache patch would not apply)The iicache patch is inside compound-speedup-2.patch already. So, you can use just compound-speedup-2.
Quoted 7 lines
Best regards for your stable ReiserFS, at all,
even under "settings" with 2.4.19-pre7 +reiserfs.pending +latest reiserfs.compound-speedup +aa.vm-for-2.4.19-pre7 +akpm.read-latency-2 +rml.preempt-kernel + rml.lock-break +some-more nice aa.patches... That's a valuably fast & interactive experience!
Quoted 6 lines
Quoted 2 lines
Manuel
Thank you Manuel for testing,
Yura.
O.k. I just assumed that (iicache=in) was true since reading and applying the patch and _then_ this "compound" is much more stable than the previous versions of iicache. I.e. it does not corrupt my Netscape6 and KDE files-in-use any more. And it really does not show slowdowns in applications load times at all. Maybe Dieter could report the same.
I can't say if it is faster or slower as I revised my systems' chipset and bus settings (hdparm, lilo->kernel and powertweak) during the last weeks to have an overally more common and stable setup.
Thanks for providing a usable and applyable patch on Namesys ftp, Yura,
Manuel
Gwllo!
Quoted 3 lines · Manuel Krause
Quoted 2 lines
Sure. Files are deleted already. How do you plan to retrieve deleted files? (not using backups, that's it).
Mmh. I meant to restore the affected files from existing backups. When
Then you just see what files are missing and restore these.
Quoted 2 lines
they are removed by reiserfs on mount I know they are really corrupted during crash. It often looks like:
Wait-wait. They are removed, so their blocks are freed and may be replaced with other files data. Removing files is like this.
Late deletion is because application that deleted the file kept it open until the reboot.
And no, it's not even possible to print filename at this point, because all the links (And dierctory items) pointing at the file were already removed, only unacessible body with nlink count of zero was left.
Quoted 3 lines
I don't find this information very explicative. And I really don't know enough about reiserfs code to interprete these lines. BTW, can we have a "ReiserFS: " in front of these messages?
In fact I think these messages should not be printed at all, there is no useful information given to the user.
Quoted 15 lines
Quoted 3 lines
This is unclear to me. You mean to crash a system to get a copy of deleted file,
or to crash a system to delete a file? Both things sound very unlikely.Yes, no doubt, I really don't know what is usual in these cases. I should explain what happened to make me write this comment. I had recompiled one DRI module for X recently when my system decided to crash. After rebooot I had some truncates-to-complete. So far "normal" or at least "o.k.".
But due to anti-aliasing configured in KDE it loaded everything but didn't show anything else than my desktops background color and the mouse arrow. It took me some time to figure out how to get things back into previous order. It finally seems like I just needed to reinstall the DRI component. But until now I don't know what files had disappeared/corrupted to get exactly and only these ones from my backup. You see? Yes, not usual, but...
No, actually I do not see, if some files have disappeared, reiserfsck should tell you about fs errors, then (like lost files, or dir entries pointing to nowhere).
Late deletes/truncates have nothing to do with disappeared files.
Quoted 5 lines
Quoted 4 lines
Hm? What do you mean by latest speedup-compound-patch? I know Chris does not
believe iicache should be good to use, because similar functionality (with less overhead) can be achieved by pagecache.Pagecache? How can I adjust this? Where did I read this before...?
No code in reiserfs proper exists for that yet. But it may appear in the future.
Bye,
Oleg
Quoted 6 lines · Oleg Drokin
Quoted 3 lines
I don't find this information very explicative. And I really don't know enough about reiserfs code to interprete these lines. BTW, can we have a "ReiserFS: " in front of these messages?
In fact I think these messages should not be printed at all, there is no useful information given to the user.
I like a summary line: completed X number of truncates and N number of deletes.
-chris
Hello!
Quoted 7 lines · Chris Mason
Quoted 5 lines
Quoted 3 lines
I don't find this information very explicative. And I really don't know enough about reiserfs code to interprete these lines. BTW, can we have a "ReiserFS: " in front of these messages?
In fact I think these messages should not be printed at all, there is no useful information given to the user.
I like a summary line: completed X number of truncates and N number of deletes.
This one can stay, but I am not yet sure we need it anyway.
I think we should only print this stuff (keys of individual deleted objects and total number of late deletions/truncates) if CONFIG_REISERFS_CHECK was enabled, what do you think?
Bye,
Oleg
Quoted 8 lines · Oleg Drokin
Hello!
Quoted 5 lines · Chris Mason
Quoted 5 lines
Quoted 3 lines
I don't find this information very explicative. And I really don't know enough about reiserfs code to interprete these lines. BTW, can we have a "ReiserFS: " in front of these messages?
In fact I think these messages should not be printed at all, there is no useful information given to the user.
Quoted 7 lines
Quoted 2 lines
I like a summary line: completed X number of truncates and N number of deletes.
This one can stay, but I am not yet sure we need it anyway.
I think we should only print this stuff (keys of individual deleted objects and total number of late deletions/truncates) ifCONFIG_REISERFS_CHECKwas enabled, what do you think?
I like the single line summary, it helps for things like Dirk Mueller's problem report. 'every time my system <explodes into a ball of flame>, it is preceded by messages about some number of completed truncates or unlinks'.
It might point us in the wrong direction, but it is still good information to have.
-chris
Hello!
Quoted 6 lines · Chris Mason
I like the single line summary, it helps for things like Dirk Mueller's problem report. 'every time my system <explodes into a ball of flame>, it is preceded by messages about some number of completed truncates or unlinks'.
It might point us in the wrong direction, but it is still good information to have.
Ok. I will leave the summary line, then.
The specific key information will be only printed with CONFIG_REISERFS_CHECK enabled.
Bye,
Oleg
Quoted 8 lines · Manuel Krause
Mmh. I meant to restore the affected files from existing backups. When they are removed by reiserfs on mount I know they are really corrupted during crash. It often looks like:
Removing [5523 55700x0SD]..done
Removing [5523 55690x0SD]..done
Removing [5523 55660x0SD]..done
There were 3 uncompleted unlinks/truncates. Completed
Just to reiterate what Oleg said, these files were not corrupted during the crash. Right before you crashed, something on your box deleted each of these files, but the delete did not have a chance to finish. During the next mount we finish the delete, which brings the FS back to a consistent state.
-chris
Quoted 12 lines · Chris Mason
Quoted 8 lines · Manuel Krause
Mmh. I meant to restore the affected files from existing backups. When they are removed by reiserfs on mount I know they are really corrupted during crash. It often looks like:
Removing [5523 55700x0SD]..done
Removing [5523 55690x0SD]..done
Removing [5523 55660x0SD]..done
There were 3 uncompleted unlinks/truncates. Completed
Quoted 2 lines
Just to reiterate what Oleg said, these files were not corrupted during the crash.
I was very satisfied with this special clarification as I thought I've finally understood it.
O.k. and for the moment or so far I have not been able to prove this. Your statement may be or may be not. I had many VMware sessions crashing while / before e.g. "May 17 03:41:30 firehead kernel: /dev/vmmon: Vmx86_ReleaseVM: unlocked pages: 44944, unlocked dirty pages: 26020"
That may not matter for you as my kernel is too experimental as I've explained before.
Quoted 7 lines
Right before you crashed, something on your box deleted each of these files, but the delete did not have a chance to finish. During the next mount we finish the delete, which brings the FS back to a consistent state.
-chris
As I had often only running KDE and VMware [?crashing] I did want to know what files were removed - the VMware ones and/or the KDE session temporary ones. That was all.
I don't know what of them two deletes files "just directly before" a crash. VMware is known (as of newest _official_ docs to unlink its used memory&Co. file(s???) in /tmp during startup... but what happens during a crash?) Dunno.
I was curious and I stay curious, as I don't see any program deleting 3 files just before every crash... (I don't have sizes, places and names...)
For my side it does not depend on the "summary line" that says merely nothing to me so far.
Best wishes,
Manuel
Hello!
Quoted 2 lines · Manuel Krause
I was curious and I stay curious, as I don't see any program deleting 3 files just before every crash... (I don't have sizes, places and names...)
It is not necessarily happened to files direectly to a crash. Any open file, that was deleted, cannot be deleted until it is closed. e.g. if you'd do "sleep 1000000 </path/somefile ; rm /path/somefile", /path/somefile won't be deleted until sleep finishes.
If system crash occured and there were still some open, but deleted files, these files gets removed as part of recovery from crash process. And it is not possible to find file's names/paths because corresponding directory entries were already deleted.
BTW it is absolutely the same thing happens with ext2, once you see e2fsck complains about "DTIME is zero", it deletes not-yet-deleted-but-scheduled-for-deletion files.
Bye,
Oleg
Hello!
Quoted 3 lines · Pierre Etchemaite
Quoted 1 line
"sleep 1000000 </path/somefile ; rm /path/somefile"
I guess you meant:
$ sleep 1000000 </path/somefile & rm /path/somefile
Yes, thanks for the correction.
Bye,
Oleg
Quoted 1 line · Oleg Drokin
"sleep 1000000 </path/somefile ; rm /path/somefile"
I guess you meant:
$ sleep 1000000 </path/somefile & rm /path/somefile
BR,
Pierre.