Received: by 10.213.65.68 with SMTP id h4csp1266656imn; Sat, 7 Apr 2018 23:00:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx49xIcnsNvOe/0Mq4aSrg9OxRFQp028jnluvns19qg5betfjEWJmTH/uMJdmep87ce5Nt5wG X-Received: by 10.101.100.132 with SMTP id e4mr21961322pgv.240.1523167244764; Sat, 07 Apr 2018 23:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523167244; cv=none; d=google.com; s=arc-20160816; b=d4WY9LmBPDmUGWg3mkHr8chu66UnfVFcXj/y1zF46EAqPcSRjmOMIiA0t/0f9o+cfw oM4/tgq5GIDEVkpDeWBydgvAb4Ug5swiVa9SQLFhUN/RkrEZSqdFQ20fHcOK7Gy/BZYF 03UhmkWRRxdQQ8hIHX/3Wz+g7VjVYSAWmGmRVL0MT6MLylBWYbOE1jif/UoT3wRIrJxC SBVkNbnuXrbwLmU/xS/JZ2CNMYr3LpdyDzCR+u20wqoqKSzfrvqVLt1skbJZ4SJzNjNC 1mbQXegKKTSl4/r1ZLddsspL72AlRvFU2KZewq0ovnn7ZEcmCwY+YMM5I75bwHyha/VZ T0Cw== 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=89ViZqrXJTvUYqd3JfJvthOaMlL0gjlkq27wtMGRgl4=; b=HvU5AZ+2e4o/JRbkhWlrinmNVxfz4cAlS7QwIZIGm+/HKGnYTos/V4PRpWGpKLOkL0 ZyPPcL972h/shBt7g7SmQQC6njLIng6wEfA7cOB/wjajQdI6tTTxvxwcVzNGW1gidJpY xVcFuAh8v3bVmBgP2+ypBK5esmOJylu4h8GQ135iKHVQ0ionxLUVpDF/3fZ+cVBMV7iI FKxYrUN/Bq4MOLNx1olVHlr7BkVf7X6b2c2ByxmgrPq2NKEcvm02q7B9JtCre8Q8+AGJ VkFNWLBCtYP3jbwdLKw5tutKsRAMoMCnSNLP58NorspLYqtpwYoX3s98t2dBRw+dLxJ9 LJbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cGEFCujV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si9456832pgq.230.2018.04.07.22.59.33; Sat, 07 Apr 2018 23:00:44 -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=@gmail.com header.s=20161025 header.b=cGEFCujV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751343AbeDHFzC (ORCPT + 99 others); Sun, 8 Apr 2018 01:55:02 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:39081 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810AbeDHFzB (ORCPT ); Sun, 8 Apr 2018 01:55:01 -0400 Received: by mail-wm0-f41.google.com with SMTP id f125so9556552wme.4 for ; Sat, 07 Apr 2018 22:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=89ViZqrXJTvUYqd3JfJvthOaMlL0gjlkq27wtMGRgl4=; b=cGEFCujV7xbhhialfd6LkNCtDd0CNgAerY+MLig1IFm5vSxk/BzHR9z7kWzkvPTFCr SPlesb8uThQXoQCMwYs7w5A7DnHe+tv/uUGu5Q2mbFbf9P++hzgWh3jwMjkNX95h33gn 3G2+GBR6piGuSb5QCJu1bJUJe90UiWaHKLhc3ZGJBsCrIWSAr703FbXxXhOhVnnLw93Q NO1c997gNfEPAq4KPJM6/qFoM7mjzD/7l9aaSSMgoj2z86wxG/xNVyJM5JpVUXtvljDF kSLgBMo5oMth6cI2TzEuQoF/8ALj0g5sNPblDihF7ev1qb4csJ+xa1zskWIwb2CEDUlu Na7A== 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=89ViZqrXJTvUYqd3JfJvthOaMlL0gjlkq27wtMGRgl4=; b=FhZaUXbvjrBbinSnrgAIJnTbqHmKbLr2roTp143dOHry7skrEpOJ34I0qKAK/7KExb X6NbMghbGHZfx+IbS+7q6Isn9JTusNrfxEnjdYxa8Nk4fd7DaLXvvcDq+RKVCL/9dMVI MAnD/q9zQ93o8bO11vFznGYI9Sqb2t24q5VnMJH3OHXREOXy9Q0aDIhGvP9w/NxPd7q2 KXpl6uJKW9sb6kCWpO1SzMbaZPl1OtFAcp6XzJL9cRmw9tW7zk6GFSvsSCTx/YbViceb HsfA47CqaeWEedOQkV295fiwyYTfTLWmWrtjT7SdwujSJodud/vFGOgtAjaZFLR1FNh9 YA7g== X-Gm-Message-State: ALQs6tCRvafnTMR/y1NN3TfaqUEZR3RbfKQ27hxj89tN8u2J4U6jq3dN 8O9WLVkQDaE07mgHCOA+qnf6898OizKE9D5yOtd+zQ== X-Received: by 10.80.145.111 with SMTP id f44mr15495087eda.29.1523166900211; Sat, 07 Apr 2018 22:55:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.201.76 with HTTP; Sat, 7 Apr 2018 22:54:59 -0700 (PDT) In-Reply-To: <20180407234812.2bf2b24b@gandalf.local.home> References: <1523153783-20579-1-git-send-email-zhaoyang.huang@spreadtrum.com> <20180407234812.2bf2b24b@gandalf.local.home> From: Zhaoyang Huang Date: Sun, 8 Apr 2018 13:54:59 +0800 Message-ID: Subject: Re: [PATCH v1] ringbuffer: Don't choose the process with adj equal OOM_SCORE_ADJ_MIN To: Steven Rostedt Cc: Ingo Molnar , LKML , kernel-patch-test@lists.linaro.org 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 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;