From nobody Thu Aug 25 16:16:14 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MD7PX4f7jz4ZtwN for ; Thu, 25 Aug 2022 16:16:16 +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 4MD7PX3csjz3D0x for ; Thu, 25 Aug 2022 16:16:16 +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 4MD7PX2h8nztrl for ; Thu, 25 Aug 2022 16:16:16 +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 27PGGG4v063425 for ; Thu, 25 Aug 2022 16:16:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27PGGG5l063424 for bugs@FreeBSD.org; Thu, 25 Aug 2022 16:16:16 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 256507] Apparent kernel memory leak in 12-STABLE/13.1-Release Date: Thu, 25 Aug 2022 16:16:14 +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: 12.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dave@jetcafe.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661444176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cqq2v7Fi3QS+mhCOQa6/86ixySDljo9FKMA5eVEMYnU=; b=F949U9FlMPsW8PQLTY/xOu3ryT9pcjtzlQda4vKn94eEKZVL8pzFbj8+rADDoQgml/IVED qZxMBgwlvboIMuBsiaF7UP5J7NxL0bZ+CkVk6SFsOuJyht4oQfA37RIibIA8dyK26vhOF7 VXCivRBHY9eHpe8cXdWLChSRVJ/PCv4H0vAvR7grFJCW1o85O2A/jAQjVNQC23ph3D81N8 5aFE20Hj+1INDZOX+rOiC88SCiy/eYLfur4NJZ1mFMpwsuTnDi4sgOMZ8PqcboOcMqYKTn 7e3H5M56BS74nkfdi5MaD5wWswjlj25HZzlU4CcjnT9UG4GgYZ7OhnUr6htyBg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661444176; a=rsa-sha256; cv=none; b=TVNOUWJCPuH9V/JrkDmzbIoIEpwcw4MYdcnWK7XhmEjDAgl8TVxJe6jS/ghn2z8Bm1YnPT PFNoE8Bija67jecrED7jU050/ndCuVqJ/xwCrtg2uqKRWND4ZFsIY1mTcG+qvnH1zj0WoT mzkcJ9JBmXkf1kUouJa4hCFl+DjQXhsA2vX+nHymMXWaKxFhTlJfMUSW2UVHmJH0Nb6Nle WV8viroOPX1sEum88n7EEYCHg8kNJFMary1iaFMod8Vlg9atAviFHXbLI4LxrjAmodXN7K f1G/2I9N/kQpSWx6Je2b3qsN8ZZ0P/eK+yBLQ6VmGOlIQ6k8G+0x1MeV23VovA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256507 --- Comment #12 from dave@jetcafe.org --- So...stopping -all- running services to me is an effective reboot. :) Nevertheless, on my machine with the most minimal service deployment that h= as the memory issue, I stopped the biggest memory consumers: unbound node_exporter blackbox_exporter Stopping them did not return the memory, as measured by this script: --Begin script #!/usr/local/bin/perl use strict; use warnings; my $pagesize =3D `sysctl -n vm.stats.vm.v_page_size`; chomp($pagesize); my %db =3D (); open(STATS,"sysctl vm.stats.vm |") || die "Can't open sysctl: $!\n"; while() { if (/v_(\S+)_count:\s(\d+)/) { $db{$1} =3D $2; } } close(STATS); my $total =3D $db{'page'}; foreach my $k (keys %db) { next if ($k eq 'page'); $total -=3D $db{$k}; } my $totalmemMB =3D ($pagesize * $total) / (1024 * 1024); printf("Lost memory: %d %d-byte pages (%.f MB)\n", $total, $pagesize, $totalmemMB); --- End script This printed out roughly the same numbers as reported by prometheus after services were stopped. Of course, I have superpages enabled and yet vm.stats.vm.v_page_size reports 4096 still. I've no idea if this is the correct way to calculate actual mem= ory lost, but it looks correct. --=20 You are receiving this mail because: You are the assignee for the bug.=