From: ralf@uni-koblenz.de
To: "Gleb O. Rajko" <rajko@mech.math.msu.su>, linux-mips@fnet.fr
Cc: Vladimir Roganov <roganov@niisi.msk.ru>, linux@cthulhu.engr.sgi.com
Subject: Re: get_mmu_context()
Date: Mon, 19 Oct 1998 03:29:46 +0200 [thread overview]
Message-ID: <19981019032946.F1880@uni-koblenz.de> (raw)
In-Reply-To: <Pine.SV4.3.91.981016185136.876A-100000@mech.math.msu.su>; from Gleb O. Rajko on Fri, Oct 16, 1998 at 07:04:48PM +0400
On Fri, Oct 16, 1998 at 07:04:48PM +0400, Gleb O. Rajko wrote:
> We are going to provide support for building generic kernels in the near
> future if somebody who holds r4k will help us and will try our patches
> on a r4k box. I think the best time to start is when r3k will be synced
> with the main branch. Perhaps, Harald may answer when it might occur.
If you are in doubt about any R4k related changes feel free to send them
to me.
> > Which I want to avoid because in worst case that means we'll have to eat
> > a latency of over 1400ns per cache line to fetch from memory. This number
> > is measured on a R4000SC with 100Mhz. That is enough to show up right
> > away on the context switch times which now look fairly nice as long as we
> > don't have to swallow cache faults.
> >
> Perhaps, we may use global vars in most cases and patch code at bootup
> for critical ones.
Yes. We can actually do even more in that direction like for example
eleminating calls via pointers as used throughout the mm. We insert jal
instructions and patch the address as needed. Or we even overwrite the
call by nops if the routine is emtpy.
> > The MIPS implementation does worse, especially for the R3000 where waste the
> > lowest 6 bits which effectivly truncates our ASID (or PID) to 26 bits.
> > Assuming just 100,000 context switches we'll wrap around after just a bit
> > more than 11 minutes. I think we can do more than 100,000 context switches
> > per second on a reasonable R3000 system.
> As I understand the only place where change the version is in
> get_new_mmu_context(). Thus, if the version overflows we may create a new
> process which will share its address space with other due to the same
> ASID and varsion pair. Am I right ?
Correct.
> > Btw, is any of the R3000 machines stable enough to run lmbench? I'm
> > interested to get results, best the raw result file from
> > lmbench/results/mips-linux/. Reminds me to run lmbench on my RS3230.
> Ok. I will try to run lmbench while Vladimir will think about your ideas :-)
:-)
Btw, lmbench has in the past helped me to kill several interesting bugs.
Ralf
next prev parent reply other threads:[~1998-10-20 0:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-13 19:59 get_mmu_context() ralf
[not found] ` <Pine.LNX.3.96.981014144230.10483B-100000@mirkwood.dummy.home>
1998-10-14 23:49 ` get_mmu_context() ralf
[not found] ` <3625D799.7D923FA9@niisi.msk.ru>
1998-10-15 20:21 ` get_mmu_context() ralf
[not found] ` <Pine.SV4.3.91.981016185136.876A-100000@mech.math.msu.su>
1998-10-18 19:53 ` get_mmu_context() Harald Koerfgen
1998-10-19 10:18 ` get_mmu_context() ralf
1998-10-20 4:07 ` get_mmu_context() Warner Losh
1998-10-20 17:31 ` get_mmu_context() ralf
1998-10-20 23:36 ` get_mmu_context() Warner Losh
1998-10-21 19:31 ` get_mmu_context() Harald Koerfgen
1998-10-19 1:29 ` ralf [this message]
1998-10-16 22:44 ` get_mmu_context() ralf
-- strict thread matches above, loose matches on Subject: below --
1998-10-20 4:21 get_mmu_context() Ariel Faigon
1998-10-20 4:21 ` get_mmu_context() Ariel Faigon
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=19981019032946.F1880@uni-koblenz.de \
--to=ralf@uni-koblenz.de \
--cc=linux-mips@fnet.fr \
--cc=linux@cthulhu.engr.sgi.com \
--cc=rajko@mech.math.msu.su \
--cc=roganov@niisi.msk.ru \
/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