Subject: Re: CVS commit: src/sys/kern
To: None <matt@3am-software.com>
From: Masao Uebayashi <uebayasi@gmail.com>
List: source-changes
Date: 02/11/2008 11:41:10
> > I'm thinking if putting all evcnt::ev_counter into a single segment
> > (and make evcnt::ev_counter a pointer to there) would help cache
> > efficency.
> 
> Probably not since you still need to access the pointer and then you are
> adding another access on top of that.

Right...

So those "fast" event counters should be all static and addresses of
ev_counter should be resolved at compile time.  If address is
immediate, it's found in i-cache.

I guess if kernel has in-kernel loader, dynamic event counters can be
also put in the right section?

Masao