Re: [PATCH v3 1/3] mm/pageblock: mitigation cmpxchg false sharing in pageblock flags

2020-09-03 Thread Alex Shi
在 2020/9/2 上午1:06, Vlastimil Babka 写道: >> >>pageblock pageblock pageblockrc2 rc2 >>rc2 >> 1616-216-3 a b >> c >> Duration User 14.81 15.24 14.55

Re: [PATCH v3 1/3] mm/pageblock: mitigation cmpxchg false sharing in pageblock flags

2020-09-01 Thread Vlastimil Babka
On 9/1/20 4:50 AM, Alex Shi wrote: > pageblock_flags is used as long, since every pageblock_flags is just 4 > bits, 'long' size will include 8(32bit machine) or 16 pageblocks' flags, > that flag setting has to sync in cmpxchg with 7 or 15 other pageblock > flags. It would cause long waiting for

[PATCH v3 1/3] mm/pageblock: mitigation cmpxchg false sharing in pageblock flags

2020-08-31 Thread Alex Shi
pageblock_flags is used as long, since every pageblock_flags is just 4 bits, 'long' size will include 8(32bit machine) or 16 pageblocks' flags, that flag setting has to sync in cmpxchg with 7 or 15 other pageblock flags. It would cause long waiting for sync. If we could change the pageblock_flags