From owner-freebsd-bugs@freebsd.org Fri Apr 2 14:37:57 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2BD51579538 for ; Fri, 2 Apr 2021 14:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FBjMS6qdGz3FGn for ; Fri, 2 Apr 2021 14:37:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C7CA6579536; Fri, 2 Apr 2021 14:37:56 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C76EF579535 for ; Fri, 2 Apr 2021 14:37:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FBjMR3Y7Wz3FBM for ; Fri, 2 Apr 2021 14:37:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3A97821839 for ; Fri, 2 Apr 2021 14:37:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 132EbtA1005099 for ; Fri, 2 Apr 2021 14:37:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 132EbtTo005098 for bugs@FreeBSD.org; Fri, 2 Apr 2021 14:37:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254721] Swap on ZFS can crash server in high memory usage conditions Date: Fri, 02 Apr 2021 14:37:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dmilith@me.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2021 14:37:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254721 Bug ID: 254721 Summary: Swap on ZFS can crash server in high memory usage conditions Product: Base System Version: 12.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dmilith@me.com I have ELK stack on a dedicated i7 server which has 100% memory usage and s= wap on ZFS (mounted with "zfs create -V 64gb -o org.freebsd:swap=3Don -o checks= um=3Doff -o compression=3Doff -o dedup=3Doff -o sync=3Ddisabled -o primarycache=3Dno= ne zroot/swap swapon /dev/zvol/zroot/swap"). With some extreme load cases, my whole machine crashes with dump like: ``` [109840] Fatal trap 12: page fault while in kernel mode [109840] cpuid =3D 2; apic id =3D 02 [109840] fault virtual address =3D 0xde20140520 [109840] fault code =3D supervisor write data, page not present [109840] instruction pointer =3D 0x20:0xffffffff811daef7 [109840] stack pointer =3D 0x28:0xfffffe00005f1850 [109840] frame pointer =3D 0x28:0xfffffe00005f1870 [109840] code segment =3D base 0x0, limit 0xfffff, type 0x1b [109840] =3D DPL 0, pres 1, long 1, def32 0, gran 1 [109840] processor eflags =3D interrupt enabled, resume, IOPL =3D 0 [109840] current process =3D 16 (solthread 0xfffffff) [109840] trap number =3D 12 [109840] panic: page fault [109840] cpuid =3D 2 [109840] time =3D 1611201271 [109840] version =3D FreeBSD 12.2-RELEASE-HBSD VerKnowSys [109840] KDB: stack backtrace: [109840] #0 0xffffffff80daf88d at kdb_backtrace+0x7d [109840] #1 0xffffffff80d3e98e at vpanic+0x23e [109840] #2 0xffffffff80d3e750 at vpanic+0 [109840] #3 0xffffffff813adce6 at trap_fatal+0x636 [109840] #4 0xffffffff813adf7f at trap_pfault+0x1af [109840] #5 0xffffffff813acdfa at trap+0x7ba [109840] #6 0xffffffff813ae478 at trap_check+0x48 [109840] #7 0xffffffff8137a4d8 at calltrap+0x8 [109840] #8 0xffffffff811dfa82 at bucket_cache_drain+0x52 [109840] #9 0xffffffff811d64cf at zone_drain_wait+0x12f [109840] #10 0xffffffff811d639a at zone_drain+0x1a [109840] #11 0xffffffff826a9ba8 at arc_kmem_reap_soon+0x88 [109840] #12 0xffffffff826a608b at arc_reap_cb+0xb [109840] #13 0xffffffff82761eb1 at zthr_procedure+0xc1 [109840] #14 0xffffffff80cd0c69 at fork_exit+0x179 [109840] #15 0xffffffff8137b50e at fork_trampoline+0xe ``` --=20 You are receiving this mail because: You are the assignee for the bug.=