在 2019/8/20 下午10:00, Matthew Wilcox 写道:
> On Tue, Aug 20, 2019 at 05:48:37PM +0800, Alex Shi wrote:
>> @@ -159,7 +159,7 @@ static inline bool free_area_empty(struct free_area
>> *area, int migratetype)
>> struct pglist_data;
>>
>> /*
>> - * zone->lock and the zone lru_lock are two of the hottest locks in the
>> kernel.
>> + * zone->lock and the lru_lock are two of the hottest locks in the kernel.
>> * So add a wild amount of padding here to ensure that they fall into
>> separate
>> * cachelines. There are very few zone structures in the machine, so space
>> * consumption is not a concern here.
>
> But after this patch series, the lru lock is no longer stored in the zone.
> So this comment makes no sense.
Yes, It's need reconsider here. thanks for opoint out.
>
>> @@ -295,7 +295,7 @@ struct zone_reclaim_stat {
>>
>> struct lruvec {
>> struct list_head lists[NR_LRU_LISTS];
>> - /* move lru_lock to per lruvec for memcg */
>> + /* perf lruvec lru_lock for memcg */
>
> What does the word 'perf' mean here?
sorry for typo, could be s/perf/per/ here.
Thanks
Alex
- [PATCH 03/14] lru/memcg: using per lruvec lock in un/lock_p... Alex Shi
- [PATCH 04/14] lru/compaction: use per lruvec lock in isolat... Alex Shi
- [PATCH 01/14] mm/lru: move pgdat lru_lock into lruvec Alex Shi
- [PATCH 10/14] lru/swap: use per lruvec lock in release_page... Alex Shi
- [PATCH 02/14] lru/memcg: move the lruvec->pgdat sync out... Alex Shi
- [PATCH 08/14] lru/swap: uer lruvec lock in activate_page Alex Shi
- [PATCH 14/14] mm/lru: fix the comments of lru_lock Alex Shi
- Re: [PATCH 14/14] mm/lru: fix the comments of lru_lock Matthew Wilcox
- Re: [PATCH 14/14] mm/lru: fix the comments of lru_... Alex Shi
- [PATCH 07/14] lru/swap: using per lruvec lock in page_cache... Alex Shi
- [PATCH 05/14] lru/huge_page: use per lruvec lock in __split... Alex Shi
- [PATCH 12/14] lru/vmscan: use pre lruvec lock in check_move... Alex Shi
- Re: [PATCH 00/14] per memcg lru_lock Michal Hocko
- Re: [PATCH 00/14] per memcg lru_lock Shakeel Butt
- Re: [PATCH 00/14] per memcg lru_lock Alex Shi
- Re: [PATCH 00/14] per memcg lru_lock Alex Shi
- Re: [PATCH 00/14] per memcg lru_lock Daniel Jordan

