Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: malikawan on November 22, 2014, 02:26:48 PM
-
What is the minimum time to boot tiny core with default extensions ?
-
It all depends on the boot media and processor speed.
Just time it.
-
What is the minimum time to boot tiny core with default extensions ?
As gerald_clark said, it depends on the hardware in question. I've typically seen it in the 12 to 18 second range. But I just -happen- to be mucking around with a brand new PowerEdge T110 II with a 4 core CPU and 8GB of RAM sooo...
Booting from a Sandisk Cruzer USB stick, Core 6.0 beta 1 with onboot.lst containing
fltk-1.3
Xlibs
Xprogs
Xvesa
jwm
wbar and
aterm
gets me to a desktop in 15 seconds after pressing <enter> on the grub4dos menu. This is a clean install with no mydata.tgz present.
-
Thanks lee but i am shocked my pc core i 5 4 gb ram boot 5 second and after 5 second i am on my desktop means x server starts after 5 second exact
fltk-1.3
Xlibs
Xprogs
Xvesa
jwm
wbar and
aterm
-
Wellll.... I suppose that would be acceptable. ;)
Nice hardware. While I've never had reason to be dissatisfied with the core boot time, I don't think I've ever seen it quite that fast.
-
Qemu boots are typically under two seconds for me, with default TinyCore extensions. Real HW has several seconds of BIOS delay in addition to that, but when booting from a HD TC itself still loads in about two seconds.
-
yes curaga i have persistence home opt and tce folder
-
For me, a rather messy install of tinycore with a 3.4 MB backup file and 20+ extensions onboot, takes about 50 seconds on a 1.6 GHz netbook. This might seem a lot for tinycore yet it's still way faster than any other OS running on this box (Debian, Mint, Win7). 5 seconds? No. Damn quick? Yes. BTW, TC is used here as the main OS and the others are basically clean and unused so pretty much as light as they can be.
-
Misalf, would you be interested in making a bootchart? That netbook sounds like a good data point.
The instructions are on the wiki:
http://wiki.tinycorelinux.net/wiki:bootchart
It's a quick initrd remaster, but you may have to get the bootchart-pl extension manually from 4.x.
-
That does sound interesting. Actually I just recently edited tc-config for adding a new boot parameter but this creates a three seconds delay which I'd like to get rid of.
Got the extension from 4.x repo. Will try soon.
-
Oh, wow! 1323 x 19565 pixels. That is one big pic which doesn't fit on tinypic.com (1600 max).
Here is my modded tiny core booting.
https://db.tt/tAisyzkE
I'll do a clean boot later.
-
Now this is with norestore boot code and default core.gz (plus bootchart.gz) but less extensions on boot because I'm using theYinYeti's modification of tc-setup to have multiple .LSTs processed at boot like for Xorg and video driver.
https://db.tt/PiD2GnQs
I'm not too sure what really matters here so I'll obey to any advice on how to use bootchart properly in order to get usefull results.
-
Thanks, lots of good data. Those million busyboxes though :P
Slightly edited version: http://www.pasteall.org/pic/80384
Quick analysis:
- slow IO + slow cpu, it alternates from waiting for one to waiting for the other. HD looks a bit fragmented too, are you using ext4?
- kernel took 1.5s, pretty well for a single-core Atom
- total extension loading dominates at 47s
- however, the actual "loading" part only took 20s of that
- one big extension takes about 5s to load, which one?
- backup restore takes only 2s
- dejavu font caching startup script takes 8s
Recommendations:
- do a full fsck, move to ext4 if not yet on it
- identify that 5s extension with "showapps"
- try to find out what caused so many busybox processes
- edit your copy of dejavu and remove the startup script
Font caching is not essential to running anything, it merely speeds up app startup and font listing (in gimp, word processors, etc.). So you should benefit by removing it from font extensions, and if you find it useful, doing it once in bootlocal.sh so it's backgrounded.
-
Thank you for those recommendations, curaga!
Yes, it's ext4. I think this partition never got fsck'ed. Will do. (:
No idea which tcz takes 5 seconds. Maybe the first one loaded? That would be Xorg-7.7.tcz.
Busybox processes, hmm... Could this be echo's? Used for coloring a potentially appearing message thus it may be called redundantly very often.
I will probably put all fonts I use in a initrd. For now a modified dejavu-fonts-ttf.tcz sits in my upgrade folder waiting for a reboot.
-
Misalf & curaga can u tell me the full procedure to use the Bootchart perl . i have install the Bootchart perl extention and i know how to remastering core.gz but i dont know how to use or configure Bootchart perl
Thanx in advance
-
@Misalf
If you disable the useBusybox function in tc-functions (replace the command inside with "true" for example, shells don't like empty functions), full process names should show in the bootchart.
@malikawan
What's unclear on the wiki page?
-
Thanx for reply curaga
after install Bootchart-py.tcz what can i do to get Bootchart just i install or do some configuration for geting Bootchart
sorry for bad english
-
As written in the wiki page, you need to remaster your initrd so that it gathers the required info. It's all written there.
-
curaga thanx for reply but in wiki
Extract to the initrd:
sudo tar -C /tmp/extract -xvf ubootchart.tgz
so i give this command it say no directory in tmp so i manually create directory in /tmp/extract
then it extract files in extract folder
Replace every “sbin/init” with “sbin/ubootchartd” in /init:
sudo sed -i 's@sbin/init@sbin/ubootchartd@g' /tmp/extract/init
then i give this command it again says no init directory in extract
so how i do that its only 2 line wiki so how i understand
then i use script to extract core.gz in tmp folder it create folder core_extract then in use this folder to extract ubootchart by this command
sudo tar -C /tmp/core_extract -xvf ubootchart.tgz
after that i give this command
sudo sed -i 's@sbin/init@sbin/ubootchartd@g' /tmp/extract/init
all work good
after that i pack the extracted folder it give me core.gz then i boot that core.gz but i don't see any file in /var/log related to ubootchart
please tell me that its write procedure or if not so plz tell me what to do next
when i open top /sbin/ubootchartd_bin is running
thanx
-
Your second attempt is correct but, as described on the wiki page, you also need to kill the bootchart process in order for it to write the log.
I put the following command in ~/.profile (below the .ashrc stuff and above the startx stuff) and did a backup before reboot.
[ -f "/sbin/ubootchartd_bin" ] && sudo killall -USR1 ubootchartd_bin
After reboot, load bootchart-pl.tcz (not bootchart-py.tcz) and create the SVG image.
I used these commands to convert it to a .PNG image:
tce-load -i librsvg && rsvg-convert -a -f png -o /tmp/my_bootchart.png /tmp/my_bootchart.svg
-
Another wow! Drastically reduced boot time. All those busy boxes are gone after editing tc-functions.
However, I don't think that's just great since, while booting, I think coreutils.tcz complains about missing libgmp.so.10 even though gmp.tcz is already loaded. Also every extension after coreutils.tcz in onboot.lst won't get loaded at all.
https://db.tt/njIcZEC4
--
BTW, not recreating the font cache didn't seem to have any result regarding entire boot time. Anyway I'll put in in bootlocal.sh when I think need it.
-
Oh, yes... coreutils replaces busybox counterparts with gnu ones. Since I disabled busybox'es aliases, the system tryes to use the gnu programs just after loading coreutils.tcz but they're not ready to be used while loading extensions on-boot. I removed coreutils.tcz from onboot.lst.
However, bootchart don't really gives more info, or does it?
With showapps boot code
https://db.tt/D3M0UVBG
With showapps=foo boot code (I added this one to just shows the .LSTs and a rotdash but no .TCZs)
https://db.tt/pb7WFwCP
-
Ok, I found the 800+ forks were caused by depmod. Misalf, you can restore your system to how it was (well plus font changes obviously ;)).
-
Misalf thanx thanx alotttttttttttttttttttttttt doneeeeeeeeeeeeeee
again thanx
-
Misalf thanx and my bootchart here
https://www.dropbox.com/s/u905a5xf8kzng6g/new.jpeg?dl=0
-
Does /tmp/my_bootchart.png already exist?
Does tc have permission to write that file?
Try deleting it first.
-
Thanx gerald_clark you are rite tmp/my_bootchart.png already exist when i delete it will create for me
-
malikawan, your chart shows CPU peaking almost constantly. That means there's little that can be optimized, other than doing less (load less extensions, etc).
-
Thanx sir curaga for ur time to see my bootchart but it is not real system this was virtual box bootchart i am upload tomorrow the real pc bootchart then plz also suggest me that system boot in 5 sec with persistent home opt and tce folder
-
sir curaga this is my pc bootchart plz and suggestion or comments
https://www.dropbox.com/s/mssvgzug7nrlz78/my_bootchart.png?dl=0
-
3 seconds, half of which is spent in the kernel. If you really need more, you could build a custom kernel.
-
Thanx sir curaga and how i build a custom kernel to reduce the time to half. plz if u have some time then tell me in short
-
You can't reduce the kernel time to nothing, maybe cut off 0.5s. I don't think it's worth it if you've never compiled a kernel before.
-
Thanx curaga i think its ok......
please can you give a link where i can study about kernel recompiling
-
It's in the wiki.