Friday, July 30, 2010

How memory Profiles differ from VPS/Guest Host/Actual System

Device profiles are able to actually help us determine the locations of memory but also can help you profile a system. In this post Im providing some outputs of VPS/Guest Host/Actual Systems so you can see the difference.


OpenVZ:

root@bucket:~# lshw -short -class memory
H/W path Device Class Description
========================================
/0/0 memory 1GiB System memory

Above is our OpenVZ Linux Box. Not much to see here its a singular
memory channel 1GB of ram.

----------------------------------------------------------------

VirtualBox Guest Host:

dnsbox@dnsbox:~$ sudo lshw -short -class memory
[sudo] password for dnsbox:
H/W path Device Class Description
=====================================================
/0/0 memory 128KiB BIOS
/0/1 memory 511MiB System memory
/0/2/0 memory 128KiB L1 cache
/0/2/1 memory 1MiB L2 cache

Similar to the OpenVZ as in 0/1 being a singular memory channel
however abit more robust in providing Cache and L1/L2.

CPUs Cache:
/0/2/0 memory 128KiB L1 cache
/0/2/1 memory 1MiB L2 cache

----------------------------------------------------------------

Real Host:

melinko2003@workbox:~$ sudo lshw -short -class memory
H/W path Device Class Description
====================================================
/0/0 memory 128KiB BIOS
/0/3/a memory 128KiB L1 cache
/0/3/b memory 1MiB L2 cache
/0/11 memory 3GiB System Memory
/0/11/0 memory 512MiB DIMM DDR2 667 MHz (1.5 ns)
/0/11/1 memory 1GiB DIMM DDR2 667 MHz (1.5 ns)
/0/11/2 memory 1GiB DIMM DDR2 667 MHz (1.5 ns)
/0/11/3 memory 512MiB DIMM DDR2 667 MHz (1.5 ns)
/0/4/0 memory 128KiB L1 cache
/0/4/1 memory 1MiB L2 cache
/0/a memory RAM memory
/0/1.2 memory RAM memory

Above is my workstation which actually provides some indication
that it is a physical machine. How? Take a look:

/0/11 memory 3GiB System Memory
/0/11/0 memory 512MiB DIMM DDR2 667 MHz (1.5 ns)
/0/11/1 memory 1GiB DIMM DDR2 667 MHz (1.5 ns)
/0/11/2 memory 1GiB DIMM DDR2 667 MHz (1.5 ns)
/0/11/3 memory 512MiB DIMM DDR2 667 MHz (1.5 ns)

Device /0/11 is the systems PC5300 memory bank.
Device /0/11/0 is the first memory module in the bank and so on.

We can actually derive abit more information from above.This System
highly like has 2 CPU's or is a dual-core system:

First CPU's L1/L2 Cache:
/0/3/a memory 128KiB L1 cache
/0/3/b memory 1MiB L2 cache

Second CPU's L1/L2 Cache:
/0/4/0 memory 128KiB L1 cache
/0/4/1 memory 1MiB L2 cache

Of course we have BIOS:
/0/0 memory 128KiB BIOS

Some Misc Memory controls for the chipset:
/0/a memory RAM memory
/0/1.2 memory RAM memory

No comments: