lkml.org 
[lkml]   [2020]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 113/131] mm: balance LRU lists based on relative thrashing
From
Date


在 2020/6/4 上午7:03, Andrew Morton 写道:
>
> + /* XXX: Move to lru_cache_add() when it supports new vs putback */

Hi Hannes,

Sorry for a bit lost, would you like to explain a bit more of your idea here?

> + spin_lock_irq(&page_pgdat(page)->lru_lock);
> + lru_note_cost(page);
> + spin_unlock_irq(&page_pgdat(page)->lru_lock);
> +


What could we see here w/o the lru_lock?

Thanks
Alex

\
 
 \ /
  Last update: 2020-06-09 11:16    [W:0.043 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site