Date: Tue, 18 Sep 2018 16:08:07 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 231457] Out of swap space on ZFS Message-ID: <bug-231457-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231457 Bug ID: 231457 Summary: Out of swap space on ZFS Product: Base System Version: 11.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dimka@dz.dn.ua After occupying all RAM and several hundred megabytes of swap space, the ke= rnel kills large processes with the messages: Sep 14 03:04:30 hosting kernel: pid 2078 (mysqld), uid 88, was killed: out = of swap space Sep 14 03:06:26 hosting kernel: pid 7068 (mysqld), uid 88, was killed: out = of swap space Sep 14 03:06:32 hosting kernel: pid 2085 (clamd), uid 106, was killed: out = of swap space Tested on 3 real and 1 virtual machine with 1/2/4GB RAM and 8GB swap volume= , on 11.2-RELEASE/amd64. I NOT check this on 11.0-RELEASE and 11.1-RELEASE. It's like another bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D199189 but I never reached this bug on 10.*/amd64, and advice for volume/sysctl tunings from his discussion, did not help for me on 11.2/amd64. Detailed installation procedure # Boot from install DVD, select "Shell" in "Partitioning" menu. # # gnop create -S 4096 /dev/ada0 # zpool create -O mountpoint=3Dnone zroot /dev/ada0.nop # # zfs create -V 8GB -o org.freebsd:swap=3Don zroot/swap # zfs create -o quota=3D2GB -o mountpoint=3D/mnt zroot/root # zfs create -o quota=3D15GB -o mountpoint=3D/mnt/tmp zroot/tmp # zfs create -o quota=3D30GB -o mountpoint=3D/mnt/var zroot/var # zfs create -o quota=3D30GB -o mountpoint=3D/mnt/usr zroot/usr # zfs create -o quota=3D15GB -o mountpoint=3D/mnt/home zroot/home # # zpool export zroot # gnop destroy /dev/ada0.nop # dd if=3D/boot/zfsboot of=3D/dev/ada0 bs=3D512 count=3D1 # dd if=3D/boot/zfsboot of=3D/dev/ada0 bs=3D512 skip=3D1 seek=3D1024 # zpool import zroot # # exit # # Post-install, select "Live CD" mode. # # echo zfs_enable=3D\"YES\" >> /nmt/etc/rc.conf # zfs umount -a # zfs set mountpoint=3Dlegacy zroot/root # zfs set mountpoint=3D/tmp zroot/tmp # zfs set mountpoint=3D/var zroot/var # zfs set mountpoint=3D/usr zroot/usr # zfs set mountpoint=3D/home zroot/home # zpool set bootfs=3Dzroot/root zroot # # exit --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231457-227>