tech-kern archive

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

Re: netbsd-6: pagedaemon freeze when low on memory



On Tue, Mar 05, 2013 at 11:43:35PM -0600, David Young wrote:
>     Maybe we can avoid unnecessary locking or redundancy using a
>     generation number?  Add a generation number to the vmem_t,
>     
>         volatile uint64_t vm_gen;
> 
>     Increase a vmem_t's generation number every
>     time that vmem_free(), vmem_xfree(), or vmem_backend_ready() is
>     called:

Won't that generate a very hot cache line on a large smp system?
Maybe the associated structures are actually worse here!
But per-cpu virtual address free lists might make sense.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index