LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 07-02-2003, 05:00 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Arrow SMP, Kernel and NIC module question...weirdness


Hello everyone.

I have a question regarding a interesting thing that happened when I setup our last server with a RH 7.3 install.

The server is a 2.8ghz Xeon processor, with the option to eventually add a second CPU.

The install went well, no problems at all. I had to download the nic drivers and compile the module to get the NIC working. Simple enough, but a weird thing happened.

After the install, upon the first boot to GRUB, I noticed that there were two kernels installed during the installation: one for SMP and the second just a normal setup. Im guessing that the SMP kernel is used to take advantage of a second CPU if one is installed, correct?

Anyways, I booted into the normal kernel and proceeded to install the module and configure the network. No problem. I then rebooted the machine and the booted again into the same kernel just to make sure the module was loading. It was.

Now, this is where it gets weird and I get confused.

I then rebooted the server and walked away. When I came back, the server had booted to the SMP kernel (was the first kernel on the grub list.) Anyways, I logged into the system and proceeded o do a lsmod.

The e1000 driver was not there. So I tried to enter insmod e1000 and it kicked out a bunch of errors. I was confused and not sure what was going on.

So what I did was recompile the module when I was booted into the SMP kernel. The compile and network config went fine. After a reboot to the SMP kernel, the NIC module was loading no problem.

I verified that both kernels were working correctly with the NIC module by booting into both of them and verifying the NIC module was loading. It was, which is great.

So my question is, what was going on? Is that normal?

Can someone explain to me what was happening there?

Thanks.

Tarballed
 
Old 07-02-2003, 05:33 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Yes... this is normal. Each kernel version stores its modules in a different directory under /lib/modules

Do an "ls /lib/modules" and you will see one directory for SMP and the other is for uni-processor.

If you do an "rmmod e1000" and then an "insmod e1000" you will see that there is a different specific location for this driver for each kernel you are booted to.

-KevinJ
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack 10.2, 2.6.13 kernel, SMP question Twister512 Slackware 18 11-28-2005 10:22 PM
Custom 2.6.10 kernel, how can I tell which NIC module I'm using? lowpro2k3 Slackware 2 01-10-2005 06:47 PM
newbie smp kernel question djgerbavore Programming 3 11-18-2004 07:43 AM
quick nic module question bruj3w Linux - Hardware 3 08-17-2004 08:50 AM
Quick SMP kernel question Coldfirex Slackware 3 10-19-2003 11:05 AM


All times are GMT -5. The time now is 08:54 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration