This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rationale: | |
igbinary does an excellent job at creating compact serialized data as opposed to | |
PHP's serializer. It's already used for serializing data stored in memcached, | |
Drupal's form cache can get notoriously large, can igbinary help? | |
https://github.com/igbinary/igbinary | |
Experimentation: | |
Drupal database cache implementation using igbinary_(un)serialize(). In my initial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh - | |
ENABLED=$(cat /sys/module/zswap/parameters/enabled) | |
COMPRESSOR=$(cat /sys/module/zswap/parameters/compressor) | |
ZPOOL=$(cat /sys/module/zswap/parameters/zpool) | |
PAGE_SIZE=$(getconf PAGE_SIZE) | |
STORED_PAGES=$(cat /sys/kernel/debug/zswap/stored_pages) | |
POOL_TOTAL_SIZE=$(cat /sys/kernel/debug/zswap/pool_total_size) | |
POOL_SIZE=$(numfmt --to=iec-i $POOL_TOTAL_SIZE) |