Date: Wed, 13 Feb 2019 00:02:07 +0300 From: Lev Serebryakov <lev@FreeBSD.org> To: Eugene Grosbein <eugen@grosbein.net>, Kurt Jaeger <pi@opsec.eu> Cc: freebsd-stable@freebsd.org, Garrett Wollman <wollman@bimajority.org> Subject: Re: 11.2-STABLE kernel wired memory leak Message-ID: <1294306375.20190213000207@serebryakov.spb.ru> In-Reply-To: <3d7f4ac4-67e4-b010-64c6-0d84a4451246@grosbein.net> References: <d8c7abc0-3ba1-40e4-22b1-1b30d28ced14@grosbein.net> <201902121757.x1CHve0h056876@hergotha.csail.mit.edu> <7125e053-5adf-929a-bde6-a64fceae2aaa@grosbein.net> <8a9361fd-4701-4e33-33f0-e4800af7637c@grosbein.net> <20190212182915.GM2748@home.opsec.eu> <80e414af-058c-5f84-0f9b-36529d5e06b4@grosbein.net> <331bbb5f-6627-d73c-d174-0865234d296f@FreeBSD.org> <3d7f4ac4-67e4-b010-64c6-0d84a4451246@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Eugene, Tuesday, February 12, 2019, 10:18:09 PM, you wrote: >> I'm have same problem. >> >> According to top(1) I have 29G Wired, but only 17G Total ARC (12G >> difference! System has 32G of RAM), and this statistic shows: >> >> 5487.5 zio_data_buf_524288 >> 920.125 zio_data_buf_131072 >> 626 zio_buf_131072 >> 468 zio_data_buf_1048576 >> 398.391 zio_buf_16384 >> 305.464 dnode_t >> 227.989 zio_buf_512 >> 171.5 zio_data_buf_458752 >> 141.75 zio_data_buf_393216 >> 116.456 dmu_buf_impl_t >> >> So, more than 6G (!) is not used in ARC, but hold by ZFS anyway. > dnode_t and dmu_buf_impl_t are parts of ZFS too, > so these numbers represent about 9G, not 6G. > Do you have/had some memory pressure here? Growth of swap usage? I don't have memory pressure right now, but according to my previous experience, ARC will not grow anymore even under heavy disk load (I don't have vfs.zfs.arc_max set). Before new ARC (vfs.zfs.abd_scatter_enabled) I had typically ALL memory occuped by ARC, Wired memory was almost exactly equal to ARC, and ARC hitrate was higher (but I have not exact numbers, unfortunately). Now I have "vfs.zfs.abd_scatter_enabled=0", but still Wired is much larger that ARC under any disk load (it is mostly torrent box). -- Best regards, Lev mailto:lev@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1294306375.20190213000207>