From nobody Thu Jul 20 14:57:18 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 4R6G4j5jvWz4pFsq for ; Thu, 20 Jul 2023 14:57:25 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (fledge.watson.org [147.160.157.40]) (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 "A1-48603", Issuer "A1-48603" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R6G4j0JqQz3w5r for ; Thu, 20 Jul 2023 14:57:25 +0000 (UTC) (envelope-from doug@safeport.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=fail (mx1.freebsd.org: domain of doug@safeport.com does not designate 147.160.157.40 as permitted sender) smtp.mailfrom=doug@safeport.com; dmarc=none Received: from fledge.watson.org (doug@localhost [127.0.0.1]) by fledge.watson.org (8.16.1/8.16.1) with ESMTPS id 36KEvI7K007523 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 20 Jul 2023 14:57:18 GMT (envelope-from doug@safeport.com) Received: from localhost (doug@localhost) by fledge.watson.org (8.16.1/8.16.1/Submit) with ESMTP id 36KEvIxT007520 for ; Thu, 20 Jul 2023 14:57:18 GMT (envelope-from doug@safeport.com) X-Authentication-Warning: fledge.watson.org: doug owned process doing -bs Date: Thu, 20 Jul 2023 14:57:18 +0000 (UTC) From: doug@safeport.com Reply-To: doug@fledge.watson.org To: FreeBSD questions Subject: Re: Fwd: Swap filling up, usermode process swap usage doesn't explain In-Reply-To: <2137f9e4-07d0-1b89-1a48-daea622702a2@freebsd.org> Message-ID: <83cef040-8c5b-17cb-3d9a-f06d8369c7f3@safeport.com> References: <2137f9e4-07d0-1b89-1a48-daea622702a2@freebsd.org> 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 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spamd-Result: default: False [-2.10 / 15.00]; R_SPF_FAIL(1.00)[-all]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; HAS_REPLYTO(0.00)[doug@fledge.watson.org]; FROM_NO_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:6405, ipnet:147.160.157.0/24, country:US]; TO_DN_ALL(0.00)[]; DMARC_NA(0.00)[safeport.com]; RCVD_COUNT_THREE(0.00)[3]; REPLYTO_DN_EQ_FROM_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4R6G4j0JqQz3w5r X-Spamd-Bar: -- On Thu, 20 Jul 2023, Graham Perrin wrote: > On 20/07/2023 06:53, Jack Raats wrote: > ? > > At my systems ZFS is very memory hungry. ? > > > Which versions of FreeBSD, exactly, at those systems? > > uname -aKU It does not really sound like your issue is similar to mine, but just in case ... The system in question runs several jails. I have this problem on an older system running FreeBSD 11.3 (can't update w/o being physically present) php 7.2, mysql 5.7 and apache 2.4. In my case some interaction between apache and mysql causes an increase in swap due to apache not freeing memory. For me when swap exceeds 50% swap space starts increasing very rapidly. I can recover swap space by restarting the various apache's This seems to be fixed in 12 and beyond. I have a 12 system that does not exhibit this behavior.