Ultra Fast, Ultra Small Linux? How?

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

CaptainKahuna

Platinum Member
May 19, 2002
2,228
0
0
www.billda.com
Originally posted by: lowtech
Boot time is also depend on your hardware. The Debian linux (34 megs for desktop/testing machine & 42-44 megs for Database server) system that I setup for for work boot in less than 1 min with an old raid 5 disk & dual Pentium pro 200 with 64 meg of ram.

I've got a PentiumII 233 and 96megs of RAM. Can you tell me how exactly you did it? Just install and it booted that fast? Under a minute? Like 55 sec or like 20 sec?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
How big is it right now, and how slow is the boot?

BTW, what file system are you using and how are you mounting it? A couple of the things I have read about this offer hints to make it faster, Im just wondering what you are doing now to make it as fast as you can.
 

SUOrangeman

Diamond Member
Oct 12, 1999
8,361
0
0
wait a sec. You say you need to run a plugin that drives an LCD display. Are there any alternatives for that plugin? I mean ... how often are ya gonna look at the thing?

(BTW, I ran a Debian-based MP3 server for a few months. It had a database-backend for playing songs locally via web-bpage control and could stream MP3s over the network as well. About 500MB and ran headless.)

-SUO
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: SUOrangeman
wait a sec. You say you need to run a plugin that drives an LCD display. Are there any alternatives for that plugin? I mean ... how often are ya gonna look at the thing?

(BTW, I ran a Debian-based MP3 server for a few months. It had a database-backend for playing songs locally via web-bpage control and could stream MP3s over the network as well. About 500MB and ran headless.)

-SUO

There are console based alternatives. I could link a few, but he hasnt asked :p
 

hoihtah

Diamond Member
Jan 12, 2001
5,183
0
76
it seems like you're not getting much of your answers here.
and sorry that i can't be much of a help here.

but with your 233 mhz cpu, it's kinda difficult to get much speed.

i was looking into the set up that you're trying to go for.
but for me, i was going to use duron 950.

i stopped, when i couldn't find an lcd that i'd want.

but if you do find some sort of solution... please post it up.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: hoihtah
it seems like you're not getting much of your answers here.
and sorry that i can't be much of a help here.

but with your 233 mhz cpu, it's kinda difficult to get much speed.

i was looking into the set up that you're trying to go for.
but for me, i was going to use duron 950.

i stopped, when i couldn't find an lcd that i'd want.

but if you do find some sort of solution... please post it up.

I told him the best way to get a quick bootup. Heck, my OpenBSD machine with several sevices running probably takes under a minute.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: hoihtah
just out of curiosity...
how does compact flash speed up things?

It doesnt take as much time as a hard drive. Hard drives take their time to spin up and whatnot. Also, you dont have to worry as much about the hard drive crashing. Of course that will still be a concern...
 

lowtech1

Diamond Member
Mar 9, 2000
4,644
1
0

Linux is much slower to boot than DOS. It took an average 30-45 sec to cold Boot a highly optimize linux kernel/freeswan (ipsec, iptable, grep, awk, mawk, .conf, and nic card driver) with a 2.2-2.6 megs foot print with a 250-300mhz, at 128 megs ram, and 16-32megs disk-on-chip flash ram (much faster than flash card/ide/scsi).

I got a chance to sample a 128megs disk-on-chip, 256 megs of ram on a PIII-750mhz, but didn't get a chance to fully exploit that option.

My dream system is to built a computer with 2 Gigs of Disk-on-Chip & 128-256 megs of ram as an mp3 player that is about the same size as a Palm III, but 2X as thick.

My pet project at the moment is to built cheap diskless workstation (thin-client) at 1/4-1/2 size 1U unit, with 32-128 megs of ram at 300-500mhz (no need for cooling fan) and Linux. The idea is to built low maintenance, no noise, and mount it into the underside of desks/counters & uses wireless.
 

CaptainKahuna

Platinum Member
May 19, 2002
2,228
0
0
www.billda.com
"What do you have installed now?"

Nothing, just a clean HDD. I was wondering how to best start out.

"How often are you gonna be looking at that thing?"

Every minute or 2. It's in the dash of my car, and the comp is in the back.
-----------------------
30 sec boot would be OK, but if I totally disable networking, that should drop it some more right?
 

hoihtah

Diamond Member
Jan 12, 2001
5,183
0
76
how are you supplying the power?

are you using dc-dc powersupply? or dc-ac inverter and then ac powersupply?
 

vash

Platinum Member
Feb 13, 2001
2,510
0
0
The 20 second boot is gonna be nearly impossible. Getting X, under 50 megs is tough too, but >20 second of boot? Forget about it.

The only hope (ihmo) is something embedded. Those boot ultra fast and will give you want you want.

vash
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
Since he has the source code, wouldn't it be possible to take out things that take a lot of time and instead just use a 'fixed' configuration so that there is no need for any system scans for devices etc. because the settings would never change. It is my understanding that the reason the boot takes so long is because the OS scans for new devices (hardware) etc.

 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: CaptainKahuna
"What do you have installed now?"

Nothing, just a clean HDD. I was wondering how to best start out.

"How often are you gonna be looking at that thing?"

Every minute or 2. It's in the dash of my car, and the comp is in the back.
-----------------------
30 sec boot would be OK, but if I totally disable networking, that should drop it some more right?

Install linux and find out how much work you have to do.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
honestly, win95 plus winamp would serve you well... what is the xmms plugin you want? are you SURE there aren't equivalents?

win95 boots VERY fast if all you run is winamp.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Since he has the source code, wouldn't it be possible to take out things that take a lot of time and instead just use a 'fixed' configuration so that there is no need for any system scans for devices etc. because the settings would never change.

Most of the things that take time always happen, like when the ide driver is initialized it resets the IDE bus, which takes a few seconds.

It is my understanding that the reason the boot takes so long is because the OS scans for new devices (hardware) etc.

Linux only loads devices you tell it to, it never scans for new devices. If you have drivers loaded that don't have corresponding devices they all total may eat ~1 second of your boot time to realize the device isn't there then printk something or just exit.

RH (and now MDK I think) run a program called Kudzu at boot that scans for new devices, but it's not part of the kernel.

I don't think it's that hard to get the boot speeds he wants, X would be the longest thing to load and it only takes a few seconds. But only trial and error will know for sure.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: Nothinman
I don't think it's that hard to get the boot speeds he wants, X would be the longest thing to load and it only takes a few seconds. But only trial and error will know for sure.

True, but it could take a long time to figure out how exactly to get hte speed. My best attempts have all been pretty slow still. Win95 is a fast boot out of the box if you can find a similar plugin
 

CaptainKahuna

Platinum Member
May 19, 2002
2,228
0
0
www.billda.com
The plugin is actually a Winamp plugin, so it should work with XMMS right? And no, I can't find an equivelent program, this plugin is a standard lcd plugin modified by a friend in Italy, who is kinda hard to get a hold of.
 

CaptainKahuna

Platinum Member
May 19, 2002
2,228
0
0
www.billda.com
Originally posted by: hoihtah
how are you supplying the power?

are you using dc-dc powersupply? or dc-ac inverter and then ac powersupply?

I'm using an AC power supply and a 300w inverter, which adds about 3 seconds to the boot for the inverter to power on. So I guess I want a sub 23 second boot time :) Of course, I'd be happy with 30 too.

 

CaptainKahuna

Platinum Member
May 19, 2002
2,228
0
0
www.billda.com
Originally posted by: hoihtah
it seems like you're not getting much of your answers here.
and sorry that i can't be much of a help here.

but with your 233 mhz cpu, it's kinda difficult to get much speed.

i was looking into the set up that you're trying to go for.
but for me, i was going to use duron 950.

i stopped, when i couldn't find an lcd that i'd want.

but if you do find some sort of solution... please post it up.

For an LCD, I recommend a 40x4 character LCD from Arby over at the mp3car.com forums. He sells 'em for $50, and they work great.

 

CaptainKahuna

Platinum Member
May 19, 2002
2,228
0
0
www.billda.com
Basically, what I'm asking is if it's better to slim down Mandrake or RedHat as much as I can, or find some sort of floppy or CDROM distro and run it from my HDD.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: CaptainKahuna
Basically, what I'm asking is if it's better to slim down Mandrake or RedHat as much as I can, or find some sort of floppy or CDROM distro and run it from my HDD.

Id personally go with Debian or slack and slim that down. They are much smaller installs than both redhat and mandrake. Ive never messed with the floppy or cdrom distros. You could also look into zip slack and see if you can modify it to work on a hard drive (shouldnt be tough, but I havent looked into it).
 

lowtech1

Diamond Member
Mar 9, 2000
4,644
1
0

Oops!

Almost forgot....There are a few linux projects that put linux kernel into the BIOS via Disk-on-Chip (uses for security & boot speed) that you can try to shave a few more secs off boot time.

I have tried puting the kernel into BIOS once, but it was a disaster & compleatly killed the BIOS. Hasn't try it again in a year therefor the technology maybe better today.

You may want to look into the embeded Linux, or WinCE for more info on what you are trying to accomplish.
 

jcmkk

Golden Member
Jun 22, 2001
1,159
0
0
If only BeOS were still around. Slack and Debian are good suggestions. Gentoo would fit the bill too, but it would take forever to compile everything on a PC that slow. You also might want to try out one of the mini distros like CRUX. Go to DistroWatch to get a more in depth look at the different linux distros. You should look around the net at the different dos players. Their are a lot of people creating software for your specific purpose and they use dos. What kind of LCD is it? Parallel or serial?
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
heres what i would do

1. install debian potato or even older. they're smaller, security isnt much of a concern in a car, and they might boot a bit quicker.

2. build a new kernel and get rid of any stuff you dont need. maybe try an old 2.2 or even 2.0 kernel to see if they boot much faster. maybe delete junk like docs and logs and misc whatever files you dont need. sure this is something that would be considered insane in any normal situation, but if this thing is JUST gonna sit in a car and JUST play xmms, then hell, who cares. also, use xfree86 3.x instead of 4.x to save some space (i assume?)

3. install X and install xmms. after doing all this you'll probably have used up 100MB, just a rough estimate. could be even less.

if you want to go further than that, then you're going to have to do alot more work, and i'm not sure you seem willing or able to do that.

some random ideas if you are...

find out if xmms works in direct framebuffer, and if so, if directfb is smaller than x.

find another, smaller x implementation (i know there are some right?)

find a floppy distro and build all the stuff you need to get X and xmms working on it.

other than that, theres not much else you could do. we cant make your hard drive go any faster, or that p233 go any faster.

it seems like you're just looking for a quick easy solution, but i'm afraid there may not be one.