diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-25 15:55:28 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-25 15:55:28 +0000 |
commit | 821e249ec2ec9f4060c4aa9c985e76d5cb6ed872 (patch) | |
tree | b66242e6b3443f23aa88627eea4a17b44a59b9ac /sys/dev/wscons/wsemul_vt100_subr.c | |
parent | a5e71db4200419a89667776613c8d20037b99e18 (diff) |
Replace the overdesigned and overcomplicated tlb shootdown code with
very simple and dumb fast tlb IPI handlers that have in the order of
the same amount of instructions as the old code had function calls.
All TLB shootdowns are reorganized so that we always shoot the,
without looking at PG_U and when we're shooting a range (primarily in
pmap_remove), we shoot the range when there are 32 or less pages in
it, otherwise we just nuke the whole TLB (this might need tweaking if
someone is interested in micro-optimization). The IPIs are not handled
through the normal interrupt vectoring code, they are not blockable
and they only shoot one page or a range of pages or the whole tlb.
This gives a 15% reduction in system time on my dual-core laptop
during a kernel compile and an 18% reduction in real time on a quad
machine doing bulk ports build.
Tested by many, in snaps for a week, no slowdowns reported (although not
everyone is seeing such huge wins).
Diffstat (limited to 'sys/dev/wscons/wsemul_vt100_subr.c')
0 files changed, 0 insertions, 0 deletions