D
Deleted member 9563
Guest
I am seeing messages in /var/log/messages saying
The handbook is not clear to me. It describes how to add a swap file, but seems instead to be describing how to create a swap file in the first place. So I'm afraid to follow that in case it screws up my system.
The swap file I have is created according to Warren Block's succinct instructions, using this line
If I can just change that directly then fine, otherwise I have space on this or other drives which is suitable as well, and the idea of "adding" a swap file seems like a good one - if it's possible to do that.
PS: Perhaps there is some other issue here but my FreeBSD 11.1-RELEASE system with KDE and 16GB RAM is running very well and I see no harm in increasing swap if some program such as Firefox is happier with that.
kernel: swap_pager_getswapspace(4): failed
. Also dmesg
shows many lines of swap_pager_getswapspace(x): failed
. Upon checking with swapinfo
I see that swap usage is at 100%. I restarted Firefox (with all the same windows and tabs) and swap usage went down to 20%. That seems more reasonable, but if Firefox wants more swap, I'm ok with that since I have plenty of resources. The question then is how to add that.The handbook is not clear to me. It describes how to add a swap file, but seems instead to be describing how to create a swap file in the first place. So I'm afraid to follow that in case it screws up my system.
The swap file I have is created according to Warren Block's succinct instructions, using this line
# dd if=/dev/zero of=/usr/swap/swap bs=128k count=32768
which results in a 4G file. I would like to make that swap file 8G instead. How do I do that?If I can just change that directly then fine, otherwise I have space on this or other drives which is suitable as well, and the idea of "adding" a swap file seems like a good one - if it's possible to do that.
PS: Perhaps there is some other issue here but my FreeBSD 11.1-RELEASE system with KDE and 16GB RAM is running very well and I see no harm in increasing swap if some program such as Firefox is happier with that.