Solução alternativa implementada: link
Espelhado aqui:
#!/bin/bash
# vmtouchpoll: Keep some files locked in memory (including new files, dropping deleted files)
# Usage: vmtouchpoll '/path/to/some/files/*.idx'
# Works by periodically restarting vmtouch with a new set of files
# Implemented by Vitaly "_Vi" Shukela in 2015, License=MIT
F=($(eval echo $1))
vmtouch -L -m 2G "${F[@]}"&
P1=$!
P2=0
disown
trap 'kill $P1; [[ $P2 -gt 0 ]] && kill $P2' EXIT
while true; do
sleep 55;
F=($(eval echo $1))
vmtouch -q -L -m 2G "${F[@]}"&
P2=$!
disown
sleep 5;
kill $P1
P1=$P2
P2=0
done