From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Ingo Molnar <mingo@elte.hu>
Subject: Re: lmbench regression due to cond_resched nullification change 26-rc5 vs. 25
Date: Sun, 22 Jun 2008 21:17:59 +0200 [thread overview]
Message-ID: <200806222117.59620.borntraeger@de.ibm.com> (raw)
In-Reply-To: <alpine.LFD.1.10.0806201153470.3167@woody.linux-foundation.org>
Am Freitag, 20. Juni 2008 schrieben Sie:
> But quite frankly, regardless of exactly why it happens, it absolutely
> makes no sense to even have that cond_resched() in the _innermost_ loop -
> the one that is called for every single fd. It's much better to move the
> conditional reschedule out a bit.
>
> That inner loop was very much designed to compile into nice assembly
> language, and it's possible that the cond_resched() simply causes extra
> register pressure and keeps us from keeping the bitmasks in registers etc.
>
> So this trivial patch, which moves the cond_resched() to be outside the
> single-word select() loop, would be a good idea _regardless_. Does it make
> any difference for you? If it's purely a "code generation got worse"
> issue, it should help a bit.
Yes, it helps. I am now at 24 microseconds which is very close to the original
time for lat_select.
Thanks
prev parent reply other threads:[~2008-06-22 19:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-20 8:14 Christian Borntraeger
2008-06-20 19:10 ` Linus Torvalds
2008-06-22 19:17 ` Christian Borntraeger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200806222117.59620.borntraeger@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=schwidefsky@de.ibm.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome