lkml.org 
[lkml]   [1999]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch] arca-vm-2.2.5
Date
From
Mark Hemment <markhe@sco.COM> said:

[...]

> One worthwhile improvement to the page-hash is to reduce the need to
> re-check the hash after a blocking operation (ie. page allocation).
> Changing the page-hash from an array of page ptrs to an array of;
> typedef struct page_hash_s {
> struct page *ph_page;
> unsigned int ph_cookie;
> } page_hash_t;
>
> page_hash_t page_hash[PAGE_HASH_TABLE];
>
> Whenever a new page is linked into a hash line, the ph_cookie for that
> line is incremented.

If you link new pages in at the start (would make sense, IMHO, since they
will probably be used soon) you can just use the pointer as cookie.
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.120 / U:1.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site