diff options
Diffstat (limited to 'docs/content/usage/widgets/memory.md')
-rw-r--r-- | docs/content/usage/widgets/memory.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/content/usage/widgets/memory.md b/docs/content/usage/widgets/memory.md index f92f18a8..f25dbe36 100644 --- a/docs/content/usage/widgets/memory.md +++ b/docs/content/usage/widgets/memory.md @@ -28,3 +28,13 @@ Note that key bindings are generally case-sensitive. | Binding | Action | | ------------ | -------------------------------------------------------------- | | ++"Scroll"++ | Scrolling up or down zooms in or out of the graph respectively | + +## Calculations + +Memory usage is calculated using the following formula based on values from `/proc/meminfo` (based on [htop's implementation](https://github.com/htop-dev/htop/blob/976c6123f41492aaf613b9d172eef1842fb7b0a3/linux/LinuxProcessList.c#L1584)): + +``` +MemTotal - MemFree - Buffers - (Cached + SReclaimable - Shmem) +``` + +You can find more info on `/proc/meminfo` and its fields [here](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/s2-proc-meminfo). |