2 ms·
Is there a way to enable such an option for an entire process, in the same way as e.g. ionice(1)? Whenever I take a backup of my computer it winds up swapping
by wolfgang42 7y ago
Is there a way to enable such an option for an entire process, in the same way as e.g. ionice(1)?
Whenever I take a backup of my computer it winds up swapping everything else out to disk. Normally I'm perfectly happy letting unused pages get evicted in favor of more cache, but for this specific program this behavior is very much not ideal. I'm asking here since I've done some searching in the past and not found anything, but I'm not sure if I was using the right keywords.
- wolfgang42 7y agoFollow-up, for people who encounter this thread in the future: I did some more hunting and found `nocache` (https://github.com/Feh/nocache https://github.com/Feh/nocache , though I installed it via the Ubuntu repositories) which does this by intercepting the open() system call and calling fadvise() immediately afterwards.