Skip to contentSkip to conversation

2 minutes for a reiser4 filesystem to mount.

DISCUSSION Georgios Tsalikis 5 participants 10 messages Oct 22, 2015 – Oct 29, 2015

lore
Share & tools
lore
#0 lore raw

The filesystem is 1.7GB large, lies in a GPT patition and is formated with -o node=node41 without any other override. The kernel is 4.2.3 with the 4.2.2 patch. I tried the same on a 250MB partition and it mounts instantly. dmesg shows nothing special
Any ideas? Thanks in advance. :)

#1 lore raw

Niltze!

Quoted 2 lines · Georgios Tsalikis

The filesystem is 1.7GB large, lies in a GPT patition and is formated with -o node=node41

In this test machine(s) my partitions are not GPT

Quoted 2 lines

without any other override. The kernel is 4.2.3 with the 4.2.2 patch.

I am running similar combination; mount time of ~60GB & ~50GB partitions (at least one previously formatted: -o create=reg40) with *existing data* is under 8 seconds.

Quoted 3 lines

I tried the same on a 250MB partition and it mounts instantly. dmesg shows nothing special
Any ideas?

Tried formatting a ~24GB non-GPT partition with options as you specified; the mount time was under 3 seconds for the newly formatted partition:
https://pbs.twimg.com/media/CR-zkQtVAAA5D_G.png:large

I have no idea if GPT makes a difference.

Quoted 6 lines

Thanks in advance. :)

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 6 lines
Jose R R
http://metztli.it
---------------------------------------------------------------------------------------------
Try at no charge http://b2evolution.net for http://OpenShift.com PaaS
---------------------------------------------------------------------------------------------
from our GitHub http://Nepohualtzintzin.com repository. Cloud the easy way!
#2 lore raw

Hello :)

Quoted 33 lines

Niltze!

Quoted 2 lines · Georgios Tsalikis

The filesystem is 1.7GB large, lies in a GPT patition and is formated with -o node=node41

In this test machine(s) my partitions are not GPT

Quoted 2 lines

without any other override. The kernel is 4.2.3 with the 4.2.2 patch.

I am running similar combination; mount time of ~60GB & ~50GB partitions (at least one previously formatted: -o create=reg40) with *existing data* is under 8 seconds.

Quoted 3 lines

I tried the same on a 250MB partition and it mounts instantly. dmesg shows nothing special
Any ideas?

Tried formatting a ~24GB non-GPT partition with options as you specified; the mount time was under 3 seconds for the newly formatted partition:
https://pbs.twimg.com/media/CR-zkQtVAAA5D_G.png:large

I noticed that yours uses 4096K block size. My partition uses 64K. Is this due to the much larger size of my partition? Maybe it is the problem behind the delay? I have no idea if GPT makes a difference.

Quoted 6 lines

Thanks in advance. :)

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Georgios Tsalikis

I had this behavior a couple years in the past and in my case this was due to some metadata being sought and read at mount time. There was a mount option to disable that behavior though I haven't used it in a long time and cannot remember the option however Q19 this gentoo forum reiser4 faq [1] suggests that it was the dont_load_bitmap mount option. I do not know if such an option is still available for the current version.

[1] https://forums.gentoo.org/viewtopic-t-706171.html

Quoted 12 lines · Georgios Tsalikis

The filesystem is 1.7GB large, lies in a GPT patition and is formated with -o node=node41 without any other override. The kernel is 4.2.3 with the 4.2.2 patch.
I tried the same on a 250MB partition and it mounts instantly. dmesg shows nothing special
Any ideas? Thanks in advance. :)

Signature · 4 lines
To unsubscribe from this list: send the line "unsubscribe
reiserfs-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
In reply to Georgios Tsalikis
Quoted 7 lines · Georgios Tsalikis

The filesystem is 1.7GB large, lies in a GPT patition and is formated with -o node=node41 without any other override. The kernel is 4.2.3 with
the 4.2.2 patch.
I tried the same on a 250MB partition and it mounts instantly. dmesg shows nothing special
Any ideas? Thanks in advance. :)

Hello,

try "dont_load_bitmap" in mount options. However, this is anyway very strange for a ~2GB partition...

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe reiserfs- devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Ivan Shapovalov / intelfx /
#5 lore raw
Quoted 8 lines · Ivan Shapovalov
Quoted 7 lines · Georgios Tsalikis

The filesystem is 1.7GB large, lies in a GPT patition and is formated with -o node=node41 without any other override. The kernel is 4.2.3 with
the 4.2.2 patch.
I tried the same on a 250MB partition and it mounts instantly. dmesg shows nothing special
Any ideas? Thanks in advance. :)

Quoted 4 lines

Hello,

try "dont_load_bitmap" in mount options. However, this is anyway very strange for a ~2GB partition...

I am sorry, did i write 1.7GB? I meant 1.7TB... i am old and such figures dont fit my mind easily!

Quoted 5 lines
Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe reiserfs- devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
Quoted 11 lines

24 окт. 2015 г., в 1:06, Georgios Tsalikis <[email protected]> написал(а):

Quoted 9 lines · Ivan Shapovalov
Quoted 8 lines · Georgios Tsalikis

The filesystem is 1.7GB large, lies in a GPT patition and is formated with -o node=node41 without any other override. The kernel is 4.2.3 with
the 4.2.2 patch.
I tried the same on a 250MB partition and it mounts instantly. dmesg shows nothing special
Any ideas? Thanks in advance. :)

Quoted 6 lines
Quoted 4 lines

Hello,

try "dont_load_bitmap" in mount options. However, this is anyway very strange for a ~2GB partition...

I am sorry, did i write 1.7GB? I meant 1.7TB... i am old and such figures dont fit my mind easily!

Ah, so it's 1.7 TB? Then it's not unusual at all. Indeed, try mounting with -o dont_load_bitmap.

--
Ivan Shapovalov / intelfx /

(Sent from a phone. Havoc may be wreaked on the formatting.)-- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 11 lines · Ivan Shapovalov
Quoted 11 lines

24 окт. 2015 г., в 1:06, Georgios Tsalikis <[email protected]> написал(а):

Quoted 9 lines · Ivan Shapovalov
Quoted 8 lines · Georgios Tsalikis

The filesystem is 1.7GB large, lies in a GPT patition and is formated with -o node=node41 without any other override. The kernel is 4.2.3 with
the 4.2.2 patch.
I tried the same on a 250MB partition and it mounts instantly. dmesg shows nothing special
Any ideas? Thanks in advance. :)

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines

Hello,

try "dont_load_bitmap" in mount options. However, this is anyway very strange for a ~2GB partition...

I am sorry, did i write 1.7GB? I meant 1.7TB... i am old and such figures dont fit my mind easily!

Ah, so it's 1.7 TB? Then it's not unusual at all. Indeed, try mounting with -o dont_load_bitmap.

I did so and it worked. Thank you. But what does that option do? And which are the other options and their function?

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw
Quoted 21 lines · Georgios Tsalikis
Quoted 20 lines · Ivan Shapovalov
Quoted 20 lines

24 окт. 2015 г., в 1:06, Georgios Tsalikis <georgios.tsalikis@hol .gr> написал(а):

Quoted 17 lines · Ivan Shapovalov
Quoted 11 lines · Georgios Tsalikis

The filesystem is 1.7GB large, lies in a GPT patition and is formated
with -o node=node41 without any other override. The kernel is 4.2.3
with
the 4.2.2 patch.
I tried the same on a 250MB partition and it mounts instantly. dmesg
shows nothing special
Any ideas? Thanks in advance. :)

Hello,

try "dont_load_bitmap" in mount options. However, this is anyway very
strange for a ~2GB partition...

Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

I am sorry, did i write 1.7GB? I meant 1.7TB... i am old and such figures dont fit my mind easily!

Ah, so it's 1.7 TB? Then it's not unusual at all. Indeed, try mounting with -o dont_load_bitmap.

I did so and it worked. Thank you. But what does that option do?

This option tells reiser4 to load bitmap blocks on demand, and not all at once at filesystem mount time.

The bitmap is how reiser4 stores information about which on-disk blocks are allocated and which are free (one bit corresponds to one block, hence the name).

The 2TiB filesystem has 2*1024^4 / 4096 = 536870912 blocks, which take 536870912 / (8*4096) = 16384 bitmap blocks, so it takes 120/16384 ~ 7ms to load one block, which is not that unusual (given that the bitmap loading doesn't seem to be optimized too well: each block is read in a separate request).

Quoted 1 line

And which are the other options and their function?

I'm afraid that the full list of reiser4 options can only be found in code (file init_super.c, functions push_sb_field_opts() and reiser4_init_super_data().

Signature · 1 line
Ivan Shapovalov / intelfx /
#9 lore raw
Quoted 22 lines · Ivan Shapovalov
Quoted 21 lines · Georgios Tsalikis
Quoted 20 lines · Ivan Shapovalov
Quoted 20 lines

24 окт. 2015 г., в 1:06, Georgios Tsalikis <georgios.tsalikis@hol .gr> написал(а):

Quoted 17 lines · Ivan Shapovalov
Quoted 11 lines · Georgios Tsalikis

The filesystem is 1.7GB large, lies in a GPT patition and is formated
with -o node=node41 without any other override. The kernel is 4.2.3
with
the 4.2.2 patch.
I tried the same on a 250MB partition and it mounts instantly. dmesg
shows nothing special
Any ideas? Thanks in advance. :)

Hello,

try "dont_load_bitmap" in mount options. However, this is anyway very
strange for a ~2GB partition...

Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

I am sorry, did i write 1.7GB? I meant 1.7TB... i am old and such figures dont fit my mind easily!

Ah, so it's 1.7 TB? Then it's not unusual at all. Indeed, try mounting with -o dont_load_bitmap.

I did so and it worked. Thank you. But what does that option do?

This option tells reiser4 to load bitmap blocks on demand, and not all at once at filesystem mount time.

Does this mean using this option means a penalty? Maybe in some cases (servers etc) it is worth waiting the fs to mount?

Quoted 11 lines

The bitmap is how reiser4 stores information about which on-disk blocks are allocated and which are free (one bit corresponds to one block, hence the name).

The 2TiB filesystem has 2*1024^4 / 4096 = 536870912 blocks, which take 536870912 / (8*4096) = 16384 bitmap blocks, so it takes 120/16384 ~ 7ms to load one block, which is not that unusual (given that the bitmap loading doesn't seem to be optimized too well: each block is read in a separate request).

Quoted 5 lines
Quoted 1 line

And which are the other options and their function?

I'm afraid that the full list of reiser4 options can only be found in code (file init_super.c, functions push_sb_field_opts() and reiser4_init_super_data().

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html