All Projects → pixelb → Ps_mem

pixelb / Ps_mem

Licence: lgpl-2.1
A utility to accurately report the in core memory usage for a program

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ps mem

libmem
Advanced Game Hacking Library for C/C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External)
Stars: ✭ 336 (-71.01%)
Mutual labels:  memory, process
Ipc
Public domain single header inter process communication primitives
Stars: ✭ 85 (-92.67%)
Mutual labels:  memory, process
Python Haystack
Process heap analysis framework - Windows/Linux - record type inference and forensics
Stars: ✭ 89 (-92.32%)
Mutual labels:  memory, process
doc
Get usage and health data about your Node.js process.
Stars: ✭ 17 (-98.53%)
Mutual labels:  memory, process
moneta
Moneta is a live usermode memory analysis tool for Windows with the capability to detect malware IOCs
Stars: ✭ 384 (-66.87%)
Mutual labels:  memory, process
Sympact
🔥 Stupid Simple CPU/MEM "Profiler" for your JS code.
Stars: ✭ 439 (-62.12%)
Mutual labels:  memory, process
DLL-Injector
Inject and detour DLLs and program functions both managed and unmanaged in other programs, written (almost) purely in C#. [Not maintained].
Stars: ✭ 29 (-97.5%)
Mutual labels:  memory, process
Heim
Cross-platform async library for system information fetching 🦀
Stars: ✭ 572 (-50.65%)
Mutual labels:  memory, process
Spm
A process manager similar to systemd and foreman with stop feature, written in Go.
Stars: ✭ 44 (-96.2%)
Mutual labels:  process
Mongomem
In-memory MongoDB Server. Ideal for testing.
Stars: ✭ 51 (-95.6%)
Mutual labels:  memory
Fram mb85rc i2c
Arduino library for I2C FRAM - Fujitsu MB85RC & Cypress FM24, CY15B
Stars: ✭ 41 (-96.46%)
Mutual labels:  memory
Scripting
PS / Bash / Python / Other scripts For FUN!
Stars: ✭ 47 (-95.94%)
Mutual labels:  memory
Node Process List
Cross-platform native method to receive the list of the launched processes
Stars: ✭ 51 (-95.6%)
Mutual labels:  process
Minject
Mono Framework Interaction / Injection Library for .NET (C++/CLI)
Stars: ✭ 42 (-96.38%)
Mutual labels:  memory
Dll hook Rs
Rust code to show how hooking in rust with a dll works.
Stars: ✭ 57 (-95.08%)
Mutual labels:  memory
Sst Elements
SST Architectural Simulation Components and Libraries
Stars: ✭ 36 (-96.89%)
Mutual labels:  memory
Anothermonitor
Monitors and records the CPU and memory usage of Android devices
Stars: ✭ 981 (-15.36%)
Mutual labels:  memory
Memreduct
Lightweight real-time memory management application to monitor and clean system memory on your computer.
Stars: ✭ 1,101 (-5%)
Mutual labels:  memory
Rainbarf
it's like Rainmeter, but for CLI!
Stars: ✭ 1,087 (-6.21%)
Mutual labels:  memory
Observer cli
Visualize Erlang/Elixir Nodes On The Command Line
Stars: ✭ 1,058 (-8.71%)
Mutual labels:  memory

ps_mem

A utility to accurately report the core memory usage for a program

Yes the name is a bit weird. coremem would be more appropriate, but for backwards compatible reasons the ps_mem name remains.

Install:

pip install ps_mem is supported, or rpm and deb packages are available for most distros. Also the ps_mem.py script can be run directly.

Usage:

ps_mem [-h|--help] [-p PID,...] [-s|--split-args] [-t|--total] [-w N]
       [-d|--discriminate-by-pid] [-S|--swap]

Example output:

 Private  +   Shared  =  RAM used       Program

 34.6 MiB +   1.0 MiB =  35.7 MiB       gnome-terminal
139.8 MiB +   2.3 MiB = 142.1 MiB       firefox
291.8 MiB +   2.5 MiB = 294.3 MiB       gnome-shell
272.2 MiB +  43.9 MiB = 316.1 MiB       chrome (12)
913.9 MiB +   3.2 MiB = 917.1 MiB       thunderbird
---------------------------------
                          1.9 GiB
=================================

The [-p PID,...] option allows filtering the results. For example to restrict output to the current $USER you could:

sudo ps_mem -p $(pgrep -d, -u $USER)

or to summarize the total RAM usage per user you could:

for i in $(ps -e -o user= | sort | uniq); do
  printf '%-20s%10s\n' $i $(sudo ps_mem --total -p $(pgrep -d, -u $i))
done
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].