NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/56309 (swapctl -U is very inefficient (takes ages to eternities))
The following reply was made to PR kern/56309; it has been noted by GNATS.
From: =?UTF-8?B?SmFyb23DrXIgRG9sZcSNZWs=?= <jaromir.dolecek%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/56309 (swapctl -U is very inefficient (takes ages to eternities))
Date: Sat, 3 Aug 2024 22:01:24 +0200
For amap processing at least, it rescans the whole amap for slots
every time it does the I/O, searching for another swap slot to free.
It also does quite a lot rwlock manipulation there in order to reuse
the fault function.
I'll change this to avoid the relocking and scan each amap just once.
Hopefully that will help with the CPU usage too.
uobj swap off code does something very similar. Once the async code
works for amap, I'll adapt that too.
Home |
Main Index |
Thread Index |
Old Index