Re: Intel P6 vs P7 system call performance
Helge Hafting (helgehaf@aitel.hist.no)
Tue, 17 Dec 2002 09:02:28 +0100
Mark Mielke wrote:
>
> On Mon, Dec 16, 2002 at 12:17:59PM +0100, Pavel Machek wrote:
> > > Sure it's dirty. It's also fast, with the only overhead being
> > > a few NOPs that could get skipped on syscall return anyway.
> > > Patching overhead is negligible, since it only happens when a
> > > page is brought in fresh from the disk.
> > Yes but "read only" code changing under you... Should better be
> > avoided.
>
> Programs that self verify their own CRC may get a little confused (are
> there any of these left?), but other than that, 'goto is better avoided'
> as well, but sometimes 'goto' is the best answer.
And then there's programs that store constants as parts of the code,
so that their constant-ness is enforced byt the mmu.
This can be taken further - the compiler can save space by looking
through the generated code and use an address in the code as the
constant if it happens to have the right value. With some
bad luck it chooses the syscall sequence that it really don't expect
to be modified.
Helge Hafting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/