Received: by 10.213.65.68 with SMTP id h4csp1437633imn; Wed, 4 Apr 2018 20:01:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx49BR/F1uD6CPhf7pJZ8DFnQ/QjC+o0AJAwRoprBMDQ5BIADDsk29e/cSgkrWYyTpiWyo1kY X-Received: by 10.99.113.94 with SMTP id b30mr13499568pgn.196.1522897265696; Wed, 04 Apr 2018 20:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522897265; cv=none; d=google.com; s=arc-20160816; b=rCLSoe0Bw0hLB9JcOvXkxFQdJD0uxqWjTaIRu/Uew7VidjePgzeGY1LcbOtyvp+JDX 9sa6JY/bGzK1ehQKVoZ8JuADyVBaOa9w19/fa2ZbB+tU0EABVqbJ0hRS3EfKarUdYAeI gXsEJyPLUqb4irabc/rxVxATuxWAuG8FtOScbcBox2wUaE+aNqDDtFZValNdOKxiastN w/D2UIemqqtn9ACcatoXxlcx/xvV3vIBTGk2Hg+eEqCo/WVjd87V9Cxbhktq4y5RzdxN lM+kSfixrwyVi1/E60rxSJFVmkNMsUW3pHuwdBnHB7RjJOt7PyXscAvC5zWF57D2adrq 1fOg== 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:arc-authentication-results; bh=r1NTlBEgde0phwrDkkmFHSI4vJRXBdzCw5CJv84M1aM=; b=dI3ulvE0PTIdUepk//8rt3Pwe6xFicOZ85A6rkv2ZYLBcod/BYGL4a8sfM5g4MK9sE zthCEZBGdRHjSK1Nx+53AjQfmm79Bl1txsR6QXqWD2GO/8mSIOnFAywK3SX3+NBY2C9Q aFGMV+JaiNUNoK6I8Y8LHXkgj4N5zZsnCpfHHp8xBd2+wDQaLw6N0/8j6KC+xZLfV0XR PwPe0vuNRu6F7t3pdctUwxf2pwI9XNlj27IzigEhir22ZQV2ReGG0QQlRBT5Pjwmqu0y 9/ccdvv9G6GrOCwm2MS72yoagEt7wdvIZWOXipYZyucCGZQTq0rPdx5iVo9PP06unrja 4vkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XUl5zvYZ; 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 e12si5232823pff.366.2018.04.04.20.00.40; Wed, 04 Apr 2018 20:01:05 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XUl5zvYZ; 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 S1751242AbeDEC6q (ORCPT + 99 others); Wed, 4 Apr 2018 22:58:46 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40112 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750890AbeDEC6p (ORCPT ); Wed, 4 Apr 2018 22:58:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=r1NTlBEgde0phwrDkkmFHSI4vJRXBdzCw5CJv84M1aM=; b=XUl5zvYZ7o7SWXKw/Apc+x9Nq ssVXaWg5DRq2BnECVH7WCRuTAQHLk4lVG9spKmdgSOoiz3GrMx78zCL7OITk9HlLtSX+nW2RRzN95 p32gv6EZ9u3sA88Ti/PiQqU8j//YUT//j33KK7nqnTDHorypjcS33y54YkT+yb0Ya1u1h2wYzjYLs 1xUzALuFj+kwctmCm03Kbw7VeXQdMcbuZG9PtB3un286/VH0wVg4HaBqy4BE27m0hfOqm+9N4xUpa EqR6Y/XAsfm2VdDpFSzDR9DhEpCDNvQ6ljHhW1GpLdNjn9xfdLdt5XAviqueizNDlswKPATCgUgPq 6StptPA9g==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f3v6o-0001p8-3Q; Thu, 05 Apr 2018 02:58:42 +0000 Date: Wed, 4 Apr 2018 19:58:41 -0700 From: Matthew Wilcox To: Steven Rostedt Cc: Michal Hocko , Zhaoyang Huang , Ingo Molnar , linux-kernel@vger.kernel.org, kernel-patch-test@lists.linaro.org, Andrew Morton , Joel Fernandes , linux-mm@kvack.org, Vlastimil Babka Subject: Re: [PATCH v1] kernel/trace:check the val against the available mem Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180404114730.65118279@gandalf.local.home> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.