Received: by 10.213.65.68 with SMTP id h4csp1543198imn; Sun, 8 Apr 2018 06:05:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx49cWAHPwgB38fKj3etneNp+8ckD+wvSmA8Hs2Y34LIai3Jo6XHTHtcO9k6GHN7etsaYUASV X-Received: by 2002:a17:902:864b:: with SMTP id y11-v6mr34523820plt.165.1523192704260; Sun, 08 Apr 2018 06:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523192704; cv=none; d=google.com; s=arc-20160816; b=NuL8UKWS5pAfSOsNflYhvGhUrBXD9wUt0izmM4WQOekHBB2vo7jEP5eRAEzQAcGFKm dP9U/L2qIsLS+ZCgqZbo+jwZP1QU3r5szZoWgzisNWqIpJxqafx3PJKSxoNHzVst5iOW Ils281eWs2sbfc1XdfXcPc0e8nt+06D6PVjtO1Lk+tfB/QWAi3d51uyJO/DD7LVKMO7G LurZm1OLoFYNuomkONo8ZyeO/LO4kqbbSEhxOvwT2GmPS01rhzSOARUtjan+VlH9skAl dKEpD9g6AIE1ruOF7shuEDItHhQSJMsOSvj4pdfx9tlI8L8zlLQCvwYcXCFglI2ILTsX F+CQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=Kg6Ip2trJfQ7JKEJ0MQbfhf4yf9CQwcpJ56PPeamybY=; b=1CoawAPcyeE0y9qvEJI7P3efo77qE2hoTdcf50ELGTbANQt4RBuAi+OGwsx9VPsuGC E9YO9icd4bhyJ0x9rh+mSvPB2D1ANb+p76ALcXHXNZZuz/MjDXV+k5PXVA5xGGt+Hgjh OW40xbZj6xDAF+5RCOgpByZD5Jz15zsHNb4isgFUBsPak0eVFFD5mifxERqpULgfbji4 zJV0Ll+vLTi1BzI8hFcS8uK5+86sMZt9ZTq1WR7iKsR2CiD/EqHq7WBlCDEINHPjY4Nx eZ594DiQP6e09OpifrIeWHiPgDZvYRZMx3Ga+OtjTOIJ1RB+OoMrYEzyMZz1x7UBUOyb lB0A== ARC-Authentication-Results: i=1; mx.google.com; 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 f2si954133pgr.67.2018.04.08.06.04.27; Sun, 08 Apr 2018 06:05:04 -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; 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 S1752107AbeDHMsA (ORCPT + 99 others); Sun, 8 Apr 2018 08:48:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:53896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbeDHMr7 (ORCPT ); Sun, 8 Apr 2018 08:47:59 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6A9182177A; Sun, 8 Apr 2018 12:47:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6A9182177A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Sun, 8 Apr 2018 08:47:56 -0400 From: Steven Rostedt To: Zhaoyang Huang Cc: Ingo Molnar , LKML Subject: Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN Message-ID: <20180408084717.62ee4f9e@gandalf.local.home> In-Reply-To: References: <1523153783-20579-1-git-send-email-zhaoyang.huang@spreadtrum.com> <20180407234812.2bf2b24b@gandalf.local.home> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Removing kernel-patch-test, because of annoying "moderator" messages ] On Sun, 8 Apr 2018 13:54:59 +0800 Zhaoyang Huang wrote: > On Sun, Apr 8, 2018 at 11:48 AM, Steven Rostedt wrote: > > On Sun, 8 Apr 2018 10:16:23 +0800 > > Zhaoyang Huang wrote: > > > >> Don't choose the process with adj == OOM_SCORE_ADJ_MIN which > >> over-allocating pages for ring buffers. > > > > Why? > > > > -- Steve > because in oom_evaluate_task, the process with adj == OOM_SCORE_ADJ_MIN will > be suppressed by oom_badness, but with applying your latest patch, > such process will > be selected by oom_task_origin > > if (oom_task_origin(task)) { > points = ULONG_MAX; > goto select; > } > > points = oom_badness(task, NULL, oc->nodemask, oc->totalpages); > if (!points || points < oc->chosen_points) > goto next; And what's wrong with that? -- Steve