Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 2010 14:43:19 +0400
From:      pluknet <pluknet@gmail.com>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: LOR on nfs: vfs_vnops.c:301 kern_descrip.c:1580
Message-ID:  <AANLkTimXxF0US60NsbOV_HvRrib7SJWmrLqpEpznPTxB@mail.gmail.com>
In-Reply-To: <AANLkTimyk0ZUnHpxxJuJtTya2U3npj_5Bm8brmwHfzr3@mail.gmail.com>
References:  <AANLkTimJ=d06D2z24QyRQ98zEa1Pemk4=vkNGLNiX90N@mail.gmail.com> <AANLkTi=22WWy8Z5VWqri1p70iRzyocD9bWvNHwJavZ%2Bj@mail.gmail.com> <20100816185456.GU2396@deviant.kiev.zoral.com.ua> <AANLkTimfZ=UCiX9eo9XCwcROwViFCxJoB-rD1JxdAt2B@mail.gmail.com> <20100817160445.GO2396@deviant.kiev.zoral.com.ua> <AANLkTimyk0ZUnHpxxJuJtTya2U3npj_5Bm8brmwHfzr3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0015175cb21edccb15048e16bb7b
Content-Type: text/plain; charset=ISO-8859-1

On 18 August 2010 12:07, pluknet <pluknet@gmail.com> wrote:
> On 17 August 2010 20:04, Kostik Belousov <kostikbel@gmail.com> wrote:
>
>>
>> Also please take a note of the John' suggestion to use the taskqueue.
>
> I decided to go this road. Thank you both.
> Now I do nfs buildkernel survive and prepare some benchmark results.
>

So, I modified the patch to defer proc_create() with taskqueue(9).
Below is `time make -j5 buildkernel WITHOUT_MODULES=yes` perf. evaluation.
Done on 4-way CPU on clean /usr/obj with /usr/src & /usr/obj both
nfs-mounted over 1Gbit LAN.

clean old
1137.985u 239.411s 7:42.15 298.0%       6538+2133k 87+43388io 226pf+0w

clean new
1134.755u 240.032s 7:41.25 298.0%       6553+2133k 87+43367io 224pf+0w

Patch needs polishing, though it generally works.
Not sure if shep_chan (or whatever name it will get) needs locking.

-- 
wbr,
pluknet

--0015175cb21edccb15048e16bb7b
Content-Type: application/octet-stream; name="nfsiod_tq.diff"
Content-Disposition: attachment; filename="nfsiod_tq.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gd01toqi0

SW5kZXg6IHN5cy9uZnNjbGllbnQvbmZzX3Zub3BzLmMKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL25mc2Ns
aWVudC9uZnNfdm5vcHMuYwkocmV2aXNpb24gMjExMjc5KQorKysgc3lzL25mc2NsaWVudC9uZnNf
dm5vcHMuYwkod29ya2luZyBjb3B5KQpAQCAtNjIsNiArNjIsNyBAQAogI2luY2x1ZGUgPHN5cy9z
dGF0Lmg+CiAjaW5jbHVkZSA8c3lzL3N5c2N0bC5oPgogI2luY2x1ZGUgPHN5cy9zaWduYWx2YXIu
aD4KKyNpbmNsdWRlIDxzeXMvdGFza3F1ZXVlLmg+CiAKICNpbmNsdWRlIDx2bS92bS5oPgogI2lu
Y2x1ZGUgPHZtL3ZtX29iamVjdC5oPgpAQCAtMjEyLDYgKzIxMyw3IEBACiAgKiBHbG9iYWwgdmFy
aWFibGVzCiAgKi8KIHN0cnVjdCBtdHggCW5mc19pb2RfbXR4Oworc3RydWN0IHRhc2sJbmZzX25m
c2lvZG5ld190YXNrOwogZW51bSBuZnNpb2Rfc3RhdGUgbmZzX2lvZHdhbnRbTkZTX01BWEFTWU5D
REFFTU9OXTsKIHN0cnVjdCBuZnNtb3VudCAqbmZzX2lvZG1vdW50W05GU19NQVhBU1lOQ0RBRU1P
Tl07CiBpbnQJCSBuZnNfbnVtYXN5bmMgPSAwOwpJbmRleDogc3lzL25mc2NsaWVudC9uZnNfc3Vi
cy5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT0KLS0tIHN5cy9uZnNjbGllbnQvbmZzX3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lnbmVkIGludCBuZnNfaW9kbWF4OwpAQCAtMjUzLDYgKzI1NCw3IEBACiAJICAg
IHN0cnVjdCB1Y3JlZCAqY3JlZCwgc3RydWN0IHRocmVhZCAqdGQpOwogaW50CW5mc19yZWFkZGly
cnBjKHN0cnVjdCB2bm9kZSAqLCBzdHJ1Y3QgdWlvICosIHN0cnVjdCB1Y3JlZCAqKTsKIGludAlu
ZnNfbmZzaW9kbmV3KGludCk7Cit2b2lkCW5mc19uZnNpb2RuZXdfdHEoX191bnVzZWQgdm9pZCAq
LCBpbnQpOwogaW50CW5mc19hc3luY2lvKHN0cnVjdCBuZnNtb3VudCAqLCBzdHJ1Y3QgYnVmICos
IHN0cnVjdCB1Y3JlZCAqLCBzdHJ1Y3QgdGhyZWFkICopOwogaW50CW5mc19kb2lvKHN0cnVjdCB2
bm9kZSAqLCBzdHJ1Y3QgYnVmICosIHN0cnVjdCB1Y3JlZCAqLCBzdHJ1Y3QgdGhyZWFkICopOwog
dm9pZAluZnNfZG9pb19kaXJlY3R3cml0ZSAoc3RydWN0IGJ1ZiAqKTsK
--0015175cb21edccb15048e16bb7b--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimXxF0US60NsbOV_HvRrib7SJWmrLqpEpznPTxB>