From owner-freebsd-hackers@freebsd.org Sun Jan 5 12:11:05 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D1AFC1E7FDB for ; Sun, 5 Jan 2020 12:11:05 +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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47rHY43xSzz4FG5 for ; Sun, 5 Jan 2020 12:11:04 +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 005CAvRx019446 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 5 Jan 2020 13:10:58 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1578226259; bh=blMDoEySzPIY6f2OXew4HIFCuV7TsCgiuDOGEiWBAWw=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=IYDdVpnLVnUCG9FezgAV7xgl81Stm2iSySMV0LYRYA1xlhVJBzzipuTTFRLS40fIV mhWgHaKSeb+g2h6bP93LIjTB4xv8FGKvTboZOpbHdOWvZ8gBsfyKWQls5w/mwMRWWT 2ALoJbgXP3RwZfsmzjLRT8/xV2PT/JzK0BBYz2nk= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 005CAvI5019443; Sun, 5 Jan 2020 13:10:57 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Sun, 5 Jan 2020 13:10:57 +0100 (CET) From: Wojciech Puchar To: Mark Millard cc: Wojciech Puchar , freebsd-hackers@freebsd.org Subject: Re: processes are killed because of out of swap space In-Reply-To: Message-ID: References: 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: 47rHY43xSzz4FG5 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=IYDdVpnL; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-4.46 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[puchar.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.16)[ip: (-8.34), ipnet: 194.1.144.0/24(-4.17), asn: 43476(-3.34), country: PL(0.07)]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Sun, 05 Jan 2020 12:11:05 -0000 > similar to: > > Aug 5 17:54:01 sentinel kernel: swap_pager_getswapspace(32): failed > > If you are not seeing such swap_pager_getswapspace messages, then > it is likely that the mount of swap space still available is not the > actual thing driving the kills. > > Another thing that can lead to kills is paging I/O that is > slow. paging device is nvd so it's fast. And system isn't even paging heavily. but is doing geom_raid5 rebuild right now+copying lots of files to this raid (new RAID5 just created). but still - there is A LOT of memory to be reclaimed. inactive is many gigabytes on my server. > # Delay when persisstent low free RAM leads to > # Out Of Memory killing of processes: > vm.pageout_oom_seq=120 set to 300. > some free RAM.) > > # > # For plunty of swap/paging space (will not > # run out), avoid pageout delays leading to > # Out Of Memory killing of processes: > vm.pfault_oom_attempts=-1 i don't have such sysctl. is it in FreeBSD 12? i have 11.3