Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2019 14:18:37 -0500
From:      Mike Tancsa <mike@sentex.net>
To:        Eugene Grosbein <eugen@grosbein.net>, Mark Johnston <markj@freebsd.org>
Cc:        kib@freebsd.org, FreeBSD stable <freebsd-stable@freebsd.org>
Subject:   Re: 11.2-STABLE kernel wired memory leak
Message-ID:  <672edbe6-ac42-f21e-ad8a-7a5f5d4c4e3c@sentex.net>
In-Reply-To: <4ab1331f-80e3-b856-b402-9985e73618bc@grosbein.net>
References:  <d8c7abc0-3ba1-40e4-22b1-1b30d28ced14@grosbein.net> <20190212163446.GA29847@raichu> <4ab1331f-80e3-b856-b402-9985e73618bc@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/12/2019 1:03 PM, Eugene Grosbein wrote:
> It seems page daemon is broken somehow as it did not reclaim several
> gigs of wired memory
> despite of long period of vm thrashing:
>
> $ sed 's/:/,/' vmstat-z.txt | awk -F, '{printf "%10s %s\n", $2*$5/1024/1024, $1}' | sort -k1,1 -rn | head
>       1892 abd_chunk
>    454.629 dnode_t
>     351.35 zio_buf_512
>    228.391 zio_buf_16384
>    173.968 dmu_buf_impl_t
>     130.25 zio_data_buf_131072
>    93.6887 VNODE
>    81.6978 arc_buf_hdr_t_full
>    74.9368 256
>    57.4102 4096

On an nfs server, serving a few large files, my 32G box is showing

vmstat -z | sed 's/:/,/' | awk -F, '{printf "%10s %s\n",
$2*$5/1024/1024, $1}' | sort -k1,1 -rn | head
   11014.3 abd_chunk
    2090.5 zio_data_buf_131072
   1142.67 mbuf_jumbo_page
   1134.25 zio_buf_131072
    355.28 mbuf_jumbo_9k
    233.42 zio_cache
   163.099 arc_buf_hdr_t_full
   130.738 128
   97.2812 zio_buf_16384
   96.5099 UMA Slabs


CPU:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
Mem: 1348K Active, 98M Inact, 3316K Laundry, 30G Wired, 1022M Free
ARC: 11G Total, 7025M MFU, 3580M MRU, 11M Anon, 78M Header, 681M Other
     9328M Compressed, 28G Uncompressed, 3.05:1 Ratio
Swap: 64G Total, 13M Used, 64G Free


Right now its OK, but prior to limiting ARC, I had an issue with memory
and the disk thrashing due to swapping

pid 643 (devd), uid 0, was killed: out of swap space


    ---Mike



> - 
> -------------------
> Mike Tancsa, tel +1 519 651 3400 x203
> Sentex Communications, mike@sentex.net
> Providing Internet services since 1994 www.sentex.net
> Cambridge, Ontario Canada   



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?672edbe6-ac42-f21e-ad8a-7a5f5d4c4e3c>