Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > static or dinamic kernel?

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-06-2005   #1 (permalink)
Linux Newbie
 
Join Date: Jan 2004
Location: UK
Posts: 129
static or dinamic kernel?

hello everyone,

I have just finished (I hope) to upgrade my toshiba laptop running slack10.1(current) to the new kernel2.6.11.11 - I have come across a few problems that, thanx to google and other freindly ppl in yahoo chat rooms, I managed to resolve eventually playing on this new kernel2.6 - I only have one more thing to understand to pass from a total newbie to a (almost) self-sufficient linux user

what is the difference (in terms of performance/s) between building a static or dinamic kernel? would the manual compilation of modules be more performance-effective?

any suggestion is welcome - thanx
__________________
If you get on the wrong train all the stations you will come to will be the wrong stations.
Zen
operator is offline  



Reply With Quote
Old 07-07-2005   #2 (permalink)
Linux Guru
 
budman7's Avatar
 
Join Date: Oct 2004
Location: Knee deep in Grand Rapids, Michigan
Posts: 3,242
I've never heard static and dynamic being applied to the kernel.
They are normally applied to IP addresses.
__________________
How to know if you are a geek.
when you respond to "get a life!" with "what's the URL?"
- Birger

New users read The FAQ
budman7 is offline   Reply With Quote
Old 07-07-2005   #3 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Quote:
Originally Posted by budman7
I've never heard static and dynamic being applied to the kernel.
They are normally applied to IP addresses.
Static and dynamic can also refer to how a program is compiled; that is are all of the libraries statically linked to it (creating a larger executable which is in turn portable to systems lacking the libraries in question) or dynamic linked, with the libraries dynamically loaded at run time resulting in smaller, less-portable code.
Although I've never really heard discussion of dynamic vs. static linking of kernel/kernel modules as I believe that it is a whole other animal than userspace. Kernel modules aren't linked against userspace libraries; instead of using shared libraries, they used a kernel symbol table, and different modules and export various symbols (functions, variables, etc.) much like shared userspace libraries export these functions and variables to programs which link against them.
I hope this clears things up.
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 07-07-2005   #4 (permalink)
Linux Newbie
 
Join Date: Jan 2004
Location: UK
Posts: 129
Quote:
Static and dynamic can also refer to how a program is compiled; that is are all of the libraries statically linked to it (creating a larger executable which is in turn portable to systems lacking the libraries in question) or dynamic linked, with the libraries dynamically loaded at run time resulting in smaller, less-portable code.
Although I've never really heard discussion of dynamic vs. static ..............
I admit that I had to read it more than once and even more than twice, but eventually I think that it made some light into my developing brain, lol

furthermore, what I meant by static was building the kernel with permanent built-in code/s or dinamically by adding them as modules and then compile whenever u need that specific module - however, i think that it's clear in my head now as I am in fact about to finish building my new kernel2.6 to finally work fully

thanx to ALL
__________________
If you get on the wrong train all the stations you will come to will be the wrong stations.
Zen
operator is offline   Reply With Quote
Old 07-07-2005   #5 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Well wait a second; compiling something into the kernel and compiling it as a module is an important decision.
My general rule is, unless you use an initrd image (which I don't), then there are two things you must consider if something is available as a module:
1. Do I need this to boot my system properly? (Like for example a driver for my hard-drive or do I need SATA, etc.) If so, then compile it as built-in.
2. 99% of the time, if number one is false, then compile it as a module.
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 07-07-2005   #6 (permalink)
Linux Newbie
 
Join Date: Jan 2004
Location: UK
Posts: 129
yeah that was kind of what I meant, though it took me two installations and about 12 hours of working on it to get that!
__________________
If you get on the wrong train all the stations you will come to will be the wrong stations.
Zen
operator is offline   Reply With Quote
Old 07-07-2005   #7 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Glad to help.
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 03:19 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1