Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Aug 2021 17:46:58 +0200 (CEST)
From:      freebsd@oldach.net (Helge Oldach)
To:        bu7cher@yandex.ru (Andrey V. Elsukov)
Cc:        markj@freebsd.org, ozkan.kirik@gmail.com, freebsd-net@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: Wired Memory Increasing about 500MBytes per day
Message-ID:  <202108031546.173FkwQ3052298@nuc.oldach.net>
In-Reply-To: <da80b1cd-df0b-9432-2d1e-91f50893c342@yandex.ru> from "Andrey V. Elsukov" at "3 Aug 2021 17:54:26"

next in thread | previous in thread | raw e-mail | index | archive | help
Andrey V. Elsukov wrote on Tue, 03 Aug 2021 16:54:26 +0200 (CEST):
> 03.08.2021 17:30, Mark Johnston <U+043F><U+0438><U+0448><U+0435><U+0442>:
> >>> So if there is some wired page leak, the pgcache zones are probably not
> >>> directly responsible.
> >>
> >> We don't see any leaks, but our monitoring shows that "free" memory
> >> migrates to "wired" and only these zones are grow.
> > 
> > How are you measuring this?  USED or USED+FREE?
> 
> AFAIK, monitoring uses sysctl variables:
> 
> vm.stats.vm.v_page_size
> vm.stats.vm.v_free_count
> vm.stats.vm.v_wire_count

The VM system is occasionally double counting pages because of lazy
dequeuing, see old PR 234559. So these figures are not fully reliable.

Also see PR 256507 which is discussing a memory leak issue that might be
related.

Kind regards
Helge



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108031546.173FkwQ3052298>