Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
genewitch
28 days ago
|
parent
|
context
|
favorite
| on:
Running out of disk space in production
I'm not at a machine, linux doesn't zero the swap "file" does it? if i set vm.swappiness = 0, will your "trick" work if i never hit memory pressure?
zrm
28 days ago
[–]
If you create the file with 'mkswap --file' it allocates the blocks. Trying to use 'swapon' with an existing sparse file won't remove the holes for you but does notice them and then refuse to use it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: