{"id":27403755,"url":"https://github.com/pmav99/pmon","last_synced_at":"2025-07-21T16:32:35.821Z","repository":{"id":57453755,"uuid":"321471314","full_name":"pmav99/pmon","owner":"pmav99","description":"A Process monitor for linux that shows detailed RAM usage information","archived":false,"fork":false,"pushed_at":"2020-12-15T10:40:23.000Z","size":27,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-05T23:37:12.125Z","etag":null,"topics":["cli","linux","monitor","process","process-monitor","ram","typer"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmav99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-14T20:58:48.000Z","updated_at":"2024-12-20T15:29:12.000Z","dependencies_parsed_at":"2022-08-29T06:51:43.503Z","dependency_job_id":null,"html_url":"https://github.com/pmav99/pmon","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pmav99/pmon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmav99%2Fpmon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmav99%2Fpmon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmav99%2Fpmon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmav99%2Fpmon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmav99","download_url":"https://codeload.github.com/pmav99/pmon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmav99%2Fpmon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266334185,"owners_count":23912908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","linux","monitor","process","process-monitor","ram","typer"],"created_at":"2025-04-14T04:55:17.922Z","updated_at":"2025-07-21T16:32:35.793Z","avatar_url":"https://github.com/pmav99.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## pmon\n\nA process monitor for linux that shows detailed RAM usage info.\n\n``` bash\n$ pmon 261071\nvms       rss       pss       uss       shared    swap      rss (%)   pss (%)   uss (%)   cpu (%)\n2.576G    1.122G    1.110G    1.107G    99.699M   0B        7.22      7.14      7.12      0.00\n2.576G    1.122G    1.110G    1.107G    99.699M   0B        7.22      7.14      7.12      12.23\n2.576G    1.122G    1.110G    1.107G    99.699M   0B        7.22      7.14      7.12      6.48\n```\n\n### Rationale\n\nMeasuring RAM usage on Linux can be\n[tricky](https://web.archive.org/web/20120520221529/http://emilics.com/blog/article/mconsumption.html).\nProbably the most correct way to measure it is to use\n[`USS`](https://gmpy.dev/blog/2016/real-process-memory-and-environ-in-python), i.e:\n\n\u003e USS (Unique Set Size) is the memory which is unique to a process and which would be freed if the\n\u003e process was terminated right now.\n\nUnfortunately, tools like `top` and `htop` do not report this metric. Nevertheless,\n[psutil](https://github.com/giampaolo/psutil) does collect it, so, we use it as the backend to monitor\nRAM usage.\n\n### Install\n\n``` bash\npipx install pmon\n```\n\n### Usage\n\nIf you only care about `USS` then you can use:\n\n``` bash\n$ pmon --ram short 261071\nuss       uss (%)   cpu (%)\n1.107G    7.12      0.00\n1.107G    7.12      0.00\n1.107G    7.12      0.00\n```\n\nIf you want the full output use:\n\n``` bash\n$ pmon --ram verbose 261071\nvms       rss       pss       uss       shared    text      lib       data      dirty     swap      rss (%)   pss (%)   uss (%)   cpu (%)\n2.576G    1.122G    1.110G    1.107G    99.699M   4.000K    0B        1.566G    0B        0B        7.22      7.14      7.12      0.00\n2.576G    1.122G    1.110G    1.107G    99.699M   4.000K    0B        1.566G    0B        0B        7.22      7.14      7.12      0.00\n```\n\nThere are other options which you can explore with:\n\n``` bash\npmon --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmav99%2Fpmon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmav99%2Fpmon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmav99%2Fpmon/lists"}