From owner-freebsd-hackers@freebsd.org Sat Nov 17 22:21:49 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 CF8691108348 for ; Sat, 17 Nov 2018 22:21:49 +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 E566C83263 for ; Sat, 17 Nov 2018 22:21:48 +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 wAHLqRqK061071 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 17 Nov 2018 22:52:27 +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 wAHLqMJY061068; Sat, 17 Nov 2018 22:52:22 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Sat, 17 Nov 2018 22:52:22 +0100 (CET) From: Wojciech Puchar To: Rebecca Cran cc: freebsd-hackers Hackers Subject: Re: 13-CURRENT: several GB swap being used despite plenty of free RAM In-Reply-To: <1748688.u6MfGjpqfb@photon.int.bluestop.org> Message-ID: References: <1748688.u6MfGjpqfb@photon.int.bluestop.org> 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: E566C83263 X-Spamd-Result: default: False [0.09 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_SPAM_SHORT(0.40)[0.400,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)[]; TO_DN_ALL(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)]; 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: Sat, 17 Nov 2018 22:21:50 -0000 freebsd will not swap with that lots of free ram. but it's 90GB free NOW, how about before? If something got swapped it isn't read back just because there is free memory but when it will be needed. On Sat, 17 Nov 2018, Rebecca Cran via freebsd-hackers wrote: > I'm running 13-CURRENT from a few days ago. I noticed the system using several > GB of swap despite having 90GB RAM still free. I know FreeBSD will use *some*, > but 3450MB seems excessive when there's still 90GB RAM free. > > CPU: 0.1% user, 0.0% nice, 0.0% system, 0.0% interrupt, 99.8% idle > Mem: 3392M Active, 5489M Inact, 390M Laundry, 25G Wired, 90G Free > ARC: 19G Total, 8080M MFU, 9242M MRU, 64K Anon, 197M Header, 1570M Other > 15G Compressed, 26G Uncompressed, 1.73:1 Ratio > Swap: 8192M Total, 3450M Used, 4742M Free, 42% Inuse, 36K In > > Quitting firefox caused the swap usage to drop to just 460MB. I don't > understand why it would decide to swap out so much, especially since I have > vm.swap_idle_enabled set to 0. > > -- > Rebecca > > > _______________________________________________ > 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" > >