diff options
author | mckusick <mckusick@FreeBSD.org> | 2000-12-13 08:30:35 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2000-12-13 08:30:35 +0000 |
commit | f52f7b670a2fea7aa297cd0d973be65d217d1218 (patch) | |
tree | 7c307a919a8334c1a3af17184318fffe6df5c542 /lib | |
parent | e6a971ff0f9fc44c8852bba5a0e47e207e0812da (diff) | |
download | FreeBSD-src-f52f7b670a2fea7aa297cd0d973be65d217d1218.zip FreeBSD-src-f52f7b670a2fea7aa297cd0d973be65d217d1218.tar.gz |
Preventing runaway kernel soft updates memory, take three.
Previously, the syncer process was the only process in the
system that could process the soft updates background work
list. If enough other processes were adding requests to that
list, it would eventually grow without bound. Because some of
the work list requests require vnodes to be locked, it was
not generally safe to let random processes process the work
list while they already held vnodes locked. By adding a flag
to the work list queue processing function to indicate whether
the calling process could safely lock vnodes, it becomes possible
to co-opt other processes into helping out with the work list.
Now when the worklist gets too large, other processes can safely
help out by picking off those work requests that can be handled
without locking a vnode, leaving only the small number of
requests requiring a vnode lock for the syncer process. With
this change, it appears possible to keep even the nastiest
workloads under control.
Submitted by: Paul Saab <ps@yahoo-inc.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions