I've noticed that when you do ``swapctl -d <swapdev>' all accesses to
the count-of-swapped-out-pages are blocked.  Seems that bringing the
out-swapped pages back takes some lock for the entire process, which
can be quite lengthy if there's a lot of swap...

Among other use cases, there's no way to tell how-many-pages-remain-
to-swap-in;  it also seems to prevent running processes from bringing
their own pages back in.

Shouldn't we be occassionally releasing-and-reacquiring the relevant
lock, so that other things can also make progress?


+--------------------+--------------------------+----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com    |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org  |
| & Network Engineer |                          | pgoyett...@gmail.com |
+--------------------+--------------------------+----------------------+

Reply via email to