diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-02-22 03:26:25 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-02-22 03:26:25 +0000 |
commit | d32e53c677b47f55b56a3567e6f49ea0ef24e159 (patch) | |
tree | 6179f7649621974b18d4042da5a2e4aedd70b7bc /share | |
parent | 03aaa5c436b88840034be4523838a1097bd69492 (diff) |
Improve the page mapped check algorithm in the powerpc pmap module,
before it was looking through two arrays of 8 and a linked list of
undetermined size, before deciding that a mapping was not valid.
Now it allocates a data structure and caches that data.
This improves both pmap_enter and pmap_remove because both check
to see if a mapping is valid before taking the appropriate actions.
Also in pmap_remove, if the va mapping is found, stop searching for
it in the rest of this array, the alternate array and the linked list.
only one valid mapping of each va is allowed.
This change improved lat_mmap (from lmbench) from 1300 to 720
and fork+exit from 7320 to 2724 microseconds.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions