Source-Changes-D archive

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

Re: CVS commit: [matt-nb5-mips64] src/sys/uvm



> 
> On Apr 11, 2012, at 7:34 PM, YAMAMOTO Takashi wrote:
> 
>> hi,
>> 
>>> Module Name:        src
>>> Committed By:       matt
>>> Date:               Thu Apr 12 01:40:27 UTC 2012
>>> 
>>> Modified Files:
>>>     src/sys/uvm [matt-nb5-mips64]: uvm_extern.h uvm_fault.c uvm_km.c
>>>         uvm_meter.c uvm_pdaemon.c uvm_pdaemon.h uvm_pdpolicy.h
>>>         uvm_pdpolicy_clock.c uvm_stat.c
>>> 
>>> Log Message:
>>> Separate object-less anon pages out of the active list if there is no swap
>>> device.  Make uvm_reclaimable and uvm.*estimatable understand colors and
>>> kmem allocations.
>> 
>> i like the idea.
>> 
>> - why the queue is inside the pdpolicy?
>> 
>> - why don't you use PQ_SWAPBACKED?
> 
> that's only set when a swap slot has been allocated for it.  Since there's no 
> swap, it'll never be set.

the availability of swap slots doesn't affect PQ_SWAPBACKED.
it's always set for anon/aobj pages.

YAMAMOTO Takashi

> 
> The problem I'm attacking is memory exhaustion.  Making sure that's pdaemon 
> isn't consuming too many resources when it can't do anything.  the pdaemon 
> would spin continuously with dirty reactivations and the above was an attempt 
> to stop that.
> 
> It's still a work-in-progress.


Home | Main Index | Thread Index | Old Index