Thread (5 messages) 5 messages, 2 authors, 2005-03-08

Re: [PATCH] 2/2 Prezeroing large blocks of pages during allocation Version 4

From: KAMEZAWA Hiroyuki <hidden>
Date: 2005-03-08 11:40:11
Also in: lkml

Mel Gorman wrote:
quoted
quoted
     
Now, 5bits per  MAX_ORDER pages.
I think it is simpler to use "char[]" for representing type of  memory alloc
type than bitmap.

   
Possibly, but it would also use up that bit more space. That map could be
condensed to 3 bits but would make it that bit (no pun) more complex and
difficult to merge. On the other hand, it would be faster to use a char[]
as it would be an array-index lookup to get a pageblock type rather than a
number of bit operations.

So, it depends on what people know to be better in general because I have
not measured it to know for a fact. Is it better to use char[] and use
array indexes rather than bit operations or is it better to leave it as a
bitmap and condense it later when things have settled down?
 
Hmm, Okay, I'll wait for condensed version.
BTW, in space consumption/cache view,  does using bitmap have  real 
benefit   ?

Thanks
-- Kame [off-list ref]

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help