Added about nmon + memory usage inside container.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 04 Jan 2020 18:14:34 +0200
changeset 2400 bdff41e50608
parent 2399 ed213cf36a1c
child 2401 7f6cf1952337
Added about nmon + memory usage inside container.
stat.rst
--- a/stat.rst	Tue Dec 31 18:00:00 2019 +0200
+++ b/stat.rst	Sat Jan 04 18:14:34 2020 +0200
@@ -1,16 +1,16 @@
 .. -*- coding: utf-8; -*-
 
-=========================
- OS resource statistics.
-=========================
+========================
+ OS resource statistics
+========================
 .. contents::
    :local:
 
-Process list.
-=============
+Process list
+============
 
-Linux.
-------
+Linux
+-----
 
 View current user process::
 
@@ -118,15 +118,16 @@
 
   $ runas /u: TODO XXX
 
-CPU consumption.
-================
+CPU consumption
+===============
 
-Linux interactive.
-------------------
+Linux interactive
+-----------------
 ::
 
   $ top
   $ dstat
+  $ nmon
 
 Try press 's' (strace), 'l' (lsof), 'F5' (tree view) in::
 
@@ -135,8 +136,8 @@
 http://htop.sourceforge.net/
   Home page.
 
-Linux static.
--------------
+Linux static
+------------
 
 Number of cores::
 
@@ -156,20 +157,20 @@
 
   $ pidstat -w
 
-FreeBSD interactive.
---------------------
+FreeBSD interactive
+-------------------
 ::
 
   $ top
 
-Windows.
---------
+Windows
+-------
 ::
 
   cmd> taskmgr
 
-Solaris.
---------
+Solaris
+-------
 
 Interactive::
 
@@ -184,18 +185,19 @@
 http://developers.sun.com/solaris/articles/prstat.html
   Topping top in Solaris 8 with prstat.
 
-Memory consumption.
-===================
+Memory consumption
+==================
 
-Linux interactive.
-------------------
+Linux interactive
+-----------------
 ::
 
   $ top
   $ dstat
+  $ nmon
 
-Linux static.
--------------
+Linux static
+------------
 
 Vitual and resident memory size per process::
 
@@ -224,6 +226,11 @@
   $ sudo cat /proc/slabinfo
   $ sudo slabtop
 
+Memory limits inside container::
+
+  cat /sys/fs/cgroup/memory/memory.limit_in_bytes
+  cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes
+
 Shared memory segments::
 
   $ ipcs -m -p