LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-26-2010, 01:50 PM   #1
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 95
Blog Entries: 1

Rep: Reputation: 15
How to know the type of kernel?


Dears,,

Please , my O.S is Linux Red Hat 32-bit.
I need to know the type of the kernel
( default or PAE or xen ) kernel.

How know this?

Thanks & regards,,
 
Old 04-26-2010, 02:30 PM   #2
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,051

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
I think the kernel configuration will be in the text file
/boot/config-`uname -r`
Note those things that might look like single quotes are backticks, not quotes.

I think PAE support is controlled by CONFIG_HIGHMEM64G in that file, so you should be able to find out whether you have PAE with the command
Code:
grep 64G  /boot/config-`uname -r`
On my 32 bit Centos with PAE support, that gives the result
Code:
CONFIG_HIGHMEM64G=y
I don't know about xen.
 
Old 04-26-2010, 02:36 PM   #3
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 95
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Dear

I used this command grep 64G /boot/config-`uname -r`
It gave me CONFIG_HIGHMEM64G=y

It means that kernel is PAE in my O.S ?
Also , i need to know what about default kernel? How can i know it?
 
Old 04-26-2010, 02:55 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
uname -r applies to the currently running kernel. What do you mean by "default kernel"? (e.g. maybe you mean the GRUB default?)
 
Old 04-26-2010, 02:56 PM   #5
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,051

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Quote:
Originally Posted by eng_mohammedmostafa View Post
It gave me CONFIG_HIGHMEM64G=y

It means that kernel is PAE in my O.S ?
Correct.

Quote:
Also , i need to know what about default kernel? How can i know it?
I don't understand the question.
 
Old 04-26-2010, 02:59 PM   #6
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 95
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Dears,,

I searched in Web and i found that the kernel types are default or PAE or xen.
That's why i ask. May be i am wrong in my question ( Is there a kernel type called default )
If i am wrong , correct me
 
Old 04-26-2010, 03:09 PM   #7
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,051

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Quote:
Originally Posted by eng_mohammedmostafa View Post
I searched in Web and i found that the kernel types are default or PAE or xen.
You might be taking that claim out of context. I don't know whether that claim even applies to your version of Red Hat (I don't know what version of Red Hat you're using).

That claim implies that "default" kernels are not PAE. Your kernel is PAE, so it is not "default" (within the meaning of the info you found in your Web search).

If you want to ask follow up questions about this, please post the output of the command
uname -r

Last edited by johnsfine; 04-26-2010 at 03:11 PM.
 
Old 04-26-2010, 05:26 PM   #8
eng_mohammedmostafa
Member
 
Registered: Nov 2008
Location: Egypt
Posts: 95
Blog Entries: 1

Original Poster
Rep: Reputation: 15
[root@rac1 ~]# uname -r
2.6.9-67.0.0.0.1.ELhugemem
 
Old 04-26-2010, 06:26 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Kernels have many attributes---I'm not sure that PAE or Xen would be considered "kernel types"---It think that it is more correct to say that kernel was "compiled to support <<something--eg PAE>>"

"default" is certainly not a type of kernel. "default" simply means the action that will be taken if you don't do anything. For example, if you have 2 kernels installed, you can set either one to be the default by editing the GRUB menu.lst file.
 
Old 04-26-2010, 06:49 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,506

Rep: Reputation: 233Reputation: 233Reputation: 233
uname -a

gives a bit more info about your currently running kernel.

/boot/config files might have more information related to whatever kernel you're running. A lot of which depends on how PAE or Xen differ (if they differ).

/boot/grub/menu.lst or /boot/grub/grub.cfg might be more informative relative to boot options. Or /etc/lilo.conf depending on how your system is setup.
 
Old 04-26-2010, 06:58 PM   #11
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
If you look in your package manager, I am betting that you will see packages for the kernel supplied that are built with PAE or XEN support. They probably wouldn't be the one called default, and probably have PAE and XEN in their package names, which you can check for by looking in grub's menu.lst file and at the filenames in your /boot/ directory. Also examine the .config-* files in /boot/. This are the configuration files used to build the kernels. You can learn other things about how your kernel was built, such as whether particular devices are supported.

A kernel with default in it's name (the vmlinuz file) refers to the options that your distros regard as default. Default in grub's menu.list refers to which kernel is booted by default if you don't select another.

Last edited by jschiwal; 04-26-2010 at 07:00 PM.
 
Old 04-26-2010, 07:26 PM   #12
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,051

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Quote:
Originally Posted by eng_mohammedmostafa View Post
[root@rac1 ~]# uname -r
2.6.9-67.0.0.0.1.ELhugemem
I was expecting one of the more experienced Linux users here to comment on the age of 2.6.9.

I don't actually know where to look that up. But I expect it is rather old, because of the "hugemem".

If I understand correctly, hugemem is a kernel option in RHEL 4 that was dropped from RHEL 5, because using it is usually a bad idea. It is needed for 32 bit kernels for very large amounts of ram. I'm not sure exactly how much ram you can support with PAE without hugemem (somewhere around 12GB to 16GB). Hugemem also allows a slightly larger per process virtual address space than ordinary PAE.

Hugemem is a bad idea if you don't need its features (if you have 12GB or less and don't need the extra virtual space) because it has extra overhead and some compatibility issues.

Hugemem is usually a bad idea if you do need its features because a 64 bit kernel does a much better job than hugemem at supporting the kind of 32 bit applications that would need hugemem. If you are running such applications on a cpu that can't run a 64 bit kernel, you are probably doing major enough processing on obsolete enough hardware that buying a new computer would make more sense.

I don't know much about RHEL 4, including I don't know how you select PAE without hugemem. Especially I don't know why one would use RHEL 4. If you don't want to pay for RHEL 5, you can get Centos 5. I certainly would prefer Centos 5 to RHEL 4, even if the RHEL 4 still had prepaid support.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Type of Solaris kernel? Marty21 Solaris / OpenSolaris 2 01-30-2009 05:41 PM
cpu type of the kernel zhenze12345 Linux - General 2 11-19-2008 06:27 PM
installed kernel type Michael_aust Debian 2 03-21-2006 12:48 PM
"array type has incomplete element type" compiling 2.4.32 kernel Akabaka Linux - General 1 01-08-2006 12:48 PM
fs type not supported by kernel? thegreat1 Linux - Newbie 24 03-13-2005 01:11 AM


All times are GMT -5. The time now is 04:05 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 Google+: linuxquestions
Open Source Consulting | Domain Registration