Date: Sun, 05 Apr 2015 22:32:38 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 199189] SWAP on ZFS can crash server Message-ID: <bug-199189-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199189 Bug ID: 199189 Summary: SWAP on ZFS can crash server Product: Base System Version: 10.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: vermaden@interia.pl Running swap on zvol is a bad idea, because it will eventually crash the server when trashing happens. You can simulate the trashing by running the following Perl script, it will eventually fill up all your available memory. =============================================================================== #!/usr/bin/perl my $count=0; my @data; my $temp_data; for(my $i=0;$i<10000000;$i++) { $temp_data.="1234567890abcdefghijklmnopqrstuvwxyz"; } while(1) { $data[$count++]=$temp_data; } =============================================================================== Tested on FreeBSD 10.1 stable With zvol swap - 8 GB RAM FreeBSD server will stall within 1 minutes. without swap or dedicated swap disk/partition - server will automatically kill that Perl process. -- 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-199189-8>