Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1471278pxf; Fri, 2 Apr 2021 11:21:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd5cv2FYVpe9TlsFNtUUsrEaTJMcZObdfRsYOun8sWnpnM5I1MckP1wtYDla2rKsd9WfzA X-Received: by 2002:a17:906:1b42:: with SMTP id p2mr15467293ejg.236.1617387665864; Fri, 02 Apr 2021 11:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617387665; cv=none; d=google.com; s=arc-20160816; b=qGmqW1vWZH1961dQZYZPxbvLUZzO7xd0HoBiWH70fg4GRX4uyFPXrtSFIzSlq6D/vO RHwK8Ehen5ayJwbt5k8Dh1q6979IL5ljWf3mcwGsBdvRf6p0z4VHxEWhg8HiZ4jmvODC UeojwEXGMlykcziaxkfl4kpb4XIJqxrONx1gfdCoQTYnDH9LINJjNDNhCwdISSW2xHeX yyMO6N8JO/x8G+jjDiBlEYDBmd2jO+fFMRSUXVNW0JfB2MtFZu8Bhijq2LdjG4SX47xS zTuN1qIW7NTHcb0wXwAQSvztt7ENQPrpYXq5DtK7SPiRUp2JN8v7AclgBBfV0/S8aJlw gcrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ccSWi23ioLarklHBwKpDmvtB7DFqOqi/sX0Oeizonp0=; b=Q9hWTRS8PhlGlWvRhPZZ4y1NUSRjhFRKSsxmuTngNwv04A4X2Ogd6amJrmcVyjeA/g KZtUx1HsCiz2fYtWR95/mz53dgZ4Zxm+YYnNOcVFJV4swuKt9NbygYk+5BFRx0pmkI5i 2lO0I6zoFiBfHvIBo++JmCVE9Si9y9NNJa5Xajkihsu2yCb3Erxxko23nPt4FmYZ1fxq 2x3C6WxIieaTYkLknGXS0w2IWelXu3bCVm2hUhDX/R5n3NTE+vxt136/FrqClsWEA6Z8 kIuTbq7zcEh3skw96xal5rtig5PMtSK4Wf7fh/4tu0f1g/Bez8WVRS6zg06WIZdCs7il aI0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xmdhjhru; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id c8si6952245edw.367.2021.04.02.11.20.43; Fri, 02 Apr 2021 11:21:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xmdhjhru; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236067AbhDBSRu (ORCPT + 99 others); Fri, 2 Apr 2021 14:17:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234652AbhDBSRt (ORCPT ); Fri, 2 Apr 2021 14:17:49 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C53DFC0613E6 for ; Fri, 2 Apr 2021 11:17:47 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id x16so6153634iob.1 for ; Fri, 02 Apr 2021 11:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ccSWi23ioLarklHBwKpDmvtB7DFqOqi/sX0Oeizonp0=; b=XmdhjhrukGOaqMeDQ7vefBMkZG0SpnAqECA1nEiU4stSwWdD3bGqPgGonZZP9di1bC DXLSoc6O9uU06VC7LO4KcT/KynhsbnH7qwdyL7tGieL3GJArfG0jpRoblw1iXm+3r9NP KI5suCFU6ihF23FYR2HhpUQSIdaaeRdLy+oI+AgA3UqPDQHOTmq2/9y23T2jW5fsmZld JTYph/lNqyUAClmaTC5EQeExcOq79G+5Anasr+7lmNNM+Xl+hwWqQYSjs1oL1FTBtwf4 sR8nEY0XW/mMC/xIBZ18rZd+3fOAyIXhRY5cvRghZsHE278TGRffpZVRq0gHVwtNWvLU UaXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ccSWi23ioLarklHBwKpDmvtB7DFqOqi/sX0Oeizonp0=; b=YbkRbynIfxvVvzHhLlQ9yfWAl+HnHQoXrlEhVqBgERKJ/plq2bcuqXcy+foW1wQU2Y fQvJHeTapp+FrrD8cXlc6iILF8pr6kvei1pqqHTn6s+g/Uwp1RgcTKPwEmMY6OkojxMx pQwakx6STbEpTjUOCwklGIvwz76P+svx8mRKS8ttWzYwE5pi+Ofbqx6Tzc5t2zNfIwui FIRj3rwWR5tJ3cVW9C1zENqjnIzEXgCoQJI6+mYQTzJCGM5gf9IEHUy1FqomS+MhWX2+ GmQ3yxftURd17uy19b2fyAv9z7VQfqe13o0KiYaffOg54Pd2AC/gOb3wveBX/uMKaOlV OlQg== X-Gm-Message-State: AOAM533uUROZw+QlBIuZI/aDwR8Ptu5c9DritJJFwypWSBWwYUGmvbKu 7wmwOQfCZYgi2CB4vDk34STsoFLq9G9Ns9RBPVtTd5wgCeE= X-Received: by 2002:a05:6638:2591:: with SMTP id s17mr13637097jat.87.1617387467177; Fri, 02 Apr 2021 11:17:47 -0700 (PDT) MIME-Version: 1.0 References: <1616751898-58393-1-git-send-email-xlpang@linux.alibaba.com> In-Reply-To: From: Alexander Duyck Date: Fri, 2 Apr 2021 11:17:36 -0700 Message-ID: Subject: Re: [PATCH 0/4] mm/page_reporting: Some knobs and fixes To: xlpang@linux.alibaba.com Cc: Andrew Morton , Mel Gorman , David Hildenbrand , Alexander Duyck , LKML , linux-mm Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 1, 2021 at 9:09 PM Xunlei Pang wrote: > > On 3/26/21 5:44 PM, Xunlei Pang wrote: > > Add the following knobs in PATCH 1~3: > > /sys/kernel/mm/page_reporting/reported_kbytes > > /sys/kernel/mm/page_reporting/refault_kbytes > > /sys/kernel/mm/page_reporting/reporting_factor > > > > Fix unexpected user OOM in PATCH 4. > > > > Xunlei Pang (4): > > mm/page_reporting: Introduce free page reported counters > > mm/page_reporting: Introduce free page reporting factor > > mm/page_reporting: Introduce "page_reporting_factor=" boot parameter > > mm/page_reporting: Fix possible user allocation failure > > > > Documentation/admin-guide/kernel-parameters.txt | 3 + > > include/linux/mmzone.h | 3 + > > mm/page_alloc.c | 6 +- > > mm/page_reporting.c | 268 ++++++++++++++++++++++-- > > 4 files changed, 260 insertions(+), 20 deletions(-) > > > > Hi guys, > > Looks "Alexander Duyck " was not > available, so Cced more, any comment? > > Thanks! Yes, my Intel account has been offline since October. If you need to reach me, my gmail is the best way to go. As far as the patch series itself I am not exactly thrilled with it. There seems to be a number of spots where things are being changed such that the CPU overhead will be much more significant. The cover page should actually say what the patch set is attempting to accomplish. In the patch descriptions you have told us what you are doing, but the why isn't completely clear. For example I am not sure if the issue addressed in patch 4 was present before patches 1-3 were introduced.