DOC2k booting speed ...
Hi,
I’m using
- doc2000 (32MB)
- via c3 800
- linux kernel 2.4.22
- mtd mtd-snapshot-20040124.tar.bz2
- I use nftl
I have build a little system (kernel+initrd). My initrd is about 4MB compressed (10MB uncompressed)
I have set up grub in the doc
When grub is booting, it takes 10 seconds to load the kernel and 35 seconds to load the initrd.
-> 5MB loaded : 45sec
When I boot from the Doc but with loading from the hard drive it takes 1 seconds to load the kernel and 2 seconds to load the initrd.
-> 5MB loaded : 3sec
on the m-sys web, they say that the DOC2k should have a read rate about 1MB/s so if I’m right everything should be loaded in less than 10sec
If anyone has a clue
Thanks
Philippe
Quoted 7 lines · Philippe
When grub is booting, it takes 10 seconds to load the kernel and 35 seconds to load the initrd.
-> 5MB loaded : 45secWhen I boot from the Doc but with loading from the hard drive it takes 1 seconds to load the kernel and 2 seconds to load the initrd.
-> 5MB loaded : 3sec
Grub's drivers are not particularly optimised. Why use an initrd rather loaded by the bootloader, rather than having the kernel itself access the device? That should be much faster, and wouldn't even need to whole device to be read at startup.
Signature · 1 line
dwmw2
Hi,
Thank you for your quick answer
Quoted 4 lines
Grub's drivers are not particularly optimised. Why use an initrd rather loaded by the bootloader, rather than having the kernel itself access the device? That should be much faster, and wouldn't even need to whole device to be read at startup.
As I cannot use JFFS2 with the DOC, I use an initrd to put the whole system in ramdrive without having the doc mounted.
I did it to avoid filesystem failures.
Is there another way to
1) boot from the DOC,
2) build up the OS filesystem
3) umount the DOC ? -> protect filesystem in case of unexpected powerdown
I saw many things about pivot_root but didn't found any simple example to get started.
Thank you.
Quoted 4 lines · Philippe
Is there another way to
1) boot from the DOC,
2) build up the OS filesystem
3) umount the DOC ? -> protect filesystem in case of unexpected powerdown
Perhaps you could use a read-only file system on the DiskOnChip, and use a ramfs for those areas of the file system which you need to be writable?
If you mount a ramfs on /mnt/ramfs, you can make symlinks into it from the 'real' file system.
Signature · 1 line
dwmw2
Hi
Quoted 3 lines
Perhaps you could use a read-only file system on the DiskOnChip, and use a ramfs for those areas of the file system which you need to be writable?
Well I had some troubles with the /etc/mtab....
Quoted 3 lines
If you mount a ramfs on
/mnt/ramfs, you can make symlinks into it from the 'real' file system.
I'll try to see if I can do something with tmpfs/ramfs...
Thank you
Quoted 3 lines
--
dwmw2
Quoted 1 line · Philippe
Well I had some troubles with the
/etc/mtab....
Symlink it to /proc/mounts.
See the Familiar distribution used on the iPAQ (and others) for more clues.
Signature · 1 line
dwmw2