{"id":20622331,"url":"https://github.com/smoeding/uncache","last_synced_at":"2026-05-15T21:06:58.852Z","repository":{"id":151615644,"uuid":"390998513","full_name":"smoeding/uncache","owner":"smoeding","description":"Remove blocks of a list of files from the pagecache in Linux","archived":false,"fork":false,"pushed_at":"2022-12-09T15:12:33.000Z","size":202,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T23:25:35.377Z","etag":null,"topics":["linux","pagecache"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smoeding.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-30T08:58:47.000Z","updated_at":"2022-06-11T11:18:30.000Z","dependencies_parsed_at":"2023-05-25T00:00:16.000Z","dependency_job_id":null,"html_url":"https://github.com/smoeding/uncache","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/smoeding/uncache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Funcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Funcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Funcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Funcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smoeding","download_url":"https://codeload.github.com/smoeding/uncache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoeding%2Funcache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271102995,"owners_count":24699638,"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-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["linux","pagecache"],"created_at":"2024-11-16T12:22:18.797Z","updated_at":"2026-05-15T21:06:53.821Z","avatar_url":"https://github.com/smoeding.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uncache\n\n``` text\nNAME\n       uncache - remove cached files from the pagecache\n\nSYNOPSIS\n       uncache [-0|--null] [-n|--dry-run] [-v|--verbose]\n\nDESCRIPTION\n       uncache  reads  a list of files from standard input and tries to remove\n       all cached blocks of these files from the  pagecache.   Files  must  be\n       given as absolute file names.  Only regular files will be processed.\n\n       Every  file  will be memory mapped in order to drop the blocks from the\n       pagecache.  Therefore unreadable files will be ignored silently.\n\n       The uncache program only drops cached blocks for the named files.  This\n       is  in  contrast to the /proc/sys/vm/drop_caches sysctl which will drop\n       the cached blocks for all files.\n\nOPTIONS\n       -0, --null\n              Files read from standard input are terminated by a null  charac-\n              ter  instead  of  by  whitespace.  Useful when input items might\n              contain white space, quote marks, or backslashes.  The GNU  find\n              -print0 option produces input suitable for this mode.\n\n       -n, --dry-run\n              Do not actually do anything.  Can be used together with the ver-\n              bose option to check which files are currently in the pagecache.\n\n       -v, --verbose\n              Verbose  mode.   The  file  name of every file that actually has\n              cached blocks will be printed to standard output  together  with\n              the number of cached blocks.\n\nFILES\n       /proc/sys/vm/drop_caches\n\nBUGS\n       The  program  uses  posix_fadvise(2) to notify the kernel that the file\n       data will not be accessed in the near future.  This is only  an  advice\n       and the kernel may or may not purge blocks from the pagecache.\n\nEXAMPLES\n       find /var/lib/mysql -type f | uncache --dry-run --verbose\n              Show  which  MySQL data files are currently in the pagecache but\n              do not purge the cached blocks.\n\n       find /var/log -type f | uncache\n              Remove cached blocks for all files below the /var/log  directory\n              from the pagecache.\n\n       find /var/log -type f -print0 | uncache -0\n              The  same  as  before  but use zero terminated strings to handle\n              unusual file names.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoeding%2Funcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmoeding%2Funcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoeding%2Funcache/lists"}