Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp130432pxa; Tue, 4 Aug 2020 01:13:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAwrxN0yWMud0QfvbNCh72LQmuo37l0p5lXADoUb3Wq9GzMLU/DOYvr4WgQQUyOaSKT9+d X-Received: by 2002:a17:906:9385:: with SMTP id l5mr16419583ejx.144.1596528831828; Tue, 04 Aug 2020 01:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596528831; cv=none; d=google.com; s=arc-20160816; b=t1bKv11fsGeSt3bwwQGTnrkChifjyJZCBmzfOFRU1PneMGuTMv3kEuLpz5qwQURt7j n8xU7SJlZwYLfX5pKB6uHDPWTsTozZrCg1y99aaABrLSZfBT5mGbWTFSN92cbhnB5h8L Mt4ixSqzCWgaQpPQBE873LU2jErnYg+/kNQFd2le0cGdz+qH7bF3v769azU+MZGq3cgV gJxgvzYjzJBcf0GIIQFV5oYNAb+RsVlClmpnN/eW1ulNuDbm3NH1+P32y70os6QTtL/w wwBckyuVk1qxE/AC8NPaivqHIkNDcMUcfGbuoU++67i1xWe1Rt3vqKOleR/L11kRkJV3 NI2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=JsIL8jrFedp2Woc87e4r+iIqBkcI16L90Ywa8OrR1fc=; b=lrqqFwMh8HI4PCHmxbqEXSqNSTYhTqyq0Ve7/7pkVD9al0O1mWyjI9pUlKUaCsSsWD uUPAXDH/VhJkzMJipLeYKY8/dIsJ9ewNy5J0ohj84tmM3BM8ag9Arqwv1+djIkq7XHQr P8zrxfXjuYuXBzbITguNIvvWgMDAYdZrHY6D7QD+EITPw682tHiiAlnw5H1joSGgpFKo hTo/mzvAKE7dq8ZA8sO28GyYjdfLzMttzesn2h7EfOLXsbNaCCmPkPtFINlcpMFJrVAO 4qheZSR50TUadE6CGNV1MG4RojESt2eUep1LyDuH/FRnXmHP1X8fkdeYkUzZuOB88XhQ zIkA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si11893095edq.250.2020.08.04.01.13.28; Tue, 04 Aug 2020 01:13:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728931AbgHDINW (ORCPT + 99 others); Tue, 4 Aug 2020 04:13:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:55112 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbgHDINV (ORCPT ); Tue, 4 Aug 2020 04:13:21 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2114FB64A; Tue, 4 Aug 2020 08:13:36 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 04 Aug 2020 10:13:19 +0200 From: osalvador@suse.de To: Qian Cai Cc: =?UTF-8?Q?HORIGUCHI_NAOYA=28=E5=A0=80=E5=8F=A3=E3=80=80=E7=9B=B4?= =?UTF-8?Q?=E4=B9=9F=29?= , nao.horiguchi@gmail.com, linux-mm@kvack.org, mhocko@kernel.org, akpm@linux-foundation.org, mike.kravetz@oracle.com, tony.luck@intel.com, david@redhat.com, aneesh.kumar@linux.vnet.ibm.com, zeil@yandex-team.ru, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 00/16] HWPOISON: soft offline rework In-Reply-To: <20200804014942.GC8894@lca.pw> References: <20200731122112.11263-1-nao.horiguchi@gmail.com> <20200803190709.GB8894@lca.pw> <20200804011644.GA25028@hori.linux.bs1.fc.nec.co.jp> <20200804014942.GC8894@lca.pw> User-Agent: Roundcube Webmail Message-ID: <3349ee83873c944a4276e4547e78ab1e@suse.de> X-Sender: osalvador@suse.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-04 03:49, Qian Cai wrote: > > Well, each iteration will mmap/munmap, so there should be no leaking. > > https://gitlab.com/cailca/linux-mm/-/blob/master/random.c#L376 > > It also seem to me madvise(MADV_SOFT_OFFLINE) does start to fragment > memory > somehow, because after this "madvise: Cannot allocate memory" happened, > I > immediately checked /proc/meminfo and then found no hugepage usage at > all. Unfortunately I will be off for a week, but out of curiosity, could you try out with below tree [1] and see if you still see those issues? Thanks for your time [1] https://github.com/leberus/linux-mm-1/tree/hwpoison