Tag Info

New answers tagged

0

Implemented workaround: https://gist.github.com/vi/77717d7076618af92344 Mirrored here: #!/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, ...


5

It shouldn't be possible. swapon system call requires readpage and bmap (indirectly) calls being implemented by filesystem: http://lxr.free-electrons.com/source/mm/swapfile.c?v=4.0#L2412 if (!mapping->a_ops->readpage) { error = -EINVAL; goto bad_swap; } But none of them are implemented by tmpfs, such an entry is missing from ...


1

From this Q&A http://superuser.com/questions/539287/swapon-failed-invalid-argument-on-a-linux-system-with-btrfs-filesystem (the original referenced site is not responding): So "Invalid argument" should be read as "Your filesystem do not support swap file" The incompatibility reason I suspect is a "circular dependency". From this article: ...


0

df --output=target /tmp Also check df manpage for other field names apart from the "target".



Top 50 recent answers are included