{"id":13477428,"url":"https://github.com/pixelb/ps_mem","last_synced_at":"2025-05-14T13:05:47.507Z","repository":{"id":10472794,"uuid":"12648582","full_name":"pixelb/ps_mem","owner":"pixelb","description":"A utility to accurately report the in core memory usage for a program","archived":false,"fork":false,"pushed_at":"2022-10-19T01:37:40.000Z","size":114,"stargazers_count":1579,"open_issues_count":19,"forks_count":285,"subscribers_count":75,"default_branch":"master","last_synced_at":"2025-04-11T20:44:04.247Z","etag":null,"topics":["memory","process","ram","shared","usage"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pixelb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-06T16:15:41.000Z","updated_at":"2025-04-05T12:24:51.000Z","dependencies_parsed_at":"2022-08-16T15:40:11.429Z","dependency_job_id":null,"html_url":"https://github.com/pixelb/ps_mem","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelb%2Fps_mem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelb%2Fps_mem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelb%2Fps_mem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelb%2Fps_mem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixelb","download_url":"https://codeload.github.com/pixelb/ps_mem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149918,"owners_count":22022851,"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","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":["memory","process","ram","shared","usage"],"created_at":"2024-07-31T16:01:42.655Z","updated_at":"2025-05-14T13:05:47.478Z","avatar_url":"https://github.com/pixelb.png","language":"Python","readme":"ps_mem\n======\n\nA utility to accurately report the core memory usage for a program\n\nYes the name is a bit weird. coremem would be more appropriate,\nbut for backwards compatible reasons the ps_mem name remains.\n\nInstall:\n\n`pip install ps_mem` is supported, or rpm and deb packages\nare available for most distros.  Also the ps_mem.py script\ncan be run directly.\n\nUsage:\n\n```\nps_mem [-h|--help] [-p PID,...] [-s|--split-args] [-t|--total] [-w N]\n       [-d|--discriminate-by-pid] [-S|--swap]\n```\n\nExample output:\n\n```\n Private  +   Shared  =  RAM used       Program\n\n 34.6 MiB +   1.0 MiB =  35.7 MiB       gnome-terminal\n139.8 MiB +   2.3 MiB = 142.1 MiB       firefox\n291.8 MiB +   2.5 MiB = 294.3 MiB       gnome-shell\n272.2 MiB +  43.9 MiB = 316.1 MiB       chrome (12)\n913.9 MiB +   3.2 MiB = 917.1 MiB       thunderbird\n---------------------------------\n                          1.9 GiB\n=================================\n```\n\nThe [-p PID,...] option allows filtering the results.\nFor example to restrict output to the current $USER you could:\n\n```\nsudo ps_mem -p $(pgrep -d, -u $USER)\n```\n\nor to summarize the total RAM usage per user you could:\n\n```sh\nfor i in $(ps -e -o user= | sort | uniq); do\n  printf '%-20s%10s\\n' $i $(sudo ps_mem --total -p $(pgrep -d, -u $i))\ndone\n```\n","funding_links":[],"categories":["Python","Debugging \u0026 Profiling \u0026 Tracing"],"sub_categories":["For Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelb%2Fps_mem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelb%2Fps_mem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelb%2Fps_mem/lists"}