From nobody Wed Jul 19 22:40:03 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R5rP86Cj8z4nRnd; Wed, 19 Jul 2023 22:40:12 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R5rP74JmJz43LQ; Wed, 19 Jul 2023 22:40:11 +0000 (UTC) (envelope-from pete@nomadlogic.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nomadlogic.org header.s=04242021 header.b=XrTA77F3; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 66.165.241.226 as permitted sender) smtp.mailfrom=pete@nomadlogic.org; dmarc=pass (policy=quarantine) header.from=nomadlogic.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomadlogic.org; s=04242021; t=1689806406; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vh6MAnC7/Z6hlsM1K+9HU/Ddw8LBzlCd4eRE3fJW7KI=; b=XrTA77F3adEIv1ItX3XH3FqBhbVJ/I8TKBul9iJCuFYzfDCqsCzQkEF6XcOR/pTAl2aT08 7Ksl7KW9Agtzvhq+pRPsBEhUCvh+XqxX6nJHSGFyHhugSJ+fv4YhvXijFd8X5DW73V+CBI a6rTlqe5Adyllr/i4r4yx8zoZ9mr36Q= Received: from [192.168.1.160] (cpe-24-24-168-214.socal.res.rr.com [24.24.168.214]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 916497ef (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 19 Jul 2023 22:40:03 +0000 (UTC) Message-ID: <88e0d702-cb86-b922-a5ce-82fe32e66a40@nomadlogic.org> Date: Wed, 19 Jul 2023 15:40:03 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: Swap filling up, usermode process swap usage doesn't explain Content-Language: en-US To: Scott Gasch Cc: freebsd-questions , freebsd-hackers@freebsd.org References: From: Pete Wright In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.94 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.940]; DMARC_POLICY_ALLOW(-0.50)[nomadlogic.org,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[nomadlogic.org:s=04242021]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,freebsd-questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; ASN(0.00)[asn:29802, ipnet:66.165.240.0/22, country:US]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[nomadlogic.org:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; BLOCKLISTDE_FAIL(0.00)[24.24.168.214:server fail,66.165.241.226:server fail]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TAGGED_RCPT(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4R5rP74JmJz43LQ X-Spamd-Bar: --- On 7/19/23 15:11, Scott Gasch wrote: > Yes, I'm using ZFS.  Here's what top says: > > last pid: 88926;  load averages:  1.20,  0.96,  0.87 >    up 5+17:48:34  15:09:58 > 274 processes: 1 running, 272 sleeping, 1 zombie > CPU:  1.8% user,  0.0% nice,  0.5% system,  0.0% interrupt, 97.8% idle > Mem: 1844M Active, 7777M Inact, 77G Laundry, 35G Wired, 750M Buf, 3367M Free > ARC: 24G Total, 2878M MFU, 18G MRU, 21M Anon, 119M Header, 2622M Other >      18G Compressed, 25G Uncompressed, 1.33:1 Ratio > Swap: 144G Total, 11G Used, 133G Free, 7% Inuse > > If I leave this alone it will grow to consume all available swap space. > I'll try your fix with the sysctl knob and see what happens...  I hope > this is it, I've been fighting this for a while now. worth a shot, but 24G of ARC isn't that bad, especially if you are doing quite a bit of disk i/o. i'm more interested in the 77G of Laundry memory, that seems like quite a bit. but i don't know your workload so not sure... -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA