Re: [RFC v3] Support volatile range for anon vma

From: Minchan Kim
Date: Tue Dec 11 2012 - 03:11:06 EST


On Tue, Dec 11, 2012 at 08:59:50AM +0100, Mike Hommey wrote:
> On Tue, Dec 11, 2012 at 04:37:44PM +0900, Minchan Kim wrote:
> > On Tue, Dec 11, 2012 at 08:17:42AM +0100, Mike Hommey wrote:
> > > On Tue, Dec 11, 2012 at 11:41:04AM +0900, Minchan Kim wrote:
> > > > - What's the madvise(addr, length, MADV_VOLATILE)?
> > > >
> > > > It's a hint that user deliver to kernel so kernel can *discard*
> > > > pages in a range anytime.
> > > >
> > > > - What happens if user access page(ie, virtual address) discarded
> > > > by kernel?
> > > >
> > > > The user can see zero-fill-on-demand pages as if madvise(DONTNEED).
> > >
> > > What happened to getting SIGBUS?
> >
> > I thought it could force for user to handle signal.
> > If user can receive signal, what can he do?
> > Maybe he can call madivse(NOVOLATILE) in my old version but I removed it
> > in this version so user don't need handle signal handling.
>
> NOVOLATILE and signal throwing are two different and not necessarily
> related needs. We (Mozilla) could probably live without NOVOLATILE,
> but certainly not without signal throwing.

What's shortcoming if we don't provide signal handling?
Could you explain how you want to signal in your allocator?

It could be very helpful to improve this patch.
Thanks for the input.

>
> Mike
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@xxxxxxxxxx For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

--
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/