From owner-freebsd-questions@freebsd.org Wed Jan 16 18:11:56 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CF331490C88 for ; Wed, 16 Jan 2019 18:11:56 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 25B6C80E54 for ; Wed, 16 Jan 2019 18:11:55 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1547662315; x=1550254315; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=rPDgEVoipbJMsbGWiZbnSioX6stMVbstN0TlaVAL1J4=; b=oEYP8eMn+cJTUIt8HBDu63RGFeSDEhW1lqr3Sv3uOZWqANQynDt09TmdyCpWyCNTnEEWc0wOGYi7Ecgayh3aAP8NKaFO0AvoSUec/z85W1d/3uvQvL1lyibEadAvfmo2iAK5fbIHSLuee4oraOAL9A4gUvNKnpa6fdd7L+ZRB8U= X-Thread-Info: NDI1MC4xMi4xYTMwMDAwMDA5NjNhYzIuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r2.h.in.socketlabs.com (r2.h.in.socketlabs.com [142.0.180.12]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Wed, 16 Jan 2019 13:11:49 -0500 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r2.h.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Wed, 16 Jan 2019 13:11:48 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gjpfG-0005tg-Q4; Wed, 16 Jan 2019 18:11:46 +0000 Date: Wed, 16 Jan 2019 18:11:46 +0000 From: Steve O'Hara-Smith To: byrnejb@harte-lyne.ca Cc: freebsd-questions@freebsd.org Subject: Re: Memory usage appears a bit high Message-Id: <20190116181146.375e2358d2091380c74a8291@sohara.org> In-Reply-To: <0c45ab67b1480d39dd87059495f6a27c.squirrel@webmail.harte-lyne.ca> References: <35c451bc1733004b7d868f60da68c639.squirrel@webmail.harte-lyne.ca> <20190116173621.9d90157c1adf526298763415@sohara.org> <0c45ab67b1480d39dd87059495f6a27c.squirrel@webmail.harte-lyne.ca> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 25B6C80E54 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=oEYP8eMn; spf=pass (mx1.freebsd.org: domain of 4250.10.freebsd-questions=freebsd.org@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.10.freebsd-questions=freebsd.org@email-od.com X-Spamd-Result: default: False [-3.17 / 15.00]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[email-od.com:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[cached: mxbh.socketlabs.com]; FORGED_SENDER(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; IP_SCORE(-0.23)[ip: (-0.58), ipnet: 142.0.176.0/22(-0.28), asn: 7381(-0.22), country: US(-0.08)]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.992,0]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.94)[-0.943,0]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; FORGED_SENDER_VERP_SRS(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[198.176.0.142.list.dnswl.org : 127.0.15.0]; ENVFROM_VERP(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2019 18:11:56 -0000 On Wed, 16 Jan 2019 12:46:39 -0500 "James B. Byrne" wrote: > > > On Wed, January 16, 2019 12:36, Steve O'Hara-Smith wrote: > > On Wed, 16 Jan 2019 12:31:14 -0500 > > "James B. Byrne via freebsd-questions" > > wrote: > > > >> We have an Cyrus IMAP service running on a BHyve FreeBSD-11.2p7 vm. > >> It has 4 Gb allocated. I have noticed that top reports this: > >> > >> Mem: 164M Active, 204M Inact, 22M Laundry, 3426M Wired, 111M Free > > > > Are you running ZFS ? If so then most of the wired memory is > > probably ARC. > > > > Yes, we are running the vm using zfs. > > ARC: 2432M Total, 451M MFU, 1683M MRU, 8480K Anon, 38M Header, > 252M Other > 1828M Compressed, 3768M Uncompressed, 2.06:1 Ratio The ARC - ZFS cache is always in wired memory because it's kernel space buffers and it does have a tendency to eat all the memory it can get unless you constrain it by setting vfs.zfs.arc_max sysctl. -- Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/