Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

134
Vistas
understand sysstat sar memory output

I'm preparing for more traffic in the days to come, and I want to be sure server can handle it.

Running sar -q, the load of "3.5" doesn't seem much on 32 CPU architecture:

CPU SAR OUTPUT

However, I'm not sure about the memory.

Running sar -r shows 98.5% for the %memused and only 13.60 for %commit:

MEMORY SAR OUTPUT

running htop seems OK too: 14.9G/126G. Does this means only 14.9 Gigs are in use by the apps, out of the 126 available?

enter image description here

I'm more interested by the sar -r output.

%memused looks 98.5% and %commit is only 13.6% I wonder what it means.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You see, linux will try to cache disk blocks read or written in memory when the memory is not in use. This is what you see reported by sar in columns kbcached and kbbuffers. When a new request comes in and requires memory, it is granted from this cache or from the free list.

kbmemused = memory consumed by running processes + cache + buffers

To find out the actual memory used by your application, you should subtract kbbuffers and kbcached from kbmemused.

Monitoring %commit makes more sense which is the actual memory used by current running processes. In your case this number approximately matches with the output of htop.

Another way to check actual free memory is by using command free -m. free reports the same stats as sar.

To summarize

  • memused 98.5% shows you the memory utilised by your application + cache and buffers used to kernel to speed up disk access.
  • commit 13.6% is the actual memory committed by the kernel to you application processes.
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda