Date: Thu, 25 Aug 2022 16:16:14 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 256507] Apparent kernel memory leak in 12-STABLE/13.1-Release Message-ID: <bug-256507-227-HFB9sU0nR0@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-256507-227@https.bugs.freebsd.org/bugzilla/> References: <bug-256507-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
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(<STATS>) { 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256507-227-HFB9sU0nR0>