lkml.org 
[lkml]   [2022]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v3] mm: add thp_utilization metrics to /proc/thp_utilization
Date

>
> Ah! So when that exists, this interface tells us "how well" we're doing.
>

Yes, exactly.
>
> Yeah, debugfs seems like a better place. And I'd love to see the shrinker
> code. Before you mentioned that I was having all kinds of peculiar
> feelings about this code. For example, suppose you have incredibly hot
> 256kB of data, but the other 1792kB of data are never touched ... that
> could cause us to do entirely the wrong thing and break up this THP.
> Having it as a shrinker makes sense because the hot 256kB will keep the
> THP from reaching the end of the list and being reclaimed.

Sounds good, I’ll move this to debugfs then. Will follow up with the shrinker code
in another patch. The shrinker relies on this scanning thread to figure out which
THPs to reclaim.

What are your thoughts regarding integrating this with DAMON?
\
 
 \ /
  Last update: 2022-08-05 21:52    [W:0.421 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site