Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4497454ybh; Tue, 6 Aug 2019 12:46:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQqfIXFJEOEC8bdfAykWq/IMafWiuBs53+C8F/BtshWZeQZRxc92Ymgd2tB09AAbQi/U8J X-Received: by 2002:a62:3c3:: with SMTP id 186mr5412532pfd.21.1565120779394; Tue, 06 Aug 2019 12:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565120779; cv=none; d=google.com; s=arc-20160816; b=qd4ueWGiizdw21+SybF1/1x1Qk89Vydug06KSmp27pd+HGEbBcSihrjPypKb0GO0+c NENlSf9btYyyz+JnsJ6z432dzeDpNCG63xhDL0Y+5U0fLROD2RiLROe1JWbbN996FvI2 2Xq0eWz8eMu60dgA5kYJTQ7tB1Pcg2I5nJTiXyq47iepk6oQmu6eyMK9LMaC3hhWD3Fa CUQW9TKEu44m2Ofu4AR8QYbr/JyIYtAPHeqBa8SlM0iQEH6q1jTsB1dzGA2A545cGY36 qoZQkb7ruT7/LOr/401G3rpy0iCXd1M5pHuAuyQjQ1n4WKsNWja3NNEVn9i4hYlHpRcV OHTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:to:dkim-signature:dkim-signature; bh=ggnd4JMvzeolbg7dt8XtO6kAbnqVqIMDta4BC9xY/IU=; b=hh9UwsrIbe1qQ42qrA5fazUDm6DN8R7vPJf0+/5n8Zs75r1YRV9Z1W2mDs/Xz1yFzC 6WpTMJTRrNwpj4QqO/v5A11XHiX3Xg2J9qbXAKXMTNWk96X9cWASX6jHrH56WcwX685e qdF8rZHxcnL53lQv0SVG7pwv2w3n4TfeeA1lkOlUQMcBBKQxryiRx7ojjFq2VwwdYa7z pS3+O4rNO6ZHp4O6dOuc2wYmJ45Jrkmv6/G4Jcc8MriKGiB+SP5OnGHJk8TrXhyUd4D+ oJW2eC8MhA99tw2OWEm3/I5pY3nKQ+0QjSBhpgWeHeXv5ALlfu/F6YLUQGI8xQ2SjkPI fDnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@georgianit.com header.s=fm3 header.b="gxA/jrN0"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="DoFZ/4BD"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si45568342pll.352.2019.08.06.12.46.01; Tue, 06 Aug 2019 12:46:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@georgianit.com header.s=fm3 header.b="gxA/jrN0"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="DoFZ/4BD"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726055AbfHFTnq (ORCPT + 99 others); Tue, 6 Aug 2019 15:43:46 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:44515 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbfHFTnp (ORCPT ); Tue, 6 Aug 2019 15:43:45 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id ACAB521C7D for ; Tue, 6 Aug 2019 15:43:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 06 Aug 2019 15:43:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=georgianit.com; h=to:from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=fm3; bh=ggnd4JMvzeolbg7dt8XtO6kAbn qVqIMDta4BC9xY/IU=; b=gxA/jrN0McRxMq1bFcxe01DnqXah+xNKrSbsBHOo7A EtQF0U7V8xzftR64eSf9rSqChPZSySE7n89eGp0+3Z0G956y+3F4KtsU82KEGxGe rJWeO9XNhhjaoaF8f3/E+FuUHAG+D/LsJc+eXa46cbZtzGykeLA78xIbR1FO4zcy K/gL99kpWjb0zR8yye7uCCIvjxeurNgyJjy8SiMEoGwVbnZ7sDT4ZnUCZdNKvhs4 pM330A0GqL4XDdC1pESCh6LYM3QRfgB5rjApvL8YCrLfZXDtTQJhUpj2o12QCUgG aEAI+qk3MEkt4dGVDSK/8caatOx143BFgloP24QaB+gQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ggnd4J Mvzeolbg7dt8XtO6kAbnqVqIMDta4BC9xY/IU=; b=DoFZ/4BDBsNVV6uo28xBHg bz/4Kj3ntzQu1JpSOY0U2pEIvUjf18WgLIE/RmXglPp9qZPeo4ftQ6Nay2/TPrlO Gi9KW16WLkgzMpm685BR7OWnJTmCZDjznBqTg1Kwb6v4V8aCDPz7fZIqkIBmZJhA Fyt03JNPpMblmrF+quWcgZeXoz3k7C14otDxbGfUk0CFM5pPT/epnFyXHV0SulUU ogSfPOTAc1RUVRrdPcJyHBuaONBK8JOL95bNhiwW376YSto1GrMzZuDKD4RU5Z/d o5pAXnHuUo1Dy+tAwMNfnAuJtl9+hA+UjV2iKAb1bhnAqyWIH59SSllw9lzBKD6Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddutddgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefvhffukffffgggtgfgsehtjeertddtfeejnecuhfhrohhmpeftvghmihcu ifgruhhvihhnuceolhhkmhhlsehgvghorhhgihgrnhhithdrtghomheqnecukfhppedufe ehrddvfedrvdegiedrudefudenucfrrghrrghmpehmrghilhhfrhhomheplhhkmhhlsehg vghorhhgihgrnhhithdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [10.0.0.6] (135-23-246-131.cpe.pppoe.ca [135.23.246.131]) by mail.messagingengine.com (Postfix) with ESMTPA id 42F3E8005C for ; Tue, 6 Aug 2019 15:43:44 -0400 (EDT) To: Linux Kernel Mailing List From: Remi Gauvin Subject: Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure Message-ID: Date: Tue, 6 Aug 2019 15:43:43 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry, I don't have the original message to reply to.. But to those interested, I have found a solution to the kernel's complete inability to allocate more memory when it needs to swap out. Increase the /proc/sys/vm/watermark_scale_factor from the default 10 to 500 It will make a huge difference, especially with swap on SSD, the kernel will swap out gracefully to allocate more memory, and you can get a few GB more memory in use before really noticing performance problems.