Messages in this thread | | | Date | Wed, 8 May 2024 14:32:51 +0200 | Subject | Re: [PATCH 1/4] mm/ksm: fix ksm_pages_scanned accounting | From | David Hildenbrand <> |
| |
On 08.05.24 12:35, Chengming Zhou wrote: > On 2024/5/8 17:55, Chengming Zhou wrote: >> During testing, I found ksm_pages_scanned is unchanged although the >> scan_get_next_rmap_item() did return valid rmap_item that is not NULL. >> >> The reason is the scan_get_next_rmap_item() will return NULL after >> a full scan, so ksm_do_scan() just return without accounting of the >> ksm_pages_scanned. >> >> Fix it by just putting ksm_pages_scanned accounting in that loop, >> and it will be accounted more timely if that loop would last for >> a long time. >> > > Fixes: b348b5fe2b5f ("mm/ksm: add pages scanned metric")
Acked-by: David Hildenbrand <david@redhat.com>
-- Cheers,
David / dhildenb
| |