From owner-freebsd-hackers@freebsd.org Sun Jan 5 13:08:29 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 1F9721EE175 for ; Sun, 5 Jan 2020 13:08:29 +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 47rJqJ1StBz4Hqb for ; Sun, 5 Jan 2020 13:08:27 +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 005D8Mj8004040 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 5 Jan 2020 14:08:23 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1578229703; bh=5bEl/PDQhysOi/+QP1mXreNUuApqosKwg7PtGN9Myd8=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=dttNlhqpj05t9OyEe8ssdPBYD6Aoxo9B2yyYW/WfAbWy2Trtx45KuYXOFqoJP33Wj MW5O6N7mXw2ueggLo+oB8R/gMayjwJULDv0r6EcthAIbAAY2QGYrTf4l+9ym28kgfi zdG0HIIeCG93N3h0VXo2QhROq7aGNCRiAAIGDZAE= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 005D8MeP004037; Sun, 5 Jan 2020 14:08:22 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Sun, 5 Jan 2020 14:08:22 +0100 (CET) From: Wojciech Puchar To: Wojciech Puchar cc: Mark Millard , 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: 47rJqJ1StBz4Hqb X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=dttNlhqp; 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.44 / 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:c]; 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.15)[ip: (-8.31), ipnet: 194.1.144.0/24(-4.16), asn: 43476(-3.33), country: PL(0.07)]; 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]; FREEMAIL_CC(0.00)[yahoo.com]; 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 13:08:29 -0000 >> 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 > after changes - no effect