[Bug 199189] SWAP on ZFS can crash server

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Apr 5 22:32:38 UTC 2015


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 at FreeBSD.org
          Reporter: vermaden at 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.


More information about the freebsd-bugs mailing list