Skip to content

linux: show M_PRIV instead of M_SHARE in default columns#1955

Open
ugolnikovE wants to merge 1 commit intohtop-dev:mainfrom
ugolnikovE:issue-492
Open

linux: show M_PRIV instead of M_SHARE in default columns#1955
ugolnikovE wants to merge 1 commit intohtop-dev:mainfrom
ugolnikovE:issue-492

Conversation

@ugolnikovE
Copy link
Copy Markdown

Replaces M_SHARE with M_PRIV in the default Linux Main screen columns, as suggested in #492. M_PRIV (RES - SHR) is a more actionable per-process memory metric than shared pages alone.

M_RESIDENT is kept as it remains the de-facto standard memory column across process viewers. M_SHARE is removed since it becomes redundant with M_PRIV. Users who want either column back can re-add them via the Setup screen (F2).

PCP also exposes M_PRIV but its defaults are left unchanged to keep this PR focused on Linux; happy to extend in a follow-up if desired.

Also documents M_PRIV in the man page.

Tested on Debian aarch64 with a fresh config: PRIV column appears in place of SHR, sorting works, config saves and reloads cleanly.

Closes #492

Replace M_SHARE (SHR) with M_PRIV (PRIV) in the default Main screen
columns on Linux. M_PRIV shows the process's private memory
(RES - SHR), which is a more actionable metric for understanding
per-process memory cost than the shared pages size alone.

Also document M_PRIV in the man page.

Closes htop-dev#492
Signed-off-by: Evgeny Ugolnikov <evgeny.ugolnik@gmail.com>
@fasterit fasterit added the default change Changes a default setting or default UI object label Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

default change Changes a default setting or default UI object

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add column with showing per-process unique memory usage value (calculate RES - SHR)

2 participants