Capturing the required details of a machine before starting Performance tests


We often check the machine details while before starting our performance tests. These details are very much required to know the type of H/W we are using for particular tests.

Examples:
Below is the example of Data Node details used as part of HBase cluster
Data Node:
a)       6 x Dell PowerEdge R720 Nodes
Each with
b)       2 x E5-2680 V2 2.8GHz 10-core, HT=ON
c)       192 GB RAM
d)        13 x PERC 900GB 15K 6Gbps SAS 2.5" SFF HS HDD , Total storage ~12 TB  
e)       10Gb/s Full Duplex, Auto-Negotiation off

Explanation:
a)       6 is the number of Region Servers. Followed by Manufacturer and Product Name
Any of the below Commands can be used in Linux to get specific details:
1.        To get Manufacturer and Product Name:
[root@illin2933 ~]# dmidecode | grep -A3 '^System Information'
System Information
        Manufacturer: Dell Inc.
        Product Name: PowerEdge R720
        Version: Not Specified
Note: Above command requires sudo access
2.       To get Model and vendor of the Device
$ cat /sys/class/block/sda/device/{model,vendor}
PERC H710P
DELL

3.       To get device model
$ awk '{ print FILENAME, $0 }' /sys/class/block/sd[a-z]/device/model
/sys/class/block/sda/device/model PERC H710P
/sys/class/block/sdb/device/model PERC H710P
/sys/class/block/sdc/device/model PERC H710P
/sys/class/block/sdd/device/model PERC H710P
/sys/class/block/sde/device/model PERC H710P
/sys/class/block/sdf/device/model PERC H710P

4.       To get type, size and model of the disks
$ lsblk -io KNAME,TYPE,SIZE,MODEL
KNAME TYPE   SIZE MODEL
loop0 loop   3.6G
sdb   disk 837.8G PERC H710P
dm-2  lvm    810G
sdc   disk 837.8G PERC H710P
dm-3  lvm    810G
sdd   disk 837.8G PERC H710P
dm-4  lvm    810G
sde   disk 837.8G PERC H710P
dm-5  lvm    810G
sdf   disk 837.8G PERC H710P
dm-6  lvm    810G
sdh   disk 837.8G PERC H710P

b)       This gives details of the CPU Info.
Details are obtained using:

$ cat /proc/cpuinfo

Example output:
processor       : 39
vendor_id       : GenuineIntel
cpu family      : 6
model           : 62
model name      : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
stepping        : 4
cpu MHz         : 2800.063
cache size      : 25600 KB
physical id     : 1
siblings        : 20
core id         : 12
cpu cores       : 10
apicid          : 57
initial apicid  : 57
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips        : 5598.78
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

We capture only  : 2 x E5-2680 V2 2.8GHz 10-core, HT=ON
2 is Number of Physical CPUs. From above command it is obtained in physical id (0 and 1).
Followed by Model name and CPU cores.
Since we have CPU cores = 10 x 2 Physical CPU = 20 CPUs but processor shows 40 due to Hyper threading  enabled. So HT = ON

More info can be found:


c)       RAM on the machine
$ cat /proc/meminfo
MemTotal:       198179544 kB
MemFree:        53268644 kB
Buffers:         3398204 kB
Cached:         102307104 kB
SwapCached:            0 kB
Active:         44405388 kB
Inactive:       96615136 kB
Active(anon):   30908168 kB

We capture only  : MemTotal ~ 19GB

d)       Hard Disk details:
13 x PERC 900GB 15K 6Gbps SAS 2.5" SFF HS HDD , Total storage ~12 TB
13 is the number of disks used.
PERC (PowerEdge RAID Controller (PERC)) is the model with 900GB size. Which can be obtained from command in a)

From Dell website we can get details on the Interface support etc as below.
Model
Interface Support
PCI Support
SAS Connectors
Cache Memory Size
Write Back Cache
RAID Levels
Max Drive Support
RAID Support
PERC H710P Adapter
6Gb/s SAS
PCI-Express 2.0
2x4 Internal
1GB NV
Flash Backed Cache
0,1,5,6,10,50,60
32
Hardware RAID

RAID Hardware Info can be obtained as below:
# lspci -vv | grep -i raid
02:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt] (rev 05)
        Kernel driver in use: megaraid_sas
        Kernel modules: megaraid_sas

e)       Network Specifications:  10Gb/s Full Duplex, Auto-Negotiation off

Command used to capture the above:

# dmesg |grep em1
udev: renamed network interface eth0 to em1
bnx2x 0000:01:00.0: em1: using MSI-X  IRQs: sp 124  fp[0] 126 ... fp[7] 133
bnx2x 0000:01:00.0: em1: Warning: Unqualified SFP+ module detected, Port 0 from CISCO-MOLEX      part number 74752-9521
bnx2x 0000:01:00.0: em1: NIC Link is Up, 10000 Mbps full duplex, Flow control: ON - receive & transmit


# ethtool em1
Settings for em1:
        Supported ports: [ FIBRE ]
        Supported link modes:   1000baseT/Full
                                10000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: No
        Advertised link modes:  10000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 10000Mb/s
        Duplex: Full
        Port: Direct Attach Copper
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x00000000 (0)

        Link detected: yes

Comments

Popular posts from this blog

Steps to Analyze AWR Report in Oracle

Vmstat Output explained

Verifications and Error Handling in LoadRunner *Web_reg_find and Web_reg_save_param*