Memory Utilization in Summit Switch

  • 0
  • 2
  • Question
  • Updated 2 years ago
  • Answered
how to calculate memory utilization in summit switch?
Photo of svven

svven

  • 180 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 2
Photo of Grosjean, Stephane

Grosjean, Stephane, Employee

  • 12,552 Points 10k badge 2x thumb
Hi,


show memory is one way to find that info.
Photo of svven

svven

  • 180 Points 100 badge 2x thumb
show memory

System Memory Information
-------------------------
 Slot-2    Total DRAM (KB): 262144
 Slot-2    System     (KB): 7488
 Slot-2    User       (KB): 176048
 Slot-2    Free       (KB): 78608
 
in this i can see only the fixed memory, how to calculate the real time memory utilization?
Photo of Prashanth KG

Prashanth KG, Employee

  • 5,300 Points 5k badge 2x thumb
Hi Svven,

you could use the command "top" and press to sort all the processes by memory utilization.

Sample output:

Mem: 390440K used, 593748K free, 0K shrd, 2908K buff, 156776K cached
CPU:  0.0% usr  2.6% sys  0.0% nic 97.1% idle  0.0% io  0.1% irq  0.0% sirq
Load average: 7.02 7.05 7.00 3/195 1909
  PID  PPID USER     STAT   RSS %MEM CPU %CPU COMMAND
1508     1 root     S <  15236  1.5   0  0.5 ./hal
1512     1 root     S    11420  1.1   0  0.0 ./cliMaster
1669     1 root     S     7472  0.7   0  0.0 ./policy
1522     1 root     S     7396  0.7   1  0.0 ./aaa -t random
1602     1 root     S     5100  0.5   1  0.0 ./netTools
1633     1 root     S     4652  0.4   1  0.0 ./xmld
1520     1 root     S     4508  0.4   1  0.0 ./snmpSubagent
Process hal consumes 1.5% which can be used to calculate the approximate memory consumption of the process.

 sh memory process hal
System Memory Information
-------------------------
Total DRAM (KB): 1048576
System     (KB): 64388
User       (KB): 237196
Free       (KB): 746992

Memory Utilization Statistics
-----------------------------
 Process Name     Memory (KB)
-----------------------------
hal              15236

15236 is 1.5% of 1048576.
Hope this helps!
(Edited)
Photo of svven

svven

  • 180 Points 100 badge 2x thumb
Thanks Prasanth.

The Total utilization of my switch is 82.98%. Is this a normal utlization for summit x450a-48t ?