linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: [RFC] Hugetlb demotion for x86
       [not found] <1147287400.24029.81.camel@localhost.localdomain>
@ 2006-05-10 23:42 ` Christoph Lameter
       [not found]   ` <1147363859.24029.134.camel@localhost.localdomain>
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Lameter @ 2006-05-10 23:42 UTC (permalink / raw)
  To: Adam Litke; +Cc: linux-mm, linux-kernel

Seems that the code is not modifying x86 code but all code. 

An app should be getting an out of memory error and not a SIGBUS when 
running out of memory.

I thought we fixed the SIGBUS problems and were now reporting out of 
memory? If there still is an issue then we better fix out of memory 
handling. Provide a way for the app to trap OOM conditions?

--
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:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC] Hugetlb demotion for x86
       [not found]   ` <1147363859.24029.134.camel@localhost.localdomain>
@ 2006-05-15 14:20     ` Dave Hansen
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Hansen @ 2006-05-15 14:20 UTC (permalink / raw)
  To: Adam Litke; +Cc: Christoph Lameter, linux-mm, linux-kernel

On Thu, 2006-05-11 at 11:10 -0500, Adam Litke wrote:
> Yes, the SIGBUS issues are "fixed".  Now the application is killed
> directly via VM_FAULT_OOM so it is not possible to handle the fault from
> userspace.  For my libhugetlbfs-based fallback approach, I needed to
> patch the kernel so that SIGBUS was delivered to the process like in the
> days of old.

Maybe this could be off-by-default behavior that can be enabled with a
special mmap flag or madvise, or something similar.  It seems that apps
don't want to get SIGBUS for low memory.  But, if they have _asked_ for
it, perhaps they'd be a bit more willing.

(BTW, I fixed the bogus linux-mm cc, finally ;)

-- Dave

--
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:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-15 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1147287400.24029.81.camel@localhost.localdomain>
2006-05-10 23:42 ` [RFC] Hugetlb demotion for x86 Christoph Lameter
     [not found]   ` <1147363859.24029.134.camel@localhost.localdomain>
2006-05-15 14:20     ` Dave Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox