--168455872-1590511257-980426551=:26195
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.21.0101251242451.26195@alloc>
Hi,
Several places in the kernel run holding the global kernel lock when it
isn't needed. This usually occurs when where is a function which can be
called via many different paths; some holding the lock, others not.
Now, if a function can block (and hence drop the kernel lock) the caller
cannot rely on the kernel lock for its own integerity. Such a functon
_may_ be a candidate for dropping the lock (if it is held) on entry, and
retaken on exit. This improves SMP scalability.
A good example of this is generic_make_request(). This function can be
arrived at by several different paths, some of which will be holding the
lock, and some not. It (or, rather the functions it can call) may block
and a caller has no control over this. generic_make_request() does not
need the kernel lock itself, and any functions it calls which do require
the lock should be taking it (as they cannot guarantee it is already
held). This makes it a good candidate for dropping the lock early (rather
than only dropping when blocking).
Dropping the kernel lock, even for a short period, helps
scalability. Note, if the lock is held when an interrupt arrives, the
interrupt handler runs holding the lock and so do any bottom-half handlers
run on the back of the interrupt. So, less time it is held, the smaller
the chance of being interrupted while holding it, the better the
scalability.
As the current nfsd code isn't threaded, it runs holding the kernel
lock. Any reduction in holding the lock helps nfs server scalability.
The current macros used to drop and retake the kernel lock in
schedule() cannot be used in many cases as they do not nest.
The attached patch (against 2.4.1-pre10) defines two new macros for x86
(save_and_drop_kernel_lock(x) and restore_kernel_lock(x)) and a new
declaration macro (DECLARE_KERNEL_LOCK_COUNTER(x)). These allow "pushing"
and "poping" of the kernel lock.
The patch also contains some examples of usage (although the one in
nfsd/vfs.c could be done with an unlock_kernel()/lock_kernel() pair).
If the idea is acceptable, I'll tidy up the patch and add the necessary
macros for other archs.
My questions are;
a) Does this make sense?
b) Is it acceptable in the kernel?
c) Any better suggestions for the macro names?
I'd be interested in any results from those applying this patch
and running benchmarks on SMP boxes - mainly filesystem benchmarks.
I admit this is not the cleanest of ideas.
Mark
--168455872-1590511257-980426551=:26195
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="kernel-lock.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0101251250260.26195@alloc>
Content-Description: kernel-lock.patch
Content-Disposition: attachment; filename="kernel-lock.patch"
ZGlmZiAtdXJOIC1YIGRvbnRkaWZmIHZ4ZnMtMi40LjEtcHJlMTAvZHJpdmVy
cy9ibG9jay9sbF9yd19ibGsuYyBtYXJraGUtMi40LjEtcHJlMTAvZHJpdmVy
cy9ibG9jay9sbF9yd19ibGsuYw0KLS0tIHZ4ZnMtMi40LjEtcHJlMTAvZHJp
dmVycy9ibG9jay9sbF9yd19ibGsuYwlXZWQgSmFuIDI0IDEwOjU2OjIzIDIw
MDENCisrKyBtYXJraGUtMi40LjEtcHJlMTAvZHJpdmVycy9ibG9jay9sbF9y
d19ibGsuYwlUaHUgSmFuIDI1IDA5OjQ3OjA5IDIwMDENCkBAIC05MDcsMTAg
KzkwNywyNCBAQA0KIHsNCiAJaW50IG1ham9yID0gTUFKT1IoYmgtPmJfcmRl
dik7DQogCXJlcXVlc3RfcXVldWVfdCAqcTsNCisJREVDTEFSRV9LRVJORUxf
TE9DS19DT1VOVEVSKGxvY2tfZGVwdGgpDQogDQogCWlmICghYmgtPmJfZW5k
X2lvKQ0KIAkJQlVHKCk7DQogDQorCS8qDQorCSAqIFRoZSBjYWxsZXIgY2Fu
bm90IG1ha2UgYW55IGFzc3VtcHRpb25zIGFzIHRvIHdoZXRoZXIgdGhpcw0K
KwkgKiBmdW5jdGlvbiAob3IsIHJhdGhlciwgdGhlIGZ1bmNzIGNhbGxlZCBm
cm9tIGhlcmUpIHdpbGwgYmxvY2sNCisJICogb3Igbm90Lg0KKwkgKiBBbHNv
LCB3ZSBjYW4gYmUgY2FsbGVkIHdpdGggb3Igd2l0aG91dCB0aGUgZ2xvYmFs
IGtlcm5lbCBsb2NrLg0KKwkgKiBBcyB0aGUga2VybmVsIGxvY2sgaXNuJ3Qg
bmVlZCBoZXJlLCBhbmQgc2hvdWxkIGJlIHRha2VuIGJ5DQorCSAqIGFueSBm
dW5jdGlvbnMgY2FsbGVkIGZyb20gaGVy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VyIGlvdmVjcyB0aGF0IG1heSBiZSBpbiB1c2UgaGF2ZSBiZWVuIHRha2Vu
DQpAQCAtNDM1LDYgKzQ2NSw4IEBADQogCWVsc2UgaWYgKGVycm9yID09IC1F
QUdBSU4pDQogCQkvKiBJZ25vcmUgYW5kIHdhaXQgZm9yIHJlLXhtaXQgKi8N
CiAJCWVycm9yID0gMDsNCisNCisJcmVzdG9yZV9rZXJuZWxfbG9jayhsb2Nr
X2RlcHRoKTsNCiANCiAJcmV0dXJuIGVycm9yOw0KIH0NCg==
--168455872-1590511257-980426551=:26195--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/