Re: + mm-hugetlb-fix-race-when-migrate-pages.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri 22-07-16 07:17:37, Naoya Horiguchi wrote:
[...]
> I think that (src_pte != dst_pte) can happen and that's ok if there's no
> migration entry. 

We have discussed that with Naoya off-list and couldn't find a scenario
when parent would have !shared pmd while child would have it. The only
plausible scenario was that parent created and poppulated mapping smaller
than 1G and then enlarged it later on so the child would see sharedable
pud. This doesn't seem to be possible because vma_merge would bail out
due to VM_SPECIAL check.

> But even if we have both of normal entry and migration entry
> for one hugepage, that still looks fine to me because the running migration
> operation fails (because there remains mapcounts on the source hugepage),
> and all migration entries are turned back to normal entries pointing to the
> source hugepage.

Agreed.

> Could you try to see and share what happens on your workload with
> Michal's patch?

Zhong Jiang did you have chance to retest with the BUG_ON changed?

-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]