Re: 2.6.14-rc2-mm1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> > --- linux-2.6.13.old/mm/page_alloc.c  2005-09-26 10:57:07.000000000
>> -0700 
>> > +++ linux-2.6.13.work/mm/page_alloc.c 2005-09-26 10:47:57.000000000
>> -0700 
>> > @@ -1749,7 +1749,7 @@ 
>> >       pcp = &p->pcp[1];               /* cold*/ 
>> >       pcp->count = 0; 
>> >       pcp->low = 0; 
>> > -     pcp->high = 2 * batch; 
>> > +     pcp->high = batch / 2; 
>> >       pcp->batch = max(1UL, batch/2); 
>> >       INIT_LIST_HEAD(&pcp->list); 
>> >  } 
>> > -
>> 
>> I don't understand. How can you set the high watermark at half the
>> batch size? Makes no sense to me.
>> 
> 
> The batch size for the cold pcp list is getting initialized to batch/2
> in the code snip above.  So, this change is setting the high water mark
> for cold list to same as pcp's batch number.

I must be being particularly dense today ... but:

 pcp->high = batch / 2; 

Looks like half the batch size to me, not the same? 

>> And can you give a stricter definiton of what you mean by "low memory 
>> conditions"? I agree we ought to empty the lists before going OOM or 
>> anything, but not at the slightest feather of pressure ... answer lies
>> somewhere inbetween ... but where?
>> 
> 
> In the specific case of dump information that Mattia sent earlier, there
> is only 4M of free mem available at the time the order 1 request is
> failing.  
> 
> In general, I think if a specific higher order ( > 0) request fails that
> has GFP_KERNEL set then at least we should drain the pcps.

Mmmm. so every time we fork a process with 8K stacks, or allocate a frame
for jumbo ethernet, or NFS, you want to drain the lists? that seems to
wholly defeat the purpose.

Could you elaborate on what the benefits were from this change in the
first place? Some page colouring thing on ia64? It seems to have way more
downside than upside to me.

M.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux