LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 04-10-2013, 02:58 AM   #1
ovan
Member
 
Registered: Mar 2007
Location: Jakarta
Distribution: Mandriva 2010.0
Posts: 34

Rep: Reputation: 15
Memory Modules


I want to know the number of memory modules installed on my server through konsole, so i don't have to shutdown the system.

My machine is a hp proliant server with the operating system running linux centos 6.3 64bit

thanks
 
Old 04-10-2013, 03:39 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Not sure if this command is installed by default, but try using lshw

Examples:
Code:
# short memory related list:
lshw -short -class memory

# elaborate memory related list:
lshw -class memory
This is shown on my box (I do believe you're interested in the bold part):
Code:
 # lshw -short -class memory
H/W path           Device      Class       Description
======================================================
/0/0                           memory      64KiB BIOS
/0/4/5                         memory      256KiB L1 cache
/0/4/6                         memory      1MiB L2 cache
/0/4/7                         memory      8MiB L3 cache
/0/40                          memory      12GiB System Memory
/0/40/0                        memory      2GiB DIMM 1066 MHz (0.9 ns)
/0/40/1                        memory      2GiB DIMM 1066 MHz (0.9 ns)
/0/40/2                        memory      2GiB DIMM 1066 MHz (0.9 ns)
/0/40/3                        memory      2GiB DIMM 1066 MHz (0.9 ns)
/0/40/4                        memory      2GiB DIMM 1066 MHz (0.9 ns)
/0/40/5                        memory      2GiB DIMM 1066 MHz (0.9 ns)

Last edited by druuna; 04-10-2013 at 05:22 AM. Reason: spelling: noy -> not
 
2 members found this post helpful.
Old 04-10-2013, 12:13 PM   #3
visu_kvg
LQ Newbie
 
Registered: Aug 2009
Location: HYD,India
Distribution: RHEL
Posts: 19

Rep: Reputation: 0
Quote:
Originally Posted by ovan View Post
I want to know the number of memory modules installed on my server through konsole, so i don't have to shutdown the system.

My machine is a hp proliant server with the operating system running linux centos 6.3 64bit

thanks
I am not sure whether lsmod command will help you or not. But it will list you all modules loaded into the memory.

Last edited by visu_kvg; 04-10-2013 at 12:14 PM.
 
Old 04-10-2013, 12:25 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,082

Rep: Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714Reputation: 2714
Quote:
Originally Posted by visu_kvg View Post
I am not sure whether lsmod command will help you or not. But it will list you all modules loaded into the memory.
No, it won't help at all. Kernel modules don't show detailed hardware information.
 
1 members found this post helpful.
Old 04-11-2013, 05:36 AM   #5
ovan
Member
 
Registered: Mar 2007
Location: Jakarta
Distribution: Mandriva 2010.0
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
Not sure if this command is installed by default, but try using lshw

Examples:
Code:
# short memory related list:
lshw -short -class memory

# elaborate memory related list:
lshw -class memory
This is shown on my box (I do believe you're interested in the bold part):
Code:
 # lshw -short -class memory
H/W path           Device      Class       Description
======================================================
/0/0                           memory      64KiB BIOS
/0/4/5                         memory      256KiB L1 cache
/0/4/6                         memory      1MiB L2 cache
/0/4/7                         memory      8MiB L3 cache
/0/40                          memory      12GiB System Memory
/0/40/0                        memory      2GiB DIMM 1066 MHz (0.9 ns)
/0/40/1                        memory      2GiB DIMM 1066 MHz (0.9 ns)
/0/40/2                        memory      2GiB DIMM 1066 MHz (0.9 ns)
/0/40/3                        memory      2GiB DIMM 1066 MHz (0.9 ns)
/0/40/4                        memory      2GiB DIMM 1066 MHz (0.9 ns)
/0/40/5                        memory      2GiB DIMM 1066 MHz (0.9 ns)
i had tried to use lshw, but its not installed by default. so i get it from http://pkgs.repoforge.org/lshw/lshw-....rf.x86_64.rpm and install it manually, and here is the results

Code:
[root@ovan ~]# lshw -short -class memory
H/W path           Device     Class      Description
====================================================
/0/0                          memory     64KiB BIOS
/0/4/5                        memory     64KiB L1 cache
/0/4/6                        memory     512KiB L2 cache
/0/4/7                        memory     4MiB L3 cache
/0/1e                         memory     4GiB System Memory
/0/1e/0                       memory     2GiB DIMM DDR3 Synchronous 800 MHz (1.2 ns)
/0/1e/1                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/2                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/3                       memory     2GiB DIMM DDR3 Synchronous 800 MHz (1.2 ns)
/0/1e/4                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/5                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/6                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/7                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/8                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/9                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/a                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/b                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/c                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/d                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/e                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/f                       memory     DIMM DDR3 Synchronous [empty]
/0/1e/10                      memory     DIMM DDR3 Synchronous [empty]
/0/1e/11                      memory     DIMM DDR3 Synchronous [empty]
[root@ovan ~]#
thanks for the information, it really helps
 
Old 04-15-2013, 12:33 PM   #6
dragonlord76
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
I know this is solved but just in case you don't want to install lshw. You could use "dmidecode -t memory" very details info of each memory module installed.
 
1 members found this post helpful.
  


Reply

Tags
memory


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
Is there a difference between the memory modules in Z800 and in ProLiant? Earwig Linux - Hardware 2 09-08-2011 11:24 AM
What modules are needed for usb memory device? archieval Linux - Kernel 6 08-27-2010 02:45 AM
how to dynamically allocate memory in a kernel modules? Triumphant Programming 1 12-08-2009 11:19 PM
viewing memory modules details kapilcool Linux - Software 3 01-11-2007 10:28 AM
gconv-modules.cache eating my memory!!! dustu76 Fedora 0 12-09-2004 12:59 PM


All times are GMT -5. The time now is 11:10 PM.

Main Menu
Advertisement
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