Re: [PATCH v5 00/16] HWPOISON: soft offline rework

From: osalvador
Date: Tue Aug 04 2020 - 04:13:23 EST


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