-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Adding swap recommends fallocate, however fallocate has holes #1608
Comments
Hello @Eaterminer and thanks for the heads-up. I think a clean way to create swap files would be to rely on mkswap -U clear --size 1024m --file /var/vm/swapfile1 |
Sure, I'll get a PR by the end of today :) |
Creating swap with holes is generally regarded as a really bad idea.
dd if=/dev/zero of=PATH is a better method because it doesn't create holes.
The text was updated successfully, but these errors were encountered: