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