[SOLVED] Optimize slack boot process / init scripts ?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[quote]Not sure about compact, but I feel the 'idebus=xxx" might be a tad unsafe. Especially without detailed info on my system.{/quote]
Compact can conflict with 'LBA=32' depending on your drive. Not sure if I'd call it unsafe or not. It's a commonly used option.
But as far as the IDE setting, (I've tried this) setting it to a value that is too high just returns a message in dmesg saying "Bad IDE value - too high" and it resorts to 33Mhz, the default. I have mine at 66, but when I tried upping it to 100 (and I have a UDMA 133Mhz capable bus) it just told me it was a bad setting and booted at 33 Mhz.
I think it's safe to assume (yeah I know the adage) that virtually any modern computer is capable of 66Mhz on the IDE.
Again, if it doesn't work or is invalid, it will just tell you so and default to normal.
I'm not too familiar with laptops in general, but surely by starting with the manufacturer you could narrow down the model number and motherboard possibilities/options.
> > I have an AMD 1.1ghz Athalon running a 133 bus. I just booted my box and
> > it said the bus was at 33, use idebus= to override. Before I go and
> > risk nuking my box by screwing up a setting, is it just a lilo append
> > line that says something like append="idebus=133"?
Your FSB, not your PCI, is running at 133 MHz
> This should do. I don't know about your board but I have my P5AB
> set up like:
>
> image = /vmlinuz
> label = new
> root = /dev/hda1
> vga = normal
> read-only
> append = "debug=2 noapic nosmp hdc=ide-scsi hdb=ide-scsi hdd=ide-scsi idebus=66"
You almost certainly *don't* want to do that. idebus is the speed of your
PCI bus, which is probably 33 MHz. That's kinda a confusingly named option
-- lots of people seem to think it has something to do with ATA/33 vs ATA/66
vs ATA/100, but it doesn't. See drivers/ide/ide.c....
/*
* ide_system_bus_speed() returns what we think is the system VESA/PCI
* bus speed (in MHz). This is used for calculating interface PIO timings.
* The default is 40 for known PCI systems, 50 otherwise.
* The "idebus=xx" parameter can be used to override this value.
* The actual value to be used is computed/displayed the first time through.
*/
* "idebus=xx" : inform IDE driver of VESA/PCI bus speed in MHz,
* where "xx" is between 20 and 66 inclusive,
* used when tuning chipset PIO modes.
* For PCI bus, 25 is correct for a P75 system,
* 30 is correct for P90,P120,P180 systems,
* and 33 is used for P100,P133,P166 systems.
* If in doubt, use idebus=33 for PCI.
* As for VLB, it is safest to not specify it.
66 MHz is max, but 33MHz is the usual. Until I know what frequency my pci bus is capable of, I'm not changing it.
EDIT:
Quote:
> Isn't my PCI bus speed faster than 33MHz?
Nope. Very loosely speaking, PCI bus speed is 33 MHz for 32-bit PCI and 66
MHz for 64-bit PCI; you can no doubt find all four combinations in use if
you look (this new sun blade I'm on right now has both 66 and 33 MHz PCI
busses, for example), but on almost all PC-class hardware the PCI bus runs
around 33 MHz.
The option is there because that speed will change if you're overclocking or
otherwise running at a "weird" bus speed, and so that way you can adjust
between ~ 25 and 40 MHz for you PCI bus if you need to....
Indeed interesting and confusing.
I arrived at the idebus=66 setting because dmesg informed me that the kernel was 'assuming' a 33Mhz bus speed, and to use the setting 66 to change it. Which I did.
On a related note, while my IDE bus is capable of UDMA (Ultra DMA 133Mhz) I cannot infact apply this setting during boot, it just wont work. I get the impression that the machine must be fully booted before UDMA can be activated.
It also told me that valid settings (LILO said this) were between 20 and 66 Mhz for the idebus= function..
For the record, it seems they are referring to older and slower computers too, with the references to P100 and P133 etc.. My PCI/AGP bus is set at AUTO (usually a 66/33 ratio) and an FSB speed of 122 MHz (I am overclocking but not drastically so--- My puter is a 1.8Ghz Intel P4 currently running at 2.2Ghz.
In the end, I'm just offering suggestions but not suggesting you risk your hardware; do what is safest for your machine until you learn what it can handle! But I do love the wicked boot speed allowed by the increased bus speed
Sasha
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55
Rep:
Quote:
Originally Posted by H_TeXMeX_H
Kernel on both my current machine and the older one is huge26.s.
I was thinking of recompiling, but I usually don't like to unless I really have to.
Recompiling always sounded intimidating to me until I did it a few dozen times. That huge26.s kernel is well-named. It has all sorts of crap in it that you might not need: support for SCSI cards nobody you know has heard of, support for nearly every filesystem around, hotplug support, PCMCIA support, sound-card support, support for obsolete stuff, support for the very latest stuff... you get the idea.
Take careful notes of what you're removing.
Keep backups of previous successfully-bootable kernels.
Shave off just a few bits of cruft at a time.
On a P-III, it could cost you a few hours of compile time, but it will save you memory and it will save you precious minutes of boot time!
I just want to point out that huge26 is not the only 2.6 possibility in Slackware for those who are wary of compiling your own kernel. The extra/ directory has a reasonably sized 2.6.17 kernel with modules and testing/ provides a 2.6.18 kernel.
I just want to point out that huge26 is not the only 2.6 possibility in Slackware for those who are wary of compiling your own kernel. The extra/ directory has a reasonably sized 2.6.17 kernel with modules and testing/ provides a 2.6.18 kernel.
Yeah, basically what I did (as a quick fix ... it reduced kernel size by 1/3 over huge26.s !) was take the 2.6.17 kernel source from the extra directory, change the .config to support JFS built-in (which I have), recompile it (took 10 min), and install it. (of course, I have an option to boot huge26.s again in lilo, just in case something goes wrong and the kernel panics)
Next I plan on doing "make allmodconfig" and then adding JFS built-in (static) support. Then see which modules I really need, make (recompile) those static, get rid of the rest, and it hopefully will result in a very small kernel capable of everything I need it for. (really I could just leave the modules there in case I install or change out hardware)
Last edited by H_TeXMeX_H; 02-06-2007 at 01:41 PM.
Next I plan on doing "make allmodconfig" and then adding JFS built-in (static) support. Then see which modules I really need, make (recompile) those static, get rid of the rest, and it hopefully will result in a very small kernel capable of everything I need it for. (really I could just leave the modules there in case I install or change out hardware)
I also compile the fs support statically, but more generally why do you not want to use modules?
There are also some really nice aspects of modules vs. static. For example, my wifi card doesn't always like to change from one encrypted network to another. So I simply rmmod the module and then modprobe it again and I'm set to go. If it was compiled statically I couldn't do that. Also, modules can help you troubleshoot hardware issues because you can use lsmod to see what modules loaded when you plug something in. Also, when seeking help on, eg. this board, someone might ask "Do you have module Z loaded?", and if you have everything statically compiled you will not be able to respond. Also...
looking at some of his posts i dont think he knows what hes talking about
Huh ? Who you talking to ?
@ BCarey
Sounds great ... I'll try it now.
EDIT: Update: Compiling using mostly modules only saves ~100 KB from kernel size. I'll have to look up my exact hardware ... that will take too long and will have to wait until I have time and am bored enough to do it.
Last edited by H_TeXMeX_H; 02-06-2007 at 09:34 PM.
huge26.s is huge everything compiled in, did you made initrd for non ext2/3 filesystems?
i hope for your configuration bare.i will work,
just copy the kernel bzimage, edit lilo run lilo, very easy and feel the difference
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.