{ "info": { "author": "Chrysostomos Nanakos", "author_email": "chris@include.gr", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: POSIX :: Linux", "Topic :: Utilities" ], "description": "pgpagecache\n===========\n\npgpagecache is a Python script, showing PostgreSQL objects resident in memory.\nPostgreSQL relies on OS file system cache to keep performance high and it is\npretty common not to see gains in performance for buffer cache size over about\na specific limit.\nSince the OS buffer cache keeps file buffers in memory as well, there are\nlots of database objects in PostgreSQL cache, OS cache, or both. This is called\ndouble buffering.\n\nIf someone wants to examine the PostgreSQL cache, he/she can use the contrib\nmodule pg_buffercache to map each object with it's memory footprint in cache.\nBut, if one wanted to examine the entire cache picture, including OS cache,\nhe/she has to determine whether PostgreSQL object pages are resident in memory,\nfor this purpose one can use pgpagecache.\n\n\nRequired Extension\n------------------\n\nFor the PostgreSQL buffercache usage the pg_buffercache extension is needed.\nYou can install it from the contrib modules by simply executing the command\nbelow:\n\n::\n\n postgres=# CREATE EXTENSION pg_buffercache;\n CREATE EXTENSION\n\nExample\n-------\n\n::\n\n $ pgpagecache -u postgres -p apassword -d postgres -H localhost -P 5432 \\\n -b /var/lib/postgresql/9.3/main/base\n PageCache Usage\n ---------------\n\n DB Name Table Cached Pages Total Pages Ratio (%) Bytes\n --------- --------------------- -------------- ------------- ----------- -------\n postgres pgbench_accounts_pkey 552 552 100 2260992\n postgres pgbench_tellers 18 18 100 73728\n postgres pgbench_tellers_pkey 4 4 100 16384\n postgres pgbench_branches 12 12 100 49152\n postgres pgbench_branches_pkey 4 4 100 16384\n\n PostgreSQL BufferCache Usage\n -----------------------------\n\n DB Name Table Bytes\n --------- --------------------------------- ----------------\n postgres pgbench_accounts 1.38854e+07\n postgres pgbench_accounts_pkey 2.2528e+06\n postgres pgbench_history 188416\n postgres pg_statistic 122880\n postgres pg_operator 106496\n postgres pgbench_tellers 106496\n postgres pg_depend_reference_index 98304\n postgres pg_depend 81920\n postgres pgbench_branches 81920\n ...", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "PostgreSQL postgres pagecache linux cache buffercache buffer memory", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "pgpagecache", "package_url": "https://pypi.org/project/pgpagecache/", "platform": "posix", "project_url": "https://pypi.org/project/pgpagecache/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/pgpagecache/0.1/", "requires_dist": null, "requires_python": null, "summary": "PostgreSQL objects resident in OS memory", "version": "0.1" }, "last_serial": 1098899, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "54cdf058813a45249f82e32cdced2727", "sha256": "f1fc69b7ee95c1ce8ad676c1b492099b9d2430d954283b29bc607080864fc0df" }, "downloads": -1, "filename": "pgpagecache-0.1.tar.gz", "has_sig": false, "md5_digest": "54cdf058813a45249f82e32cdced2727", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17715, "upload_time": "2014-05-20T17:30:49", "url": "https://files.pythonhosted.org/packages/d7/94/274b82c8d735e70b9ba4eb060b7fdfbc780271a6bbf8dcf2ed6fd7a090ca/pgpagecache-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54cdf058813a45249f82e32cdced2727", "sha256": "f1fc69b7ee95c1ce8ad676c1b492099b9d2430d954283b29bc607080864fc0df" }, "downloads": -1, "filename": "pgpagecache-0.1.tar.gz", "has_sig": false, "md5_digest": "54cdf058813a45249f82e32cdced2727", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17715, "upload_time": "2014-05-20T17:30:49", "url": "https://files.pythonhosted.org/packages/d7/94/274b82c8d735e70b9ba4eb060b7fdfbc780271a6bbf8dcf2ed6fd7a090ca/pgpagecache-0.1.tar.gz" } ] }