[Bug 199189] SWAP on ZFS can crash server

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Apr 22 21:20:35 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199189

marcus at blazingdot.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcus at blazingdot.com

--- Comment #8 from marcus at blazingdot.com ---
For what it's worth, I've been doing swap on a zvol for a long time now on
-CURRENT without problems.  Using "-o checksum=off -o compression=off -o
dedup=off -o sync=disabled -o primarycache=none" seems to be key.

I've hammered on it quite a bit to try and get it to crash.  My memory
allocator looks different from yours; this one is faster but just sets the
memory to zeroes with explicit_bzero().

#include <stdlib.h>
#include <stdio.h>
#include <strings.h>

#define HUNK 1048576

int main(void) {
    unsigned long long i;
    for(i = 0 ; ; i++) {
        explicit_bzero(malloc(HUNK), HUNK);
        printf("\r%llu", i * HUNK);
        fflush(stdout);
    };
    return(EXIT_SUCCESS);
}

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list