Permalink
Browse files

From Yves D'Astous: Some more memory should be marked as cached

The SReclaimable is cache in the kernel not account in the "Buffers or Cached" parameters even if this memory is used for cache and can be return to the system if needed.
  • Loading branch information...
justintime committed Jun 19, 2012
1 parent 90710c8 commit e3b162e6bb0cd7c6601933eeb0185f02d109739e
Showing with 1 addition and 1 deletion.
  1. +1 −1 check_mem/check_mem.pl
View
@@ -143,7 +143,7 @@ sub get_memory_info {
$total_memory_kb = $2;
}
}
- elsif (/^(Buffers|Cached):\s+(\d+) kB/) {
+ elsif (/^(Buffers|Cached|SReclaimable):\s+(\d+) kB/) {
$caches_kb += $2;
}
}

0 comments on commit e3b162e

Please sign in to comment.