Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2970236pxt; Mon, 9 Aug 2021 13:26:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd/fAPSxS8u7cdAEDtU8StA2WkCd1MyOpoCkIS6qU1t9lNgnBFMfpZWZImLtM2L1nTSr3L X-Received: by 2002:a17:906:fcd7:: with SMTP id qx23mr10771158ejb.267.1628540772142; Mon, 09 Aug 2021 13:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628540772; cv=none; d=google.com; s=arc-20160816; b=Rfe75i8ILAB/QF8Q7VgOXoeorDEuMbPqQEkbzHZFqgQyO666Vw6FbH/mqs8IigiY9t AqxsBPX3PzxQ8/fdv8b01VDAB9WQ0Shd76Qs0zkTaV3fLlrn3nKL0jcLxl7k9muXJvEA s8YCyyFxXnlAUmn4rLPbIDPuDiJairAF220AP6EmRy51DWZtbc9HUZos6MKOEXciEUVG fBwqz+R7cPe16n12cM5CqfN9F9CBWrSOofJHbPreJ2JgAoghlNK1os6wmxO96IxM9zoA OfMZ7abcvMUmSJonhSAsJAH8xxQ+10cIlljGlWr5Mbj7SWBb9YMh33s/0S7ZJp5o0Kh7 Ey2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=TEDhCij5SFJpBaGl9DgQ5wDfVd+hPB6d34sucdnyims=; b=ETM2Cc6KgPqc6+Q7Ngk1JLetCpdQmiA+x1jAP+C+L3zjPylEI/apihtdgaM7Pd3CjP ZBqxz2k4QkZe0OEIGSdvPoGTab8RXw3epun61myIdAdYlFP1ZXVLQWRLwTaOz4qzO2x9 MImsjJd+8GgjKUB/PAdb4FPPvHCghzt+rvOOz8m8vrSZ4uK/qOMhdAewxU1QBOZxub8Z 7T+5dvZQeRbvyMLtgAX9vIabS1mkSRlEzf0bISLtjLZAi5vmrR9VBOt8kaiHAoEf+ctc 7P/cjfzvFJ3j+cxs3OkxpYCbfUBwQRlvtdcE2W8Zb8GDOun+sicTGREZgWDqobDRkSzs T4AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TogOBzij; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gy19si17696632ejb.244.2021.08.09.13.25.48; Mon, 09 Aug 2021 13:26:12 -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=@google.com header.s=20161025 header.b=TogOBzij; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234186AbhHIRbx (ORCPT + 99 others); Mon, 9 Aug 2021 13:31:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234366AbhHIRbt (ORCPT ); Mon, 9 Aug 2021 13:31:49 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF75CC06179B for ; Mon, 9 Aug 2021 10:31:28 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id w13-20020a17090aea0db029017897a5f7bcso1015673pjy.5 for ; Mon, 09 Aug 2021 10:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TEDhCij5SFJpBaGl9DgQ5wDfVd+hPB6d34sucdnyims=; b=TogOBzij2yEXJ4q8HgdNTI0nJv6h0CeFc22hKEpjP0+6eY259cqvQeNGzb88/b+Snu EohERG9g9w2cl7ZD2AlWkT1b/l1X25sdq2vX0nvThby/EH7+1d08BCR2RkQQvC41U7ge 8Hzb8rvcIs7UfFF4fD728MLnq5+2DzIjugCZWmqM0xJvslwWpyCYkmtScuwfl1aVTxiY ADhSNvWnVc6fFzGDReT8VY/W6EmZdDH/YqiyWyjqiDq+aVhl2oXW5qP1FVBGehGcYwuS 6sb/NUwPknsDIZleShmWUy6B0MB5g6hKxZSW7V0iG7WmYJ1Rxgb7TvimuQXhrEdvSaqy PxIg== 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:content-transfer-encoding; bh=TEDhCij5SFJpBaGl9DgQ5wDfVd+hPB6d34sucdnyims=; b=nyCF4km6nsKW+WeZX9usRB4jAiH1kKcCu72IyMABAYsh4h4XqAdLnrACFAay8zzmxs 6c/vgK8eMZkKbJtvCw3sEjFVvyyZfteq89QpJJmmYRh2gUgBhPc6rcULYiXspSYmScL7 9l6i8APjaoAGQGZZm14ejrFDMb4DLyX7LAGRZGrxGvqahPzn26RLk7DBMGRjdLsne98U LpArvPhUt72E3EzgAZOLnxR7FQCzz6rrhdLrbY4wp/5ixaT9HN4Yy2zXGClP9gIF00oB ZeUW6I6DP6a4V4oJ0Jtls90lUEj8Ivw7vvt+VDpNRAdKfl1QsD/xgjqjre7QyWQvttGt MHyQ== X-Gm-Message-State: AOAM532k1Y0pfVbeKk+woWUsB8dbTH3o3dtD05O3WXBAdJMPGlyNExTk Ho4uSGUQffMI3xclxV80owc+YrCTRxU9RY3vJ/XVSg== X-Received: by 2002:a17:902:d48a:b029:12c:2142:6702 with SMTP id c10-20020a170902d48ab029012c21426702mr13863913plg.53.1628530287930; Mon, 09 Aug 2021 10:31:27 -0700 (PDT) MIME-Version: 1.0 References: <20210805044411.18966-1-zhangkui@oppo.com> In-Reply-To: <20210805044411.18966-1-zhangkui@oppo.com> From: Suren Baghdasaryan Date: Mon, 9 Aug 2021 10:31:17 -0700 Message-ID: Subject: Re: [PATCH] process_madvise.2: Add MADV_WILLNEED to process_madvise() To: zhangkui Cc: linux-man , alx.manpages@gmail.com, "Michael Kerrisk (man-pages)" , Andrew Morton , LKML , linux-mm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 4, 2021 at 9:44 PM zhangkui wrote: > > Add MADV_WILLNEED to process_madvise() for read-ahead swapped > out memory immediately when the app switches to forground. > > https://lore.kernel.org/patchwork/patch/1472006/ > > Signed-off-by: zhangkui Reviewed-by: Suren Baghdasaryan > --- > man2/process_madvise.2 | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/man2/process_madvise.2 b/man2/process_madvise.2 > index a6c8724d4..caa8bc0b3 100644 > --- a/man2/process_madvise.2 > +++ b/man2/process_madvise.2 > @@ -112,6 +112,10 @@ See > .BR MADV_PAGEOUT > See > .BR madvise (2). > +.TP > +.BR MADV_WILLNEED > +See > +.BR madvise (2). > .PP > The > .I flags > -- > 2.25.1 > > ________________________________ > OPPO > > =E6=9C=AC=E7=94=B5=E5=AD=90=E9=82=AE=E4=BB=B6=E5=8F=8A=E5=85=B6=E9=99=84= =E4=BB=B6=E5=90=AB=E6=9C=89OPPO=E5=85=AC=E5=8F=B8=E7=9A=84=E4=BF=9D=E5=AF= =86=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=BB=85=E9=99=90=E4=BA=8E=E9=82=AE=E4=BB=B6= =E6=8C=87=E6=98=8E=E7=9A=84=E6=94=B6=E4=BB=B6=E4=BA=BA=E4=BD=BF=E7=94=A8=EF= =BC=88=E5=8C=85=E5=90=AB=E4=B8=AA=E4=BA=BA=E5=8F=8A=E7=BE=A4=E7=BB=84=EF=BC= =89=E3=80=82=E7=A6=81=E6=AD=A2=E4=BB=BB=E4=BD=95=E4=BA=BA=E5=9C=A8=E6=9C=AA= =E7=BB=8F=E6=8E=88=E6=9D=83=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E4=BB=A5=E4= =BB=BB=E4=BD=95=E5=BD=A2=E5=BC=8F=E4=BD=BF=E7=94=A8=E3=80=82=E5=A6=82=E6=9E= =9C=E6=82=A8=E9=94=99=E6=94=B6=E4=BA=86=E6=9C=AC=E9=82=AE=E4=BB=B6=EF=BC=8C= =E8=AF=B7=E7=AB=8B=E5=8D=B3=E4=BB=A5=E7=94=B5=E5=AD=90=E9=82=AE=E4=BB=B6=E9= =80=9A=E7=9F=A5=E5=8F=91=E4=BB=B6=E4=BA=BA=E5=B9=B6=E5=88=A0=E9=99=A4=E6=9C= =AC=E9=82=AE=E4=BB=B6=E5=8F=8A=E5=85=B6=E9=99=84=E4=BB=B6=E3=80=82 > > This e-mail and its attachments contain confidential information from OPP= O, which is intended only for the person or entity whose address is listed = above. Any use of the information contained herein in any way (including, b= ut not limited to, total or partial disclosure, reproduction, or disseminat= ion) by persons other than the intended recipient(s) is prohibited. If you = receive this e-mail in error, please notify the sender by phone or email im= mediately and delete it!