- Thread Starter
- #26
Many thanks Jose! It looks like unfortunately my dmesg logs have rolled over by now. And no mention of swap in the dmesg logs that I have, at least. I will look next time ...Maybe the OOM killer got it? Anything in the logs? Dmesg?
I've never had the OOM killer attack, so I don't know exactly what to look for in the logs. Maybe something like this?
Code:Sep 29 15:07:21 remote kernel: swap_pager_getswapspace(20): failed Sep 29 15:07:21 remote kernel: swap_pager_getswapspace(18): failed Sep 29 15:07:21 remote kernel: swap_pager_getswapspace(32): failed Sep 29 15:07:21 remote syslogd: last message repeated 1 times Sep 29 15:07:26 remote kernel: pid 5913 (mysqld), uid 88, was killed: out of swap space Sep 29 15:07:27 remote kernel: pid 888 (ntpd), uid 123, was killed: out of swap space Sep 29 15:07:27 remote kernel: swap_pager_getswapspace(32): failed
One concerning thing, is that I seem to have no swap space enabled on my VPS! But there is actually 1.0G of swap available ...
No numbers coming out of those commands. However:# swapinfo
Device 1K-blocks Used Avail Capacity
# swapctl -l
Device: 1024-blocks Used:
There is a /dev/vtbd0p3, so I guess I can just do# gpart show -p
=> 40 167772080 vtbd0 GPT (80G)
40 1024 vtbd0p1 freebsd-boot (512K)
1064 165675008 vtbd0p2 freebsd-ufs (79G)
165676072 2096048 vtbd0p3 freebsd-swap (1.0G)
swapon /dev/vtbd0p3
and then also add it into /etc/fstab, if I can trust the Handbook:/dev/vtbd0p3 none swap sw 0 0
BTW, what is up with that URL in your post??