No project description provided
Project description
pcvis
Simple scripts for visualizing page cache of a given file
prerequisites
- install
pcstat
(Page Cache stat: get page cache stats for files, https://github.com/tobert/pcstat)- it has both Linux and macOS binaries since v0.0.1
installation
- Copy the
pcvis/pcvis.py
from this repo - Move
pcvis.py
into your$PATH
(e.g./usr/local/bin
)
mv pcvis.py /usr/local/bin/pcvis
chmod +x /usr/local/bin/pcvis
usage
Visualize a given file's page cache status like below. In the visualized image, the white dots indicate the part of the file that is in the page cache.
pcstat -json -pps /path/to/my_file | pcvis
notes
Before running the above command for visualization, you need to clean page cache so that the above result is accurate
# for linux
sync; echo 1 > /proc/sys/vm/drop_caches
# for macOS
sudo purge
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pcvis-0.1.0.tar.gz
(6.3 kB
view details)
Built Distribution
pcvis-0.1.0-py3-none-any.whl
(6.7 kB
view details)
File details
Details for the file pcvis-0.1.0.tar.gz
.
File metadata
- Download URL: pcvis-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6419807decf8e1dab2afdd7a4b0943830c6b43785070250ad87f1131a790e04 |
|
MD5 | e41fb751b4e4b9706815b23e1e9d9799 |
|
BLAKE2b-256 | 801d502f041eea34327aadeec7021e8c7dc4cf210fee64ee993b14f53101f5be |
File details
Details for the file pcvis-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pcvis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fd1affa8c8e3c59ca0bc026ccf1a7afc04fcf8de853bf4c41d06f572fef4541 |
|
MD5 | a42e57981ab62ff4f6c3c1543e330f7f |
|
BLAKE2b-256 | b5a6cd9cb223522aa8b7733c6528f0b2772f1fbf54aa84875b984b015b03bf0a |