From: Shuang Qiu Date: Thu, 12 Sep 2019 11:35:07 +0800 Subject: [LTP] [PATCH] madvise09:Change PAGES size to the value more than 32 In-Reply-To: References: <1567576823-10080-1-git-send-email-shuang.qiu@oracle.com> <20190911111900.GA19244@rei.lan> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it On 09/12/2019 10:51 AM, Li Wang wrote: > > > On Wed, Sep 11, 2019 at 7:19 PM Cyril Hrubis > wrote: > > Hi! > > I'm not sure why 64 pages is a proper value? Can you explain more? > > I've just talked to Michal Hocko and the conclusion is that we should > allocate several megabytes to avoid depending kernel implementation > details, which would mean allocating thousands of pages. > > > Sounds reasonable. Allocating thousands of pages must trigger > the?MADV_FREE page reclaiming. > > @shuang.qiu, Hi Shuang, would you mind to rewrite the patch, or should > I do that? Thanks for helping to investigate this issue. I will update the patch. 32 pages is really small in current system which may be held on reclaiming small piece of memory,thousands of pages is reasonable. Thanks Shuang > > -- > Regards, > Li Wang -------------- next part -------------- An HTML attachment was scrubbed... URL: