HomeFreeBSD

linprocfs(4): Fixup process size in the /proc/pid/stat file

Description

linprocfs(4): Fixup process size in the /proc/pid/stat file

According to the Linux sources the kernel exposes a proces virtual
memory size via proc filesystem into the three files - stat, status
and statm. This is the struct mm->total_vm value adjusted to the
corresponding units - bytes, kilobytes and pages.

The fix is based on a fernape@ analysis.

PR: 265937
Reported by: Ray Bellis
MFC after: 3 days

Details

Provenance
dchaginAuthored on Feb 26 2023, 1:42 PM
Parents
rG6dbfbe6e11a0: route.8: Fix mandoc warnings
Branches
Unknown
Tags
Unknown