Skip to contentSkip to conversation

How stable is jffs2 summarize option?

DISCUSSION Thorsten Mühlfelder 5 participants 16 messages May 31, 2010 – Jun 1, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

to reduce boot time of a device I want to use the jffs2 summarize option on my root file system. Currently 'm using Linux 2.6.24 on that specific device and the summarize option is marked as "experimental", so I wonder if it is stable enough for a productive system?
Are there any well known devices that use this option, too?
Do I have to use a newer kernel version?

Thanks for any information

#1 lore raw

And is this an error, a warning or just debug output:
jffs2_sum_write_sumnode: Not enough space for summary, padsize -45

Am Monday 31 May 2010 15:03:42 schrieb Thorsten Mühlfelder:

Quoted 14 lines

Hi,

to reduce boot time of a device I want to use the jffs2 summarize option on my root file system. Currently 'm using Linux 2.6.24 on that specific device and the summarize option is marked as "experimental", so I wonder if it is stable enough for a productive system?
Are there any well known devices that use this option, too?
Do I have to use a newer kernel version?

Thanks for any information

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Signature · 15 lines
--
____________________________________________________
Dipl.-Ing. (FH) Thorsten Mühlfelder
Hard- und Softwareentwicklung

Enertex Bayern GmbH
Innovative Systemlösungen der Energie- und Elektrotechnik
www.enertex.de           

Erlachstraße 13                 91301 Forchheim
St.-Nr. 9216/125/50473      UST-ID DE 216 837 306
Registergericht Bamberg   HRB 4569
Volksbank Forchheim eG, BLZ 763 910 00, Kto.-Nr. 7200480                                  

Tel: 0049 9191 974637 Fax: 0049 9191 974687  Mob:0175 5151913
#2 lore raw

2010/5/31 Thorsten Mühlfelder <[email protected]>:

Quoted 2 lines

And is this an error, a warning or just debug output:
jffs2_sum_write_sumnode: Not enough space for summary, padsize -45

That's completely harmless.

~Vitaly

#4 lore raw

Am Monday 31 May 2010 21:59:56 schrieb Vitaly Wool:

Quoted 3 lines
Quoted 1 line

Do I have to use a newer kernel version?

Better do so :)

After checking the Linux ChangeLogs at http://kernelnewbies.org/Linux26Changes
I did not find any changes related to JFFS2 summary option, so I don't think a newer kernel is needed ;-)

#6 lore raw
In reply to Thorsten Mühlfelder
Quoted 6 lines · Thorsten Mühlfelder

to reduce boot time of a device I want to use the jffs2 summarize option on my root file system. Currently 'm using Linux 2.6.24 on that specific device and the summarize option is marked as "experimental", so I wonder if it is stable enough for a productive system?
Are there any well known devices that use this option, too?
Do I have to use a newer kernel version?

There are other reasons why you should update from 2.6.24 if you're using JFFS2, but I don't think the summary code has changed much since then. The only reason it was still marked as 'experimental' is because I wanted to optimise the on-medium format.

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation
#7 lore raw

Am Tuesday 01 June 2010 11:15:15 schrieb David Woodhouse:

Quoted 8 lines · Thorsten Mühlfelder
Quoted 6 lines

to reduce boot time of a device I want to use the jffs2 summarize option on my root file system. Currently 'm using Linux 2.6.24 on that specific device and the summarize option is marked as "experimental", so I wonder if it is stable enough for a productive system?
Are there any well known devices that use this option, too? Do I have to use a newer kernel version?

Quoted 4 lines

There are other reasons why you should update from 2.6.24 if you're using JFFS2, but I don't think the summary code has changed much since then. The only reason it was still marked as 'experimental' is because I wanted to optimise the on-medium format.

Hi,

and what do you think about switching to yaffs2? I know it is developed elsewhere, but it seems to be a good alternative to jffs2+summary and probably switching is easier than to ubifs.

Best regards
Thorsten

#8 lore raw
Quoted 3 lines · Thorsten Mühlfelder

and what do you think about switching to yaffs2? I know it is developed elsewhere, but it seems to be a good alternative to jffs2+summary and probably switching is easier than to ubifs.

Why would you think that switching to something that isn't part of the Linux kernel would be easier than switching to ubifs? That seems... odd.

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation
#9 lore raw
Quoted 8 lines · Thorsten Mühlfelder
Quoted 3 lines

and what do you think about switching to yaffs2? I know it is developed elsewhere, but it seems to be a good alternative to jffs2+summary and probably switching is easier than to ubifs.

Why would you think that switching to something that isn't part of the Linux kernel would be easier than switching to ubifs? That seems... odd.

Yes, if ubifs doesn't fit, perhaps have a look at the recently added logfs?

Jocke

BTW, I once tried JFFS2 summary and it didn't make much of a difference for us.

#10 lore raw

Am Tuesday 01 June 2010 11:50:06 schrieb Joakim Tjernlund:

Quoted 8 lines
Quoted 7 lines · Thorsten Mühlfelder
Quoted 3 lines

and what do you think about switching to yaffs2? I know it is developed elsewhere, but it seems to be a good alternative to jffs2+summary and probably switching is easier than to ubifs.

Why would you think that switching to something that isn't part of the Linux kernel would be easier than switching to ubifs? That seems... odd.

Quoted 7 lines

Yes, if ubifs doesn't fit, perhaps have a look at the recently added logfs?

Jocke

BTW, I once tried JFFS2 summary and it didn't make much of a difference for us.

JFFS2 summary has reduced the mount time of my 500 MB root partition from around 50 seconds to 10 seconds.

yaffs2 has a mount time of ~3 seconds and it seems it has faster read access because whole boot time is reduced by ~30 seconds (compared to jffs2 summary).

I did not try ubifs yet.

AFAIK LogFS is still experimental?

#11 lore raw
In reply to Joakim Tjernlund
Quoted 9 lines · Joakim Tjernlund
Quoted 8 lines · Thorsten Mühlfelder
Quoted 3 lines

and what do you think about switching to yaffs2? I know it is developed elsewhere, but it seems to be a good alternative to jffs2+summary and probably switching is easier than to ubifs.

Why would you think that switching to something that isn't part of the Linux kernel would be easier than switching to ubifs? That seems... odd.

Quoted 6 lines

Yes, if ubifs doesn't fit, perhaps have a look at the recently added logfs?

Jocke

BTW, I once tried JFFS2 summary and it didn't make much of a difference for us.

Did you use 'sumtool' after creating your images? For reasons which are now lost in the mists of time, that support wasn't just added directly to mkfs.jffs2.

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation
#12 lore raw

David Woodhouse <[email protected]> wrote on 2010/06/01 12:38:57:

Quoted 14 lines · Joakim Tjernlund
Quoted 12 lines
Quoted 8 lines · Thorsten Mühlfelder
Quoted 3 lines

and what do you think about switching to yaffs2? I know it is developed elsewhere, but it seems to be a good alternative to jffs2+summary and probably switching is easier than to ubifs.

Why would you think that switching to something that isn't part of the Linux kernel would be easier than switching to ubifs? That seems... odd.

Yes, if ubifs doesn't fit, perhaps have a look at the recently added logfs?

Quoted 7 lines
Quoted 3 lines

Jocke

BTW, I once tried JFFS2 summary and it didn't make much of a difference for us.

Did you use 'sumtool' after creating your images? For reasons which are now lost in the mists of time, that support wasn't just added directly to mkfs.jffs2.

This was some years ago but I cannot recall using 'sumtool'. Also our NOR FS is between 128 and 64 MB so perhaps it is too small to benefit from summary?

#13 lore raw
In reply to David Woodhouse

Am Tuesday 01 June 2010 11:33:08 schrieb David Woodhouse:

Quoted 7 lines · Thorsten Mühlfelder
Quoted 3 lines

and what do you think about switching to yaffs2? I know it is developed elsewhere, but it seems to be a good alternative to jffs2+summary and probably switching is easier than to ubifs.

Why would you think that switching to something that isn't part of the Linux kernel would be easier than switching to ubifs? That seems... odd.

Because getting yaffs2 source and patching the kernel only was 2 commands and no single additional tool is needed. Just boot from USB stick and run:
flash_eraseall /dev/mtd1
mount -t yaffs2 /dev/mtdblock1 /mnt/device-root
tar xvf root-filesystem.tar -C /mnt/device-root

;-)

#14 lore raw
In reply to Thorsten Mühlfelder

Hi Thorsten,

2010/6/1 Thorsten Mühlfelder <[email protected]>:

Quoted 3 lines

and what do you think about switching to yaffs2? I know it is developed elsewhere, but it seems to be a good alternative to jffs2+summary and probably switching is easier than to ubifs.

Can you please share your reasons why you're considering switching first? :)

~Vitaly

#15 lore raw

Am Tuesday 01 June 2010 11:47:27 schrieb Vitaly Wool:

Quoted 10 lines

Hi Thorsten,

2010/6/1 Thorsten Mühlfelder <[email protected]>:

Quoted 3 lines

and what do you think about switching to yaffs2? I know it is developed elsewhere, but it seems to be a good alternative to jffs2+summary and probably switching is easier than to ubifs.

Can you please share your reasons why you're considering switching first? :)

Hi Vitaly,
1. We've used JFFS2 without summary until now, but now I have to reduce the boot time to the minimum possible. So first idea was the summary option, because other than slow mount times JFFS2 has worked OK. But if I do a major change now, why not switch to a more modern FS which will fasten boot up even more? ;-)

Additional requirements:
Sometimes it's written to the root FS and the device must be aware of power failures during write. I guess all the mentioned FS can handle this quite well.

Greetings
Thorsten