Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!