Received: by 10.213.65.68 with SMTP id h4csp1490979imn; Wed, 4 Apr 2018 21:18:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/LykJ1154s5w8rnV8Ja59RiSGnKeROidtMBAXQVhxS6MGd7bJ8GfcyAAvmB6q+0/e9i886 X-Received: by 2002:a17:902:8d98:: with SMTP id v24-v6mr21275349plo.21.1522901934156; Wed, 04 Apr 2018 21:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522901934; cv=none; d=google.com; s=arc-20160816; b=k6+hzD5Wc1DMv619/WTlPpfX4P/gJgYKd9bdIE2Ar3Cnx6lAsC1mqAmxVkFg1cqyEc BQ8N6F4gtZLVzcgzN5kbSSqh3r239DIgwAtE20r3zmXaLkCQejVz3LfyAdptRCeCUMfm 03lLtcgpl+gHsd8oPSIj+J97h4NEdN7EfLHViAqb9uLoS3PJ5jsIhovztjwFoSWZGFPC lD4XNNhqME+09IxnsvoBFKRzDtez/4kfAKyzGuZuJTC9UU9H7Opx5FAc//pgNT5aq5O3 stAtEL6mzUCLuEQfXr0FVX39y3zSRYOblRj+IQrYhEEjxLnbO21Dwl5PTVfM+BsY48GG UMTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=xG2xkt0PwC1czfsJPyyHXeby1gao3QlUbK6xEGknqE0=; b=ovrO6iG3bfro3RknAoYIlAYbHUJ2dX3xi4tw3zXHsfzfNNCdwb58yVIMcu7ZGo2CTe u73NJl9zdh3jfJLM3Xt/UOzLaXeVkGX4C2w1AnxugoTVAtwCloJUeyjmZp1YYf+gHaTw +DNBjF5ouCGczKhb3MIjgmAwd8WGsgneGToFvPalD45DaxDOh+M9Und0ltRe228MV45H +z+m+qRSZNND6vRCpbqkImvf24lg4NcAw8MkQ9gMZ5Moy0Kr7tp/wxy66+3xg/pvNylL 5US9sWvFw+7UN5RT/hNVQvB84+s2rXpdBrglteTNmcwdh3eyzRaHtfKTyfdJ+K91OPSv j/dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ExGqeEge; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4-v6si4656305plo.644.2018.04.04.21.18.40; Wed, 04 Apr 2018 21:18:54 -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=@google.com header.s=20161025 header.b=ExGqeEge; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751414AbeDEEMz (ORCPT + 99 others); Thu, 5 Apr 2018 00:12:55 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:38942 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213AbeDEEMy (ORCPT ); Thu, 5 Apr 2018 00:12:54 -0400 Received: by mail-it0-f68.google.com with SMTP id e98-v6so1593027itd.4 for ; Wed, 04 Apr 2018 21:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xG2xkt0PwC1czfsJPyyHXeby1gao3QlUbK6xEGknqE0=; b=ExGqeEgeLtIA7NHDSGo3M4Ach58lT0kcJwt8HfRo73OHPha0lIR2PqExMkaZ4ne3qA +uqN+93YXmJT/EbK/EWJH6hh87Kj3u3vKlWjWeuIXphwPv/08RncFgPzUH7QlItAwAZA SODJUSxhs5EABsMj3i1IQ7cqRrg6qzEMmi5eZ3tJ5DpTWfwvvORrPORl5St6AYbVfSJO r4LhmuLAgRVj+YDdec2v1foGhaUBoo4nPOdY3rmT0s176r9WJ+xXJflE37xH6k+S/a4Y jXSVSm4y4BrR5WIrdZuOiDhVOkRUWUZhxbQ7aGjRMMrwtYmzfY2d7nAf6nmntTUS1iOL aIaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xG2xkt0PwC1czfsJPyyHXeby1gao3QlUbK6xEGknqE0=; b=MRLrMMj3lN82hGRLeeOk5fLPUlHTT+12Fdgicvk+2SPe7lT6FKJrHtmB2IL2zH7e02 P5luR3rQo3YZfHMJXK1tzT9x1+VZ9WITUuCpksARFShow0SnSYV8AnpV/9YaH8sLus7N Y6D0oYqGkcOmgLoQ0wq978UYy+TXGq/Vo/s7Zw1Mo6T08Vpn8KLPS+WXjr8W5pe7F+WX kWjK2lXk68s8p0hBtk5q7hUQmjUI0K+n/LPShLg7yqvjqYs5sZyMfgxwdExu5Cj2EcLF 41ZRf7YO5I+jF+QWBmPLYB1+hHmDojWzU4p1VrdkIm7+PMNCtSdc+9BCqUEkeJ66QyKJ S4Ew== X-Gm-Message-State: AElRT7HzdwEyULl1fxDVg1zLp44InOgRzgprRml8SMWjX4fzrx8cb7Cs 1w7attun/SChsIGZ5ztsHINcbaAqO18nb34x+dg8fw== X-Received: by 2002:a24:464e:: with SMTP id j75-v6mr11515557itb.28.1522901573353; Wed, 04 Apr 2018 21:12:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.11.158 with HTTP; Wed, 4 Apr 2018 21:12:52 -0700 (PDT) In-Reply-To: <20180405025841.GA9301@bombadil.infradead.org> References: <20180403121614.GV5501@dhcp22.suse.cz> <20180403082348.28cd3c1c@gandalf.local.home> <20180403123514.GX5501@dhcp22.suse.cz> <20180403093245.43e7e77c@gandalf.local.home> <20180403135607.GC5501@dhcp22.suse.cz> <20180404062340.GD6312@dhcp22.suse.cz> <20180404101149.08f6f881@gandalf.local.home> <20180404142329.GI6312@dhcp22.suse.cz> <20180404114730.65118279@gandalf.local.home> <20180405025841.GA9301@bombadil.infradead.org> From: Joel Fernandes Date: Wed, 4 Apr 2018 21:12:52 -0700 Message-ID: Subject: Re: [PATCH v1] kernel/trace:check the val against the available mem To: Matthew Wilcox Cc: Steven Rostedt , Michal Hocko , Zhaoyang Huang , Ingo Molnar , LKML , kernel-patch-test@lists.linaro.org, Andrew Morton , "open list:MEMORY MANAGEMENT" , Vlastimil Babka Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 4, 2018 at 7:58 PM, Matthew Wilcox wrote: > On Wed, Apr 04, 2018 at 11:47:30AM -0400, Steven Rostedt wrote: >> I originally was going to remove the RETRY_MAYFAIL, but adding this >> check (at the end of the loop though) appears to have OOM consistently >> kill this task. >> >> I still like to keep RETRY_MAYFAIL, because it wont trigger OOM if >> nothing comes in and tries to do an allocation, but instead will fail >> nicely with -ENOMEM. > > I still don't get why you want RETRY_MAYFAIL. You know that tries > *harder* to allocate memory than plain GFP_KERNEL does, right? And > that seems like the exact opposite of what you want. No. We do want it to try harder but not if its already setup for failure.