Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 1996 22:38:03 +0200
From:      Poul-Henning Kamp <phk@critter.tfs.com>
To:        Steve Passe <smp@csn.net>
Cc:        Peter Wemm <peter@spinner.dialix.com>, rv@groa.uct.ac.za (Russell Vincent), freebsd-smp@freebsd.org, Terry Lambert <terry@lambert.org>
Subject:   Re: Intel XXpress - some SMP benchmarks 
Message-ID:  <1690.842560683@critter.tfs.com>
In-Reply-To: Your message of "Thu, 12 Sep 1996 14:04:27 MDT." <199609122004.OAA19225@clem.systemsix.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199609122004.OAA19225@clem.systemsix.com>, Steve Passe writes:
>
>the simple indirection to get an int from a table of 16 ints is pretty cheap.
>I suggest cleanup of any areas of code that repeatedly call macros like
>curproc.  I did a quick grep in /kern and found a few offenders like:
>
>	curproc->p_flag |= P_PHYSIO;
>
>(I wonder if gcc will optimize this to only 1 APIC read?)  Most of the
>code does a 1 time assignment to a struct ptr via curproc and uses that.

I actually thought of "stealing" one or two vectors in the LAPIC and
cache curproc there...

--
Poul-Henning Kamp           | phk@FreeBSD.ORG       FreeBSD Core-team.
http://www.freebsd.org/~phk | phk@login.dknet.dk    Private mailbox.
whois: [PHK]                | phk@ref.tfs.com       TRW Financial Systems, Inc.
Future will arrive by its own means, progress not so.



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