• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

cpu

Top Shift i

January 8, 2021

When you run top on Linux with multiple processors, you can have processes with percentages higher than 100%. On a 4 core system, you can have a process that can run as high as 400%. To view it differently, press “shift i” while top is running. This will toggle the Irix mode to off. Pressing it again will turn it on. When the Irix mode is off, it will only show percentages divided by a total number of CPUs. This way, you get a true percentage of a process in a multiple core system.

Pressing 1 interestingly shows the breakdown of all CPUs.

Filed Under: Linux Tagged With: cpu, Irix, mode, percentage, top

VM Stats

January 13, 2020

To check VM stats, use the following commands.

To see used and unused memory, swap space.

free

free

To see RAM details.

sudo dmidecode -t 17

sudo dmidecode -t 17

To see number of processors.

nproc

nproc

To see CPU details.

lscpu

lscpu

Filed Under: Cloud, Linux Tagged With: cpu, free, gcp, memory, processors, stats, swap

  • Home
  • About
  • Archives

Copyright © 2023