Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp905249ima; Fri, 1 Feb 2019 12:53:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN7AS9fh1MQTCCb4VGaZRw+PThKqufOqUDQkeDRVuBLBk1xVfnOdfn94fSQAiC4MAV/YLP6J X-Received: by 2002:a62:8986:: with SMTP id n6mr31630384pfk.161.1549054400394; Fri, 01 Feb 2019 12:53:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549054400; cv=none; d=google.com; s=arc-20160816; b=rplYxOCXnU1mctQ9wmvkP/rD3LI4edHUBVcQom87gv4iO4UOhCmLEo5BUq+wCVvTP1 3nOa2TPJMG2VGN5gZTbHd6J2Dd4aQSuOxr55oiSMt3VS21TaDJJQ40Jy8x6EAjXT2rB1 Kqy1wcpI7Ade9Nc8PS2rvRPHlymWV48YoOgpOyQC+OwAic1AnXMw8KXxiwpL4xGZTVsX f+Hc5WiugRVz8wHARvFtnKtjgxSJFW8i+90mn0Qog/6o9KnRvW9vZbiYLvCVlTcRNYL2 yS9WHJvZpgIeH1A2Oyg0YydDPESxtCGQ/zEvH8NV82AQbOxe32SXoq0SSSgav0pXwyVx Ft6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ik+nUeP1/vzq94Z7ZicHjBf1u7i2w1Mxdx/p4Q0QLSE=; b=Ipo7I4+uZvsxHjQrKOWxctxPG92moYIrKLCI/s4K71p1qnjPUVCxiwi1DbYENIyrBX me+6PyAt0bUQ6+19jriq3ieCrNGrVZ3MUps4LYqGdn4dz6xxCZa39giGcJBj8ZFBgJ9e 6S8WE1KM227N8ueepdQBMbupbS+m83mvTDXxPTSTbPns1Pz5g/Ckt/jVBwOqSDTgGww2 5nDF33zA1SLvDuW5iix8MRzXgWVaYF+50KO/94xV9/lEhTuGEftqpz4QY2M1YiQPgsSV aFy8ugJum0TigVld+J3QPjXSR6AflXBRbFNPoZve9eRE1o7c4wAC5+EQTJsTuem0vhAS ux6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=W0Wn44AO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si856196plw.344.2019.02.01.12.52.57; Fri, 01 Feb 2019 12:53:20 -0800 (PST) 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=@chrisdown.name header.s=google header.b=W0Wn44AO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731258AbfBATQk (ORCPT + 99 others); Fri, 1 Feb 2019 14:16:40 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:36781 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728824AbfBATQj (ORCPT ); Fri, 1 Feb 2019 14:16:39 -0500 Received: by mail-yb1-f196.google.com with SMTP id 64so3112282ybf.3 for ; Fri, 01 Feb 2019 11:16:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ik+nUeP1/vzq94Z7ZicHjBf1u7i2w1Mxdx/p4Q0QLSE=; b=W0Wn44AOStTYe+dttllNOONJ0kwMX4EYLQZLRFhf29Z90hnoImF1lG8nSdMLxA0Qvx sKvki9e7iBsjP3b+VFMOseTyDlPyfjw7+rS04bf+5SjjcbF/W5qqz2jWs6AhKtXbfKiy eLeelp1K2HK81/hAXExiivV4njdyB6k3k+HJ0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ik+nUeP1/vzq94Z7ZicHjBf1u7i2w1Mxdx/p4Q0QLSE=; b=IEHGxe04I720b7zpWCqnRZwi5GbOZtpmiJeqiqfKp25wf7Nl2asFAw9BWBxsy0Rs51 ZSwM0jTa6RnMQUy/eW4Wt39M+UcVQadwUCKWx9wDVw0xDQfZwIzfK4y/NyEXyZi2ogal hRMuJUp9KzP6AubInVkpqj+miEZ/uothtHIP2Q7nVur7VYyYlkop2GSKKa3J4JL3YHj7 lBKsnQRreQryu7+MUINYXOAODEllLW+dRBu1arg3epE/zK/sRkK0bX6Cc7BqcLq1tiW1 Np5vFlcDjPyWYprqS8VN7rEp3pojqZiRa6Uk0hILIJde0ieetfhbYL2M3BgjTwy60pgA I4Sg== X-Gm-Message-State: AJcUukcZYYEtpX1GzV4KZFJ2oHVZftIyoNMeHt+d6gJMU+ePHdg6tZzC sl+OOr3FHwvKZz9pDX47A9wNCA== X-Received: by 2002:a25:e404:: with SMTP id b4mr38643858ybh.494.1549048598793; Fri, 01 Feb 2019 11:16:38 -0800 (PST) Received: from localhost ([2620:10d:c091:200::5:99ee]) by smtp.gmail.com with ESMTPSA id l7sm3055420ywk.24.2019.02.01.11.16.38 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 01 Feb 2019 11:16:38 -0800 (PST) Date: Fri, 1 Feb 2019 14:16:36 -0500 From: Chris Down To: Michal Hocko Cc: Andrew Morton , Johannes Weiner , Tejun Heo , Roman Gushchin , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, kernel-team@fb.com Subject: Re: [PATCH] mm: Throttle allocators when failing reclaim over memory.high Message-ID: <20190201191636.GA17391@chrisdown.name> References: <20190201011352.GA14370@chrisdown.name> <20190201071757.GE11599@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190201071757.GE11599@dhcp22.suse.cz> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michal Hocko writes: >How does this play wit the actual OOM when the user expects oom to >resolve the situation because the reclaim is futile and there is nothing >reclaimable except for killing a process? In addition to what Johannes said, this doesn't impede OOM in the case of global system starvation (eg. in the case that all major consumers of memory are allocator throttling). In that case nothing unusual will happen, since the task's state is TASK_KILLABLE rather than TASK_UNINTERRUPTIBLE, and we will exit out of mem_cgroup_handle_over_high as quickly as possible.