Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp415314ybt; Wed, 1 Jul 2020 01:24:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2G09LxiuH8W7uMkqunLe2syPjstST4p4/yVR3u4EdqaAMTlJ929EKxAh3KMGydmAGgXMk X-Received: by 2002:a05:6402:3049:: with SMTP id bu9mr13908098edb.232.1593591888856; Wed, 01 Jul 2020 01:24:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593591888; cv=none; d=google.com; s=arc-20160816; b=DZgxT6U1Vp9HZbcjc9noMCzIMHcJt9fwjbSfFMu0c/Y1t4ywi6lBCepwynudxAi3/l lId90ALqSX4Cj6J96i+M38oF6npIrDDiUV8om3h6JIO089FzbpSu3f3TZ1VTZyEm1sZ4 KJKih4LFyqZ/G8GJJFrUTQRbPr94I+fWpx90bArHPPmqiXVl0VhrfAg1IXfoU357dnfw OrrXYs4myjYCsOUtuJ/vdVZfCqHj6s3UMSid7POxg4WccS/B0bMcjJhsrhjJX/TNAUGs iUx3SeY8nUDrCjohBWzzYXslvB25T6GqekDxEPdjcyK2Td+0pQ8nfe4ogR6hCKOyZ9ko enHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=F+hwblymsWIzAx0lIB6GJMkhtGvalCeqKxd/+4gD61Y=; b=WZngOvIriCekR620p33DVVT5YxrqFbswuKXIyy7DwChrlXv19InCKgTdwKTKjjan2v NNpXqKkNBG7xXeDt5wxie231arHOv8ffNP50q59nTcL73YVp/UZikKFdiHqLRksqkepC GF9qEiXFlUCySGW/2EmTGncyjOsaacwNyI6+ToxKWWDaiqtrWeBEw+gH9stUdaJPM/e6 fPesh/1XMg4JU/Z3fcdk95z5Dl/gQ/2jUdxIyW23ABHx1zZYYzdeUzWmlzpPgxmF7xMb aF7rCPVBJs6LOK3rxU6M3LhNKthH2TjI2tuK2t5wHpLHaNGR2e0gnRM8evRPw2ePDLBT L6Zw== 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 qq26si3383734ejb.675.2020.07.01.01.24.25; Wed, 01 Jul 2020 01:24:48 -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 S1728577AbgGAIWN (ORCPT + 99 others); Wed, 1 Jul 2020 04:22:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:52134 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728479AbgGAIWN (ORCPT ); Wed, 1 Jul 2020 04:22:13 -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 ED795AF21; Wed, 1 Jul 2020 08:22:11 +0000 (UTC) Message-ID: <1593591727.3586.2.camel@suse.de> Subject: Re: [PATCH v3 00/15] HWPOISON: soft offline rework From: Oscar Salvador To: Qian Cai , nao.horiguchi@gmail.com Cc: 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, naoya.horiguchi@nec.com, linux-kernel@vger.kernel.org Date: Wed, 01 Jul 2020 10:22:07 +0200 In-Reply-To: <1593498910.3046.2.camel@suse.de> References: <20200624150137.7052-1-nao.horiguchi@gmail.com> <20200630050803.GA2747@lca.pw> <1593498910.3046.2.camel@suse.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-06-30 at 08:35 +0200, Oscar Salvador wrote: > > Even after applied the compling fix, > > > > https://lore.kernel.org/linux-mm/20200628065409.GA546944@u2004/ > > > > madvise(MADV_SOFT_OFFLINE) will fail with EIO with hugetlb where it > > would succeed without this series. Steps: > > > > # git clone https://github.com/cailca/linux-mm > > # cd linux-mm; make > > # ./random 1 (Need at least two NUMA memory nodes) > > start: migrate_huge_offline > > - use NUMA nodes 0,4. > > - mmap and free 8388608 bytes hugepages on node 0 > > - mmap and free 8388608 bytes hugepages on node 4 > > madvise: Input/output error > > I think I know why. > It's been a while since I took a look, but I compared the posted > patchset with my newest patchset I had ready and I saw I made some > changes with regard of hugetlb pages. > > I will be taking a look, although it might be better to re-post the > patchset instead of adding a fix on top since the changes are a bit > substantial. Yap, I just confirmed this. Posted version had some flaws wrt. hugetlb pages, that is why I was working on a v3. I am rebasing my v3 on top of the mm with the posted patchset reverted. I expect to post it on Friday. -- Oscar Salvador SUSE L3