# pixelb/ps_mem

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

Repository: https://github.com/pixelb/ps_mem
Canonical: https://ross.abutalabs.com/products/ps_mem
Language: Python
License: LGPL-2.1
License Family: copyleft
Topics: ram, memory, process, usage, shared
Last push: 2022-10-19T01:37:40+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4744, "days_push": 1415, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1637, forks 285 (observed 2026-08-28T04:05:14.834162+00:00)

## What it is
ps_mem is a Python CLI utility that accurately reports the in-core (RAM) memory usage of running programs, separating private and shared memory per process. It aggregates usage per program and can filter by PID or summarize totals.

## Use cases
- report how much RAM each program is using
- find which processes consume the most memory on a Linux server
- show private vs shared memory per process
- summarize total memory usage per user
- check memory usage of a specific PID
- monitor swap usage of running programs

## When to choose
- you need accurate per-program RAM accounting including shared memory on Linux
- you want a quick CLI snapshot of memory usage without installing heavy monitoring stacks
- you need per-user or per-PID memory breakdowns from the command line

## When to avoid
- you need continuous time-series memory monitoring or alerting
- you are on a non-Linux platform, as it relies on Linux /proc semantics
- you need GUI-based system monitoring dashboards

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: monitoring, developer-tools
- domain: performance, operating-systems
- platform: python, cli
- tags: memory-usage, ram-reporting, process-monitoring, shared-memory, command-line, linux

## Member repositories
- pixelb/ps_mem (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:14.834162+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:46:44.264796+00:00, confidence not recorded.
  - readme: https://github.com/pixelb/ps_mem (fetched 2026-08-28T04:05:14.834162+00:00, sha 81820ee423e5)
  - registry_pypi: https://pypi.org/pypi/ps_mem/json (fetched 2026-08-29T11:19:54.653628+00:00, sha 11cacbd66315)
- Data as of 2026-08-30T08:39:29.467469+00:00.
