Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Removing swapfile takes a lock for long time



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 | paul%whooppee.com@localhost    |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost  |
| & Network Engineer |                          | pgoyette99%gmail.com@localhost |
+--------------------+--------------------------+----------------------+


Home | Main Index | Thread Index | Old Index