From owner-freebsd-fs@freebsd.org Sat Dec 9 18:27:52 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10EEAE9398B for ; Sat, 9 Dec 2017 18:27:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F19D46FAC0 for ; Sat, 9 Dec 2017 18:27:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vB9IRpdV053423 for ; Sat, 9 Dec 2017 18:27:51 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-fs@FreeBSD.org Subject: [Bug 224080] ZFS: "arc_dnlc_evicts_thr" + "arc_reclaim_thread" - high CPU load during poudriere build... Date: Sat, 09 Dec 2017 18:27:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cy@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2017 18:27:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224080 --- Comment #29 from Cy Schubert --- (In reply to Jeff Roberson from comment #26) I've applied a patch similar to the one discussed here. There is some improvement but more testing and comparison with r326347 removed is needed. On my two 8 GB machines (with zfs arc tuning removed from loader.conf) I ge= t: 2 core + 2 threads: CPU: 0.9% user, 95.9% nice, 3.0% system, 0.0% interrupt, 0.2% idle Mem: 1500M Active, 318M Inact, 33M Laundry, 1762M Wired, 154M Buf, 4148M Fr= ee ARC: 840M Total, 141M MFU, 545M MRU, 16M Anon, 12M Header, 127M Other 288M Compressed, 893M Uncompressed, 3.10:1 Ratio slippy# sysctl vm.kmem_size vm.kmem_size: 8138756096 slippy# sysctl vm.kmem_size_max vm.kmem_size_max: 1319413950874 slippy# sysctl hw.physmem hw.physmem: 8365903872 slippy#=20 slippy$ sysctl vfs.zfs.arc_max=20=20 vfs.zfs.arc_max: 7065014272 slippy$=20 2 core: CPU: 0.0% user, 94.9% nice, 4.1% system, 0.6% interrupt, 0.4% idle Mem: 752M Active, 269M Inact, 1705M Wired, 111M Buf, 5215M Free ARC: 862M Total, 218M MFU, 456M MRU, 15M Anon, 15M Header, 156M Other 343M Compressed, 1079M Uncompressed, 3.15:1 Ratio cwsys# sysctl vm.kmem_size vm.kmem_size: 8325849088 cwsys# sysctl vm.kmem_size_max vm.kmem_size_max: 1319413950874 cwsys# sysctl hw.physmem hw.physmem: 8566394880 cwsys#=20 cwsys$ sysctl vfs.zfs.arc_max=20=20 vfs.zfs.arc_max: 7252107264 cwsys$=20 It appears arc is being limited to ~ 840 - 860 MB on the 8 GB machines. The 5 GB machine (2 core): CPU: 0.0% user, 95.1% nice, 4.7% system, 0.2% interrupt, 0.0% idle Mem: 590M Active, 147M Inact, 1126M Wired, 101M Buf, 3077M Free ARC: 488M Total, 50M MFU, 334M MRU, 6630K Anon, 5713K Header, 91M Other 107M Compressed, 431M Uncompressed, 4.02:1 Ratio bob# sysctl vm.kmem_size vm.kmem_size: 5180735488 bob# sysctl vm.kmem_size_max vm.kmem_size_max: 1319413950874 bob# sysctl hw.physmem hw.physmem: 5345284096 bob#=20 bob# sysctl vfs.zfs.arc_max=20=20 vfs.zfs.arc_max: 4106993664 bob#=20 We might want to consider reverting r326347 until we can fix this. --=20 You are receiving this mail because: You are the assignee for the bug.=