Re: [patch] mm: pageable memory allocator (for DRM-GEM?)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Hellström
Date: Thursday, September 25, 2008 - 8:39 am

Keith Packard wrote:
Actually, I think the pages must be allowed to be freed, and that we 
don't put a requirement on "pageable"  to keep
swap-space slots for these pages. If we hit an OOM-condition during 
suspend-to-memory that's bad, but let's say we
required "pageable" to keep swap space slots for us, the result would 
perhaps be that another device wasn't able to suspend, or a user-space 
program was killed due to lack of swap-space prior to suspend.

I'm not really sure what's the worst situation, but my feeling is that 
we should not require swap-space to be reserved for VRAM, and abort the 
suspend operation if we hit OOM. That would, in the worst case, mean 
that people with non-UMA laptops and a too small swap partition would 
see their battery run out much quicker than they expected...

/Thomas



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] mm: pageable memory allocator (for DRM-GEM?), Nick Piggin, (Tue Sep 23, 2:10 am)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Thomas Hellström, (Tue Sep 23, 3:21 am)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Jerome Glisse, (Tue Sep 23, 4:31 am)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Christoph Lameter, (Tue Sep 23, 6:18 am)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Keith Packard, (Tue Sep 23, 8:50 am)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Jerome Glisse, (Tue Sep 23, 11:29 am)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Keith Packard, (Wed Sep 24, 6:20 pm)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Keith Packard, (Wed Sep 24, 7:43 pm)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Keith Packard, (Wed Sep 24, 11:16 pm)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Thomas Hellström, (Thu Sep 25, 12:19 am)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), KAMEZAWA Hiroyuki, (Thu Sep 25, 1:45 am)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Keith Packard, (Thu Sep 25, 7:38 am)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Thomas Hellström, (Thu Sep 25, 8:39 am)
Re: [patch] mm: pageable memory allocator (for DRM-GEM?), Keith Packard, (Thu Oct 2, 10:17 pm)