Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-11 Thread John Stultz
On 04/02/2014 01:13 PM, John Stultz wrote: > On 04/02/2014 12:47 PM, Johannes Weiner wrote: > >> It's really nothing but a use-after-free bug that has consequences for >> no-one but the faulty application. The thing that IS new is that even >> a read is enough to corrupt your data in this case.

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-11 Thread John Stultz
On 04/02/2014 01:13 PM, John Stultz wrote: On 04/02/2014 12:47 PM, Johannes Weiner wrote: It's really nothing but a use-after-free bug that has consequences for no-one but the faulty application. The thing that IS new is that even a read is enough to corrupt your data in this case.

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-07 Thread John Stultz
On 04/07/2014 09:32 PM, Kevin Easton wrote: > On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: >> On Wed, Apr 2, 2014 at 9:36 AM, Johannes Weiner wrote: >>> I'm just dying to hear a "normal" use case then. :) >> So the more "normal" use cause would be marking objects volatile and >>

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-07 Thread Kevin Easton
On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: > On Wed, Apr 2, 2014 at 9:36 AM, Johannes Weiner wrote: > > I'm just dying to hear a "normal" use case then. :) > > So the more "normal" use cause would be marking objects volatile and > then non-volatile w/o accessing them

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-07 Thread Minchan Kim
On Wed, Apr 02, 2014 at 03:27:44PM -0400, Johannes Weiner wrote: > On Wed, Apr 02, 2014 at 08:31:13PM +0200, Andrea Arcangeli wrote: > > Hi everyone, > > > > On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: > > > So between zero-fill and SIGBUS, I think SIGBUS makes the most sense. If

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-07 Thread Minchan Kim
Hello Andrea, On Wed, Apr 02, 2014 at 08:31:13PM +0200, Andrea Arcangeli wrote: > Hi everyone, > > On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: > > So between zero-fill and SIGBUS, I think SIGBUS makes the most sense. If > > you have a third option you're thinking of, I'd of

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-07 Thread Minchan Kim
Hello Andrea, On Wed, Apr 02, 2014 at 08:31:13PM +0200, Andrea Arcangeli wrote: Hi everyone, On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: So between zero-fill and SIGBUS, I think SIGBUS makes the most sense. If you have a third option you're thinking of, I'd of course be

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-07 Thread Minchan Kim
On Wed, Apr 02, 2014 at 03:27:44PM -0400, Johannes Weiner wrote: On Wed, Apr 02, 2014 at 08:31:13PM +0200, Andrea Arcangeli wrote: Hi everyone, On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: So between zero-fill and SIGBUS, I think SIGBUS makes the most sense. If you

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-07 Thread Kevin Easton
On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: On Wed, Apr 2, 2014 at 9:36 AM, Johannes Weiner han...@cmpxchg.org wrote: I'm just dying to hear a normal use case then. :) So the more normal use cause would be marking objects volatile and then non-volatile w/o accessing them

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-07 Thread John Stultz
On 04/07/2014 09:32 PM, Kevin Easton wrote: On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: On Wed, Apr 2, 2014 at 9:36 AM, Johannes Weiner han...@cmpxchg.org wrote: I'm just dying to hear a normal use case then. :) So the more normal use cause would be marking objects volatile

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-06 Thread Minchan Kim
On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: > On Wed, Apr 2, 2014 at 9:36 AM, Johannes Weiner wrote: > > On Tue, Apr 01, 2014 at 09:12:44PM -0700, John Stultz wrote: > >> On 04/01/2014 04:01 PM, Dave Hansen wrote: > >> > On 04/01/2014 02:35 PM, H. Peter Anvin wrote: > >> >> On

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-06 Thread Minchan Kim
On Wed, Apr 02, 2014 at 12:36:38PM -0400, Johannes Weiner wrote: > On Tue, Apr 01, 2014 at 09:12:44PM -0700, John Stultz wrote: > > On 04/01/2014 04:01 PM, Dave Hansen wrote: > > > On 04/01/2014 02:35 PM, H. Peter Anvin wrote: > > >> On 04/01/2014 02:21 PM, Johannes Weiner wrote: > > >>> Either

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-06 Thread Minchan Kim
On Wed, Apr 02, 2014 at 12:36:38PM -0400, Johannes Weiner wrote: On Tue, Apr 01, 2014 at 09:12:44PM -0700, John Stultz wrote: On 04/01/2014 04:01 PM, Dave Hansen wrote: On 04/01/2014 02:35 PM, H. Peter Anvin wrote: On 04/01/2014 02:21 PM, Johannes Weiner wrote: Either way, optimistic

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-06 Thread Minchan Kim
On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: On Wed, Apr 2, 2014 at 9:36 AM, Johannes Weiner han...@cmpxchg.org wrote: On Tue, Apr 01, 2014 at 09:12:44PM -0700, John Stultz wrote: On 04/01/2014 04:01 PM, Dave Hansen wrote: On 04/01/2014 02:35 PM, H. Peter Anvin wrote: On

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread Jan Kara
On Wed 02-04-14 13:13:34, John Stultz wrote: > On 04/02/2014 12:47 PM, Johannes Weiner wrote: > > On Wed, Apr 02, 2014 at 12:01:00PM -0700, John Stultz wrote: > >> On Wed, Apr 2, 2014 at 10:58 AM, Johannes Weiner > >> wrote: > >>> On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: >

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On 04/02/2014 12:47 PM, Johannes Weiner wrote: > On Wed, Apr 02, 2014 at 12:01:00PM -0700, John Stultz wrote: >> On Wed, Apr 2, 2014 at 10:58 AM, Johannes Weiner wrote: >>> On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: That point beside, I think the other problem with the

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On 04/02/2014 11:31 AM, Andrea Arcangeli wrote: > On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: >> Now... once you've chosen SIGBUS semantics, there will be folks who will >> try to exploit the fact that we get SIGBUS on purged page access (at >> least on the user-space side) and

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Wed, Apr 02, 2014 at 12:01:00PM -0700, John Stultz wrote: > On Wed, Apr 2, 2014 at 10:58 AM, Johannes Weiner wrote: > > On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: > >> That point beside, I think the other problem with the page-cleaning > >> volatility approach is that there

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On Wed, Apr 2, 2014 at 11:07 AM, Johannes Weiner wrote: > On Wed, Apr 02, 2014 at 10:48:03AM -0700, John Stultz wrote: >> I suspect handling the SIGBUS and patching up the purged page you >> trapped on is likely much to complicated for most use cases. But I do >> think SIGBUS is preferable to

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Wed, Apr 02, 2014 at 08:31:13PM +0200, Andrea Arcangeli wrote: > Hi everyone, > > On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: > > So between zero-fill and SIGBUS, I think SIGBUS makes the most sense. If > > you have a third option you're thinking of, I'd of course be

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On Wed, Apr 2, 2014 at 10:58 AM, Johannes Weiner wrote: > On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: >> That point beside, I think the other problem with the page-cleaning >> volatility approach is that there are other awkward side effects. For >> example: Say an application

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread Andrea Arcangeli
Hi everyone, On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: > So between zero-fill and SIGBUS, I think SIGBUS makes the most sense. If > you have a third option you're thinking of, I'd of course be interested > in hearing it. I actually thought the way of being notified with a page

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Wed, Apr 02, 2014 at 10:48:03AM -0700, John Stultz wrote: > On Wed, Apr 2, 2014 at 10:40 AM, Dave Hansen wrote: > > On 04/02/2014 10:18 AM, Johannes Weiner wrote: > >> Hence my follow-up question in the other mail about how large we > >> expect such code caches to become in practice in

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: > On Wed, Apr 2, 2014 at 9:36 AM, Johannes Weiner wrote: > > On Tue, Apr 01, 2014 at 09:12:44PM -0700, John Stultz wrote: > >> On 04/01/2014 04:01 PM, Dave Hansen wrote: > >> > On 04/01/2014 02:35 PM, H. Peter Anvin wrote: > >> >> On

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On Wed, Apr 2, 2014 at 10:40 AM, Dave Hansen wrote: > On 04/02/2014 10:18 AM, Johannes Weiner wrote: >> Hence my follow-up question in the other mail about how large we >> expect such code caches to become in practice in relationship to >> overall system memory. Are code caches interesting

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On Wed, Apr 2, 2014 at 9:36 AM, Johannes Weiner wrote: > On Tue, Apr 01, 2014 at 09:12:44PM -0700, John Stultz wrote: >> On 04/01/2014 04:01 PM, Dave Hansen wrote: >> > On 04/01/2014 02:35 PM, H. Peter Anvin wrote: >> >> On 04/01/2014 02:21 PM, Johannes Weiner wrote: >> > John, this was something

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread Dave Hansen
On 04/02/2014 10:18 AM, Johannes Weiner wrote: > Hence my follow-up question in the other mail about how large we > expect such code caches to become in practice in relationship to > overall system memory. Are code caches interesting reclaim candidates > to begin with? Are they big enough to

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Wed, Apr 02, 2014 at 09:37:49AM -0700, H. Peter Anvin wrote: > On 04/02/2014 09:32 AM, H. Peter Anvin wrote: > > On 04/02/2014 09:30 AM, Johannes Weiner wrote: > >> > >> So between zero-fill and SIGBUS, I'd prefer the one which results in > >> the simpler user interface / fewer system calls. >

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread H. Peter Anvin
On 04/02/2014 09:32 AM, H. Peter Anvin wrote: > On 04/02/2014 09:30 AM, Johannes Weiner wrote: >> >> So between zero-fill and SIGBUS, I'd prefer the one which results in >> the simpler user interface / fewer system calls. >> > > The use cases are different; I believe this should be a user space

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Tue, Apr 01, 2014 at 09:12:44PM -0700, John Stultz wrote: > On 04/01/2014 04:01 PM, Dave Hansen wrote: > > On 04/01/2014 02:35 PM, H. Peter Anvin wrote: > >> On 04/01/2014 02:21 PM, Johannes Weiner wrote: > >>> Either way, optimistic volatile pointers are nowhere near as > >>> transparent to

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread H. Peter Anvin
On 04/02/2014 09:30 AM, Johannes Weiner wrote: > > So between zero-fill and SIGBUS, I'd prefer the one which results in > the simpler user interface / fewer system calls. > The use cases are different; I believe this should be a user space option. -hpa -- To unsubscribe from this

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: > On 04/01/2014 02:21 PM, Johannes Weiner wrote: > > [ I tried to bring this up during LSFMM but it got drowned out. > > Trying again :) ] > > > > On Fri, Mar 21, 2014 at 02:17:30PM -0700, John Stultz wrote: > >> Optimistic method: >

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: On 04/01/2014 02:21 PM, Johannes Weiner wrote: [ I tried to bring this up during LSFMM but it got drowned out. Trying again :) ] On Fri, Mar 21, 2014 at 02:17:30PM -0700, John Stultz wrote: Optimistic method: 1) Userland

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread H. Peter Anvin
On 04/02/2014 09:30 AM, Johannes Weiner wrote: So between zero-fill and SIGBUS, I'd prefer the one which results in the simpler user interface / fewer system calls. The use cases are different; I believe this should be a user space option. -hpa -- To unsubscribe from this list:

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Tue, Apr 01, 2014 at 09:12:44PM -0700, John Stultz wrote: On 04/01/2014 04:01 PM, Dave Hansen wrote: On 04/01/2014 02:35 PM, H. Peter Anvin wrote: On 04/01/2014 02:21 PM, Johannes Weiner wrote: Either way, optimistic volatile pointers are nowhere near as transparent to the application

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread H. Peter Anvin
On 04/02/2014 09:32 AM, H. Peter Anvin wrote: On 04/02/2014 09:30 AM, Johannes Weiner wrote: So between zero-fill and SIGBUS, I'd prefer the one which results in the simpler user interface / fewer system calls. The use cases are different; I believe this should be a user space option.

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Wed, Apr 02, 2014 at 09:37:49AM -0700, H. Peter Anvin wrote: On 04/02/2014 09:32 AM, H. Peter Anvin wrote: On 04/02/2014 09:30 AM, Johannes Weiner wrote: So between zero-fill and SIGBUS, I'd prefer the one which results in the simpler user interface / fewer system calls. The use

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On Wed, Apr 2, 2014 at 9:36 AM, Johannes Weiner han...@cmpxchg.org wrote: On Tue, Apr 01, 2014 at 09:12:44PM -0700, John Stultz wrote: On 04/01/2014 04:01 PM, Dave Hansen wrote: On 04/01/2014 02:35 PM, H. Peter Anvin wrote: On 04/01/2014 02:21 PM, Johannes Weiner wrote: John, this was

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread Dave Hansen
On 04/02/2014 10:18 AM, Johannes Weiner wrote: Hence my follow-up question in the other mail about how large we expect such code caches to become in practice in relationship to overall system memory. Are code caches interesting reclaim candidates to begin with? Are they big enough to make

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On Wed, Apr 2, 2014 at 10:40 AM, Dave Hansen d...@sr71.net wrote: On 04/02/2014 10:18 AM, Johannes Weiner wrote: Hence my follow-up question in the other mail about how large we expect such code caches to become in practice in relationship to overall system memory. Are code caches interesting

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: On Wed, Apr 2, 2014 at 9:36 AM, Johannes Weiner han...@cmpxchg.org wrote: On Tue, Apr 01, 2014 at 09:12:44PM -0700, John Stultz wrote: On 04/01/2014 04:01 PM, Dave Hansen wrote: On 04/01/2014 02:35 PM, H. Peter Anvin wrote: On

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Wed, Apr 02, 2014 at 10:48:03AM -0700, John Stultz wrote: On Wed, Apr 2, 2014 at 10:40 AM, Dave Hansen d...@sr71.net wrote: On 04/02/2014 10:18 AM, Johannes Weiner wrote: Hence my follow-up question in the other mail about how large we expect such code caches to become in practice in

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread Andrea Arcangeli
Hi everyone, On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: So between zero-fill and SIGBUS, I think SIGBUS makes the most sense. If you have a third option you're thinking of, I'd of course be interested in hearing it. I actually thought the way of being notified with a page

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On Wed, Apr 2, 2014 at 10:58 AM, Johannes Weiner han...@cmpxchg.org wrote: On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: That point beside, I think the other problem with the page-cleaning volatility approach is that there are other awkward side effects. For example: Say an

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Wed, Apr 02, 2014 at 08:31:13PM +0200, Andrea Arcangeli wrote: Hi everyone, On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: So between zero-fill and SIGBUS, I think SIGBUS makes the most sense. If you have a third option you're thinking of, I'd of course be interested in

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On Wed, Apr 2, 2014 at 11:07 AM, Johannes Weiner han...@cmpxchg.org wrote: On Wed, Apr 02, 2014 at 10:48:03AM -0700, John Stultz wrote: I suspect handling the SIGBUS and patching up the purged page you trapped on is likely much to complicated for most use cases. But I do think SIGBUS is

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread Johannes Weiner
On Wed, Apr 02, 2014 at 12:01:00PM -0700, John Stultz wrote: On Wed, Apr 2, 2014 at 10:58 AM, Johannes Weiner han...@cmpxchg.org wrote: On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: That point beside, I think the other problem with the page-cleaning volatility approach is

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On 04/02/2014 11:31 AM, Andrea Arcangeli wrote: On Tue, Apr 01, 2014 at 09:03:57PM -0700, John Stultz wrote: Now... once you've chosen SIGBUS semantics, there will be folks who will try to exploit the fact that we get SIGBUS on purged page access (at least on the user-space side) and will try

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread John Stultz
On 04/02/2014 12:47 PM, Johannes Weiner wrote: On Wed, Apr 02, 2014 at 12:01:00PM -0700, John Stultz wrote: On Wed, Apr 2, 2014 at 10:58 AM, Johannes Weiner han...@cmpxchg.org wrote: On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote: That point beside, I think the other problem with

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-02 Thread Jan Kara
On Wed 02-04-14 13:13:34, John Stultz wrote: On 04/02/2014 12:47 PM, Johannes Weiner wrote: On Wed, Apr 02, 2014 at 12:01:00PM -0700, John Stultz wrote: On Wed, Apr 2, 2014 at 10:58 AM, Johannes Weiner han...@cmpxchg.org wrote: On Wed, Apr 02, 2014 at 10:40:16AM -0700, John Stultz wrote:

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-01 Thread John Stultz
On 04/01/2014 04:01 PM, Dave Hansen wrote: > On 04/01/2014 02:35 PM, H. Peter Anvin wrote: >> On 04/01/2014 02:21 PM, Johannes Weiner wrote: >>> Either way, optimistic volatile pointers are nowhere near as >>> transparent to the application as the above description suggests, >>> which makes this

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-01 Thread H. Peter Anvin
On 04/01/2014 09:03 PM, John Stultz wrote: > > So, maybe its best to ignore the fact that folks want to do semi-crazy > user-space faulting via SIGBUS. At least to start with. Lets look at the > semantic for the "normal" mark volatile, never touch the pages until you > mark non-volatile -

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-01 Thread John Stultz
On 04/01/2014 02:21 PM, Johannes Weiner wrote: > [ I tried to bring this up during LSFMM but it got drowned out. > Trying again :) ] > > On Fri, Mar 21, 2014 at 02:17:30PM -0700, John Stultz wrote: >> Optimistic method: >> 1) Userland marks a large range of data as volatile >> 2) Userland

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-01 Thread Dave Hansen
On 04/01/2014 02:35 PM, H. Peter Anvin wrote: > On 04/01/2014 02:21 PM, Johannes Weiner wrote: >> Either way, optimistic volatile pointers are nowhere near as >> transparent to the application as the above description suggests, >> which makes this usecase not very interesting, IMO. > > ...

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-01 Thread H. Peter Anvin
On 04/01/2014 02:21 PM, Johannes Weiner wrote: > > Either way, optimistic volatile pointers are nowhere near as > transparent to the application as the above description suggests, > which makes this usecase not very interesting, IMO. > ... however, I think you're still derating the value way

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-01 Thread H. Peter Anvin
On 04/01/2014 02:21 PM, Johannes Weiner wrote: > [ I tried to bring this up during LSFMM but it got drowned out. > Trying again :) ] > > On Fri, Mar 21, 2014 at 02:17:30PM -0700, John Stultz wrote: >> Optimistic method: >> 1) Userland marks a large range of data as volatile >> 2) Userland

Re: [PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-04-01 Thread Johannes Weiner
[ I tried to bring this up during LSFMM but it got drowned out. Trying again :) ] On Fri, Mar 21, 2014 at 02:17:30PM -0700, John Stultz wrote: > Optimistic method: > 1) Userland marks a large range of data as volatile > 2) Userland continues to access the data as it needs. > 3) If userland

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-01 Thread Johannes Weiner
[ I tried to bring this up during LSFMM but it got drowned out. Trying again :) ] On Fri, Mar 21, 2014 at 02:17:30PM -0700, John Stultz wrote: Optimistic method: 1) Userland marks a large range of data as volatile 2) Userland continues to access the data as it needs. 3) If userland accesses

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-01 Thread H. Peter Anvin
On 04/01/2014 02:21 PM, Johannes Weiner wrote: [ I tried to bring this up during LSFMM but it got drowned out. Trying again :) ] On Fri, Mar 21, 2014 at 02:17:30PM -0700, John Stultz wrote: Optimistic method: 1) Userland marks a large range of data as volatile 2) Userland continues to

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-01 Thread H. Peter Anvin
On 04/01/2014 02:21 PM, Johannes Weiner wrote: Either way, optimistic volatile pointers are nowhere near as transparent to the application as the above description suggests, which makes this usecase not very interesting, IMO. ... however, I think you're still derating the value way too

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-01 Thread Dave Hansen
On 04/01/2014 02:35 PM, H. Peter Anvin wrote: On 04/01/2014 02:21 PM, Johannes Weiner wrote: Either way, optimistic volatile pointers are nowhere near as transparent to the application as the above description suggests, which makes this usecase not very interesting, IMO. ... however, I

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-01 Thread John Stultz
On 04/01/2014 02:21 PM, Johannes Weiner wrote: [ I tried to bring this up during LSFMM but it got drowned out. Trying again :) ] On Fri, Mar 21, 2014 at 02:17:30PM -0700, John Stultz wrote: Optimistic method: 1) Userland marks a large range of data as volatile 2) Userland continues to

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-01 Thread H. Peter Anvin
On 04/01/2014 09:03 PM, John Stultz wrote: So, maybe its best to ignore the fact that folks want to do semi-crazy user-space faulting via SIGBUS. At least to start with. Lets look at the semantic for the normal mark volatile, never touch the pages until you mark non-volatile - basically

Re: [PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-04-01 Thread John Stultz
On 04/01/2014 04:01 PM, Dave Hansen wrote: On 04/01/2014 02:35 PM, H. Peter Anvin wrote: On 04/01/2014 02:21 PM, Johannes Weiner wrote: Either way, optimistic volatile pointers are nowhere near as transparent to the application as the above description suggests, which makes this usecase not

[PATCH 0/5] Volatile Ranges (v12) & LSF-MM discussion fodder

2014-03-21 Thread John Stultz
Just wanted to send out an updated patch set that includes changes from some of the reviews. Hopefully folks will have some time to look them over prior to the LSF-MM discussion on volatile ranges on Tuesday (see below for LSF-MM discussion points to think about). New changes are:

[PATCH 0/5] Volatile Ranges (v12) LSF-MM discussion fodder

2014-03-21 Thread John Stultz
Just wanted to send out an updated patch set that includes changes from some of the reviews. Hopefully folks will have some time to look them over prior to the LSF-MM discussion on volatile ranges on Tuesday (see below for LSF-MM discussion points to think about). New changes are: