I happened to notice this in the output of dmesg as I was looking for any sign of life from my unsupported SD card reader:
I ran top and it reported 121GB of swap!
I have 3 drives in my system: ada0 is Linux + Hackintosh, ada1 and ada2 are mirrored freebsd zfs:
It looks like FreeBSD saw partition 3 on ada0 and decided (based on the layout of the other drives where the 3rd slice is freebsd-swap) the strange Apple filesystem was 122GB of swap.
I ran
I guess I could put it in a shell script in /usr/local/rc.d/ ....
I'm not sure if selected ada1 or ada2 in the bios as the default startup drive. Could it be messing something up if I selected one and then then other, returning to FreeBSD from using another OS? ada1 and ada2 are mirrors.
There is no mention of swap in /etc/fstab or rc.conf. I don't want to disable swap completely, but just make sure freebsd never touches /dev/ada0p3.
Code:
EOM_PART: Partition 'ada0p3' not suitable for kernel dumps (wrong type?)
warning: total configured swap (31668793 pages) exceeds maximum recommended amount (16159496 pages).
warning: increase kern.maxswzone or reduce amount of swap.
warning: total configured swap (31930937 pages) exceeds maximum recommended amount (16159496 pages).
warning: increase kern.maxswzone or reduce amount of swap.
I ran top and it reported 121GB of swap!
I have 3 drives in my system: ada0 is Linux + Hackintosh, ada1 and ada2 are mirrored freebsd zfs:
Code:
gpart show ada0
=> 34 488397101 ada0 GPT (233G)
34 6 - free - (3.0K)
40 409600 1 efi (200M)
409640 234375000 2 linux-data (112G)
234784640 262144 - free - (128M)
235046784 253350344 3 !7c3457ef-0000-11aa-aa11-00306543ecac (121G)
488397128 7 - free - (3.5K)
It looks like FreeBSD saw partition 3 on ada0 and decided (based on the layout of the other drives where the 3rd slice is freebsd-swap) the strange Apple filesystem was 122GB of swap.
Code:
gpart show ada1
=> 40 937703008 ada1 GPT (447G)
40 409600 1 efi (200M)
409640 1024 2 freebsd-boot (512K)
410664 984 - free - (492K)
411648 2097152 3 freebsd-swap (1.0G)
2508800 935192576 4 freebsd-zfs (446G)
937701376 1672 - free - (836K)
Code:
part show ada2
=> 40 937703008 ada2 GPT (447G)
40 409600 1 efi (200M)
409640 1024 2 freebsd-boot (512K)
410664 984 - free - (492K)
411648 2097152 3 freebsd-swap (1.0G)
2508800 935192576 4 freebsd-zfs (446G)
937701376 1672 - free - (836K)
I ran
swapoff /dev/ada0p3
and it looks like now there is only 1GB of swap. But can I prevent it from being used as swap again when I reboot?I guess I could put it in a shell script in /usr/local/rc.d/ ....
I'm not sure if selected ada1 or ada2 in the bios as the default startup drive. Could it be messing something up if I selected one and then then other, returning to FreeBSD from using another OS? ada1 and ada2 are mirrors.
There is no mention of swap in /etc/fstab or rc.conf. I don't want to disable swap completely, but just make sure freebsd never touches /dev/ada0p3.