Skip to contentSkip to conversation

Why UBIFS min I/O unit size must be power of 2?

DISCUSSION Konstantin Tokarev 2 participants 3 messages Jul 14, 2015 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi all,

I'd like to increase compression ratio of UBIFS image (at the cost of possibly slower writes). However, my LEB size is 129024, so the largest block size that I could use is 2048 (otherwise LEB won't be multiple of I/O unit size).

So I wonder why UBIFS cannot use 129024 as I/O unit size and requires it to be power of 2? Is it possible to eleminate this limitation?

Signature · 2 lines
Regards,
Konstantin
#1 lore raw
Quoted 8 lines · Konstantin Tokarev

Hi all,

I'd like to increase compression ratio of UBIFS image (at the cost of possibly slower writes). However, my LEB size is 129024, so the largest block size that I could use is 2048 (otherwise LEB won't be multiple of I/O unit size).

So I wonder why UBIFS cannot use 129024 as I/O unit size and requires it to be power of 2? Is it possible to eleminate this limitation?

To my knowledge the property is defined by hardware limitations (i.e. flash properties).

Signature · 2 lines
Thanks,
//richard
#2 lore raw

14.07.2015, 14:26, "Richard Weinberger" <[email protected]>:

Quoted 7 lines · Konstantin Tokarev
Quoted 6 lines

 Hi all,

 I'd like to increase compression ratio of UBIFS image (at the cost of possibly slower writes). However, my LEB size is 129024, so the largest block size that I could use is 2048 (otherwise LEB won't be multiple of I/O unit size).

Quoted 6 lines
Quoted 2 lines

 So I wonder why UBIFS cannot use 129024 as I/O unit size and requires it to be power of 2? Is it possible to eleminate this limitation?

To my knowledge the property is defined by hardware limitations (i.e. flash properties).

Ah, this is *hardware* I/O unit size, and I was thinking of it as it was UBIFS compression block size.

Thank you.

Signature · 2 lines
Regards,
Konstantin