From owner-freebsd-hackers@freebsd.org Mon Nov 19 10:24:11 2018 Return-Path: Delivered-To: freebsd-hackers@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 A80FF113B63A for ; Mon, 19 Nov 2018 10:24:11 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "puchar.net", Issuer "puchar.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BC8456F588 for ; Mon, 19 Nov 2018 10:24:10 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id wAJAO7Bn053630 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 19 Nov 2018 11:24:07 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id wAJAO1Yq053627; Mon, 19 Nov 2018 11:24:01 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Mon, 19 Nov 2018 11:24:01 +0100 (CET) From: Wojciech Puchar To: RW cc: freebsd-hackers@freebsd.org Subject: Re: 13-CURRENT: several GB swap being used despite plenty of free RAM In-Reply-To: <20181118193016.094cca9d@gumby.homeunix.com> Message-ID: References: <201811180154.wAI1smhg049214@slippy.cwsent.com> <20181118193016.094cca9d@gumby.homeunix.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: BC8456F588 X-Spamd-Result: default: False [-0.35 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.06)[-0.060,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_SPAM_SHORT(0.01)[0.011,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[puchar.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[puchar.net]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(0.00)[country: PL(0.02)]; FREEMAIL_TO(0.00)[googlemail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2018 10:24:11 -0000 > > The above settings are about process level swapping, i.e. the > deactivation of whole processes, they don't control swapping in the > sense of paging out to the swap device. > > By default process swapping is only used under extreme memory shortage, > setting vm.swap_idle_enabled=1 allows idle processes to be deactivated. > It's only really intended for some special cases like login servers, > which tend to have a lot of inactive shell and editor processes. > and my servers that have LOTS of httpd servers each for one webpage which are usually rarely visited. > Changing those setting wont reduce swap usage, they may increase > it. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >