Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tortay/cache-toys

Simple tools for checking (& influencing) the filesystem cache content on POSIX systems
https://github.com/tortay/cache-toys

Last synced: 2 months ago
JSON representation

Simple tools for checking (& influencing) the filesystem cache content on POSIX systems

Awesome Lists containing this project

README

        

Cache-toys
==========

## Simple tools for checking & influencing filesystem cache content on POSIX systems

While the pagecache tools have historically been developped & tested on some other systems, they are now mostly used/tested on Linux.

### drop-from-pagecache
Asks the system to remove files content from the pagecache using `posix_fadvise()`.

### prefetch-to-pagecache
Asks the system to prefetch files content to the pagecache using `posix_fadvise()`.

### is-in-pagecache
Check if some part of the content of files are in the pagecache (using `mincore()`).

### slices-in-pagecache
Display which parts of the content of files (if any) are in the pagecache (using `mincore()`).

### hrr
Simple random reader program with optional hints to the pagecache.
Both POSIX (`posix_fadvise()`) and Linux specific (`readahead()`) hints are supported.