The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
OLS: Kernel documentation, and submitting kernel patches iBot UNIX and Linux RSS News 0 07-25-2008 11:10 AM
max number of slabs per kernel module (kernel 2.6.17, suse) Brendan Kennedy SuSE 4 01-23-2008 09:40 AM
kernel-kernel call communication aureliano High Level Programming 5 06-05-2007 05:48 PM
Kernel panic - not syncing: cannot execute a PAE-enabled kernel on PAE-less CPU dave043 Linux 2 05-10-2007 01:57 AM
supressing kernel info in /bin/login cerberusofhate UNIX for Dummies Questions & Answers 3 08-26-2002 05:11 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-25-2008
mazhar99's Avatar
mazhar99 mazhar99 is offline
Registered User
  
 

Join Date: Aug 2008
Location: Pakistan / Lahore
Posts: 14
Question How to check kernel info

Hi, can anyone tell how can i check kernel memory and paging info etc.. thanks, Mazhar
  #2 (permalink)  
Old 08-25-2008
agasamapetilon agasamapetilon is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 67
You can check the release, name and version of the kernel with:
Code:
uname -rsv
To check the memory, swap, etc:
Code:
free -m
  #3 (permalink)  
Old 08-25-2008
replytoshishir replytoshishir is offline
Registered User
  
 

Join Date: May 2006
Location: Bangalore
Posts: 23
for virtual memory u can also use vmstat
  #4 (permalink)  
Old 08-25-2008
mazhar99's Avatar
mazhar99 mazhar99 is offline
Registered User
  
 

Join Date: Aug 2008
Location: Pakistan / Lahore
Posts: 14
i am working on solaris 10 and want to see how much kernel is using memory... the command "free -m" did't work ... so far i search there is a command "kstat" work with modules.... for example kstat -p -m cpu_stat -s 'intr*'

cpu_stat is the module here
now i want to print all modules to perform different commands


thanks,


Mazhar
  #5 (permalink)  
Old 08-25-2008
agasamapetilon agasamapetilon is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 67
Indeed, the kstat command displays information about the kernel under UNIX systems. You can see more arguments to use and some examples in the following link:

kstat(1M) – display kernel statistics (man pages section 1M: System Administration Commands) - Sun Microsystems

What was the output of the command that you put as an example?
Code:
kstat -p -m cpu_stat -s 'intr*'
It should display something similar to:
Code:
cpu_stat:0:cpu_stat0:intr       29682330
cpu_stat:0:cpu_stat0:intrblk    87
cpu_stat:0:cpu_stat0:intrthread 15054222
cpu_stat:1:cpu_stat1:intr       426073
cpu_stat:1:cpu_stat1:intrblk    51
cpu_stat:1:cpu_stat1:intrthread 289668
cpu_stat:2:cpu_stat2:intr       134160
cpu_stat:2:cpu_stat2:intrblk    0
cpu_stat:2:cpu_stat2:intrthread 131
cpu_stat:3:cpu_stat3:intr       196566
cpu_stat:3:cpu_stat3:intrblk    30
cpu_stat:3:cpu_stat3:intrthread 59626

Last edited by agasamapetilon; 08-25-2008 at 03:18 AM..
  #6 (permalink)  
Old 08-25-2008
mazhar99's Avatar
mazhar99 mazhar99 is offline
Registered User
  
 

Join Date: Aug 2008
Location: Pakistan / Lahore
Posts: 14
This was my output

bash-3.00# kstat -p -m cpu_stat -s 'intr*'

cpu_stat:0:cpu_stat0:intr 57041377
cpu_stat:0:cpu_stat0:intrblk 17986
cpu_stat:0:cpu_stat0:intrthread 38618969



this is specific for one module cpu_stat

what if i want to display all available modules ? i dont want to give match result.

thanks,


Mazhar
  #7 (permalink)  
Old 08-25-2008
agasamapetilon agasamapetilon is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 67
This command displays information about loaded kernel modules, if they are installed or not, loaded or not.
Code:
modinfo -c
Also you can look for the modules at:
Code:
/lib/modules
Sponsored Links
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0