| Summary: | Please add the actual allocated memory of a process as a potential choice of a column for the process monitor | ||
|---|---|---|---|
| Product: | [Applications] plasma-systemmonitor | Reporter: | Ellie <el> |
| Component: | general | Assignee: | KSysGuard Developers <ksysguard-bugs> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | wishlist | CC: | ahiemstra, kde, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.2 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Ellie
2025-07-14 02:12:31 UTC
The problem is that I don't think there is a per-process equivalent to `Committed_AS`. Per-process stats are read from files in `/proc/$PID` which do not have the same format as `/proc/meminfo`. For memory specifically, we combine data from `/proc/$PID/stat`, `/proc/$PID/statm` and `/proc/$PID/smaps_rollup`. Neither of those files has anything relating to "committed". Without a per-process value provided by the kernel we can't really do a lot. Closing as per #1 I was once suggested /proc/$PID/smaps might something useful here, but I have to admit I'm not an expert. Apparently this is what the common smem tool uses. It seems to list mappings which perhaps could correspond to committed memory ranges? Not that I would know how exactly this works. Here is some more information: https://unix.stackexchange.com/questions/797974/how-to-find-out-a-processs-proportional-use-of-system-wide-committed-as-memory An approximate value that doesn't take sharing into account seems to be VmSize, and a proportional one seems to be to go through /proc/*/smem and add up all the ranges for a single process, but then for the shared mapping, divide them by the number of other processes also using them. Nevermind, I just found VmSize is probably a way too high number and not the correct one. My apologies for the noise. Will update with another comment once I found out what the correct data source is. ๐๐งน โ ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone! ๐๐งน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME. |