slow mount
It seems to take a very long time to mount a large reiserfs filesystem:
$ time mount /home
real 0m17.259s user 0m0.000s sys 0m0.000s
$ df -h
Filesystem Size Used Avail Use% Mounted on
[snip]
/dev/hda7 44G 12G 33G 26% /home
is this normal behaviour? as this drastically increases my system statup time. The same partition formatted to ext3 mounts in less than a second and this also seems to have no reflection on the amount of data on the partition as it still takes this long when the filesystem in empty.
Any help would be appretiated, thanks.
Herbie
Quoted 14 lines · Herbie Hopkins
It seems to take a very long time to mount a large reiserfs filesystem:
$ time mount /homereal 0m17.259s user 0m0.000s sys 0m0.000s$ df -hFilesystem Size Used Avail Use% Mounted on
[snip]
/dev/hda744G 12G 33G 26% /home
Quoted 12 lines
is this normal behaviour? as this drastically increases my system statup time. The same partition formatted to ext3 mounts in less than a second and this also seems to have no reflection on the amount of data on the partition as it still takes this long when the filesystem in empty.
Any help would be appretiated, thanks.
Herbie
Bitmaps are read in mount time. And this realy does not depend on data amount, only on filesystem size.
Signature · 2 lines
Yury Umanets "We're flying high, we're watching the world passes by..."
Quoted 8 lines · Herbie Hopkins
It seems to take a very long time to mount a large reiserfs filesystem:
$ time mount /homereal 0m17.259s user 0m0.000s sys 0m0.000s
Quoted 7 lines
$ df -hFilesystem Size Used Avail Use% Mounted on
[snip]
/dev/hda744G 12G 33G 26% /homeis this normal behaviour? as this drastically increases my system statup
Yes. It is normal.
There are 44G / 128M ~= 350 bitmap blocks which are read by reiserfs at mount time.
Quoted 7 lines
time. The same partition formatted to ext3 mounts in less than a second and this also seems to have no reflection on the amount of data on the partition as it still takes this long when the filesystem in empty.
Any help would be appretiated, thanks.
Herbie
Signature · 1 line
Alex.
Quoted 7 lines · Herbie Hopkins
It seems to take a very long time to mount a large reiserfs filesystem:
$ time mount /homereal 0m17.259s user 0m0.000s sys 0m0.000s
Which kernel? 2.4.20 or so had improvements in this area
-chris
I'm using 2.4.20.
Quoted 13 lines · Chris Mason
Quoted 7 lines · Herbie Hopkins
It seems to take a very long time to mount a large reiserfs filesystem:
$ time mount /homereal 0m17.259s user 0m0.000s sys 0m0.000sWhich kernel? 2.4.20 or so had improvements in this area
-chris
Hello!
Quoted 5 lines · Herbie Hopkins
It seems to take a very long time to mount a large reiserfs filesystem:
$ time mount /home real 0m17.259s /dev/hda7 44G 12G 33G 26% /home is this normal behaviour? as this drastically increases my system statup
Well. Some kind of a delay is certainly expected, as reiserfs is reading all the bitmaps at mount time.
Quoted 3 lines
time. The same partition formatted to ext3 mounts in less than a second and this also seems to have no reflection on the amount of data on the partition as it still takes this long when the filesystem in empty.
The bitmaps are there no matter if filesystem is empty or not.
Only my 20G fs can be mounted in 1.4s, so may be you have some kind of very slow drive, or no DMA or something like that?
Bye,
Oleg
slow drive? Not really:
$cat /proc/ide/via
Transfer Mode: UDMA Address Setup: 30ns Cmd Active: 90ns Cmd Recovery: 30ns Data Active: 90ns Data Recovery: 30ns Cycle Time: 15ns Transfer Rate: 133.3MB/s
$hdparm -Tt /dev/hda/dev/hda:
Timing buffer-cache reads: 128 MB in 0.42 seconds =304.76 MB/sec
Timing buffered disk reads: 64 MB in 1.26 seconds = 50.79 MB/sec
Quoted 23 lines · Oleg Drokin
Hello!
Quoted 5 lines · Herbie Hopkins
It seems to take a very long time to mount a large reiserfs filesystem:
$ time mount /home real 0m17.259s /dev/hda7 44G 12G 33G 26% /home is this normal behaviour? as this drastically increases my system statupWell. Some kind of a delay is certainly expected, as reiserfs is reading all the bitmaps at mount time.
Quoted 3 lines
time. The same partition formatted to ext3 mounts in less than a second and this also seems to have no reflection on the amount of data on the partition as it still takes this long when the filesystem in empty.
The bitmaps are there no matter if filesystem is empty or not.
Only my 20G fs can be mounted in 1.4s, so may be you have some kind of very slow drive, or no DMA or something like that?
Bye,
Oleg
Interestingly enough a 20G fs on the same drive takes 0.9s to mount. Should a 40G partition not take roughly twice as long as a 20G partition to mount?
Quoted 23 lines · Oleg Drokin
Hello!
Quoted 5 lines · Herbie Hopkins
It seems to take a very long time to mount a large reiserfs filesystem:
$ time mount /home real 0m17.259s /dev/hda7 44G 12G 33G 26% /home is this normal behaviour? as this drastically increases my system statupWell. Some kind of a delay is certainly expected, as reiserfs is reading all the bitmaps at mount time.
Quoted 3 lines
time. The same partition formatted to ext3 mounts in less than a second and this also seems to have no reflection on the amount of data on the partition as it still takes this long when the filesystem in empty.
The bitmaps are there no matter if filesystem is empty or not.
Only my 20G fs can be mounted in 1.4s, so may be you have some kind of very slow drive, or no DMA or something like that?
Bye,
Oleg
Quoted 4 lines · Herbie Hopkins
Interestingly enough a 20G fs on the same drive takes 0.9s to mount. Should a 40G partition not take roughly twice as long as a 20G partition to mount?
Yes.
Quoted 28 lines · Oleg Drokin
Quoted 26 lines
Hello!
Quoted 7 lines · Herbie Hopkins
It seems to take a very long time to mount a large reiserfs filesystem:
$ time mount /home real 0m17.259s /dev/hda7 44G 12G 33G 26% /home is this normal behaviour? as this drastically increases my system statupWell. Some kind of a delay is certainly expected, as reiserfs is reading all the bitmaps at mount time.
Quoted 5 lines
time. The same partition formatted to ext3 mounts in less than a second and this also seems to have no reflection on the amount of data on the partition as it still takes this long when the filesystem in empty.
The bitmaps are there no matter if filesystem is empty or not.
Quoted 12 lines
Quoted 7 lines
Only my 20G fs can be mounted in 1.4s, so may be you have some kind of very slow drive, or no DMA or something like that?
Bye,
Oleg
Is the hardware starting to fail and doing lots of retries maybe?
Signature · 1 line
Hans
Quoted 1 line · Hans Reiser
Is the hardware starting to fail and doing lots of retries maybe?
I sure hope not as the drive is only a couple of months old. Booting a kernel with CONFIG_REISERFS_CHECK=y dmesg gives me:
reiserfs:warning: CONFIG_REISERFS_CHECK is set ON reiserfs:warning: - it is slow mode for debugging.
reiserfs: checking transaction log (device 03:07) ...
journal-1153: found in header: first_unflushed_offset 465, last_flushed_trans_id 84176
journal-1206: Starting replay from offset 465, trans_id 84177
journal-1299: Setting newest_mount_id to 95
Using r5 hash to sort names
ReiserFS version 3.6.25
which looks normal to me.
Hello!
Quoted 13 lines · Herbie Hopkins
Quoted 1 line
Is the hardware starting to fail and doing lots of retries maybe?
I sure hope not as the drive is only a couple of months old. Booting a kernel with
CONFIG_REISERFS_CHECK=ydmesg gives me:
reiserfs:warning:CONFIG_REISERFS_CHECKis set ON reiserfs:warning: - it is slow mode for debugging.
reiserfs: checking transaction log (device 03:07) ...
journal-1153: found in header:first_unflushed_offset465,last_flushed_trans_id84176
journal-1206: Starting replay from offset 465,trans_id84177
journal-1299: Settingnewest_mount_idto 95
Using r5 hash to sort names
ReiserFS version 3.6.25
which looks normal to me.
What if you turn off this debugging stuff that is certainly slows down all the operations by a lot? Corresponding kernel option (compile-time) is CONFIG_REISERFS_CHECK
Bye,
Oleg
I don't have the dubuging stuff on at the moment, I just compiled another kernel with it enabled to see what extra info it gave me.
Quoted 22 lines · Oleg Drokin
Hello!
Quoted 13 lines · Herbie Hopkins
Quoted 1 line
Is the hardware starting to fail and doing lots of retries maybe?
I sure hope not as the drive is only a couple of months old. Booting a kernel with
CONFIG_REISERFS_CHECK=ydmesg gives me:
reiserfs:warning:CONFIG_REISERFS_CHECKis set ON reiserfs:warning: - it is slow mode for debugging.
reiserfs: checking transaction log (device 03:07) ...
journal-1153: found in header:first_unflushed_offset465,last_flushed_trans_id84176
journal-1206: Starting replay from offset 465,trans_id84177
journal-1299: Settingnewest_mount_idto 95
Using r5 hash to sort names
ReiserFS version 3.6.25
which looks normal to me.What if you turn off this debugging stuff that is certainly slows down all the operations by a lot? Corresponding kernel option (compile-time) is
CONFIG_REISERFS_CHECKBye,
Oleg
Hello!
Quoted 2 lines · Herbie Hopkins
I don't have the dubuging stuff on at the moment, I just compiled another kernel with it enabled to see what extra info it gave me.
Ah, I see.
Well, if the drive itself is inducing those delays, you cannot tell that from fs driver, but you probably can look around with smartctl and see how many relocated bad sectors it have and this kind of stuff.
Bye,
Oleg