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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"