{ "info": { "author": "P\u00e1draig Brady", "author_email": "P@draigBrady.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)", "Programming Language :: Python", "Topic :: System :: Systems Administration", "Topic :: Utilities" ], "description": "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```\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```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/pixelb/ps_mem", "keywords": "memory RAM profile program linux", "license": "LGPLv2", "maintainer": "", "maintainer_email": "", "name": "ps_mem", "package_url": "https://pypi.org/project/ps_mem/", "platform": "", "project_url": "https://pypi.org/project/ps_mem/", "project_urls": { "Homepage": "http://github.com/pixelb/ps_mem" }, "release_url": "https://pypi.org/project/ps_mem/3.12/", "requires_dist": null, "requires_python": "", "summary": "A utility to report core memory usage per program", "version": "3.12" }, "last_serial": 3900710, "releases": { "3.12": [ { "comment_text": "", "digests": { "md5": "e9e9e42ecb532e81cf7d54ef21b7cb57", "sha256": "34df9dc7e7b8eed6f6554cbca8c030fe723f3b3a5ffc4cd6f669852320c6c9ec" }, "downloads": -1, "filename": "ps_mem-3.12.tar.gz", "has_sig": false, "md5_digest": "e9e9e42ecb532e81cf7d54ef21b7cb57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18561, "upload_time": "2018-05-26T03:51:46", "url": "https://files.pythonhosted.org/packages/46/81/ff8429735e2eb13be225dcfabef16d90bfa96b559e3f2643935d33b67697/ps_mem-3.12.tar.gz" } ], "3.6": [ { "comment_text": "", "digests": { "md5": "99ea2c3541c419e3d8881ee62e030af1", "sha256": "2ef813d0dd8469999f81af86a36cde12afae78aff8f51c2cb7ae11970d1316a6" }, "downloads": -1, "filename": "ps_mem-3.6.tar.gz", "has_sig": false, "md5_digest": "99ea2c3541c419e3d8881ee62e030af1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17520, "upload_time": "2015-10-16T13:45:43", "url": "https://files.pythonhosted.org/packages/3a/76/c6a59783eb2cc198c7f26747798ef11f24ad315badf90ce325e1066d0c92/ps_mem-3.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e9e9e42ecb532e81cf7d54ef21b7cb57", "sha256": "34df9dc7e7b8eed6f6554cbca8c030fe723f3b3a5ffc4cd6f669852320c6c9ec" }, "downloads": -1, "filename": "ps_mem-3.12.tar.gz", "has_sig": false, "md5_digest": "e9e9e42ecb532e81cf7d54ef21b7cb57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18561, "upload_time": "2018-05-26T03:51:46", "url": "https://files.pythonhosted.org/packages/46/81/ff8429735e2eb13be225dcfabef16d90bfa96b559e3f2643935d33b67697/ps_mem-3.12.tar.gz" } ] }