From: Eric B Munson <emunson-JqFfY2XvxFXQT0dZR+AlfA@public.gmane.org>
To: Jonathan Corbet <corbet-T1hC0tSOHrs@public.gmane.org>
Cc: Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
Michal Hocko <mhocko-AlSwsSmVLrQ@public.gmane.org>,
Vlastimil Babka <vbabka-AlSwsSmVLrQ@public.gmane.org>,
linux-alpha-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org,
linux-parisc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
sparclinux-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-xtensa-PjhNF2WwrV/0Sa2dR60CXw@public.gmane.org,
linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org,
linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH V3 3/5] mm: mlock: Introduce VM_LOCKONFAULT and add mlock flags to enable it
Date: Fri, 10 Jul 2015 12:19:48 -0400 [thread overview]
Message-ID: <20150710161948.GF4669@akamai.com> (raw)
In-Reply-To: <20150710101118.5d04d627-T1hC0tSOHrs@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1173 bytes --]
On Fri, 10 Jul 2015, Jonathan Corbet wrote:
> On Thu, 9 Jul 2015 14:46:35 -0400
> Eric B Munson <emunson-JqFfY2XvxFXQT0dZR+AlfA@public.gmane.org> wrote:
>
> > > One other question...if I call mlock2(MLOCK_ONFAULT) on a range that
> > > already has resident pages, I believe that those pages will not be locked
> > > until they are reclaimed and faulted back in again, right? I suspect that
> > > could be surprising to users.
> >
> > That is the case. I am looking into what it would take to find only the
> > present pages in a range and lock them, if that is the behavior that is
> > preferred I can include it in the updated series.
>
> For whatever my $0.02 is worth, I think that should be done. Otherwise
> the mlock2() interface is essentially nondeterministic; you'll never
> really know if a specific page is locked or not.
>
> Thanks,
>
> jon
Okay, I likely won't have the new set out today then. This change is
more invasive. IIUC, I need an equivalent to __get_user_page() skips
pages which are not present instead of faulting in and the call chain to
get to it. Unless there is an easier way that I am missing.
Eric
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Eric B Munson <emunson@akamai.com>
To: Jonathan Corbet <corbet@lwn.net>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Michal Hocko <mhocko@suse.cz>, Vlastimil Babka <vbabka@suse.cz>,
linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mips@linux-mips.org, linux-parisc@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org,
linux-xtensa@linux-xtensa.org, linux-mm@kvack.org,
linux-arch@vger.kernel.org, linux-api@vger.kernel.org
Subject: Re: [PATCH V3 3/5] mm: mlock: Introduce VM_LOCKONFAULT and add mlock flags to enable it
Date: Fri, 10 Jul 2015 12:19:48 -0400 [thread overview]
Message-ID: <20150710161948.GF4669@akamai.com> (raw)
Message-ID: <20150710161948.2mT8diRW2fR206-IMpjyhT-fh3sUr3WnKgyFA63W-m4@z> (raw)
In-Reply-To: <20150710101118.5d04d627@lwn.net>
[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]
On Fri, 10 Jul 2015, Jonathan Corbet wrote:
> On Thu, 9 Jul 2015 14:46:35 -0400
> Eric B Munson <emunson@akamai.com> wrote:
>
> > > One other question...if I call mlock2(MLOCK_ONFAULT) on a range that
> > > already has resident pages, I believe that those pages will not be locked
> > > until they are reclaimed and faulted back in again, right? I suspect that
> > > could be surprising to users.
> >
> > That is the case. I am looking into what it would take to find only the
> > present pages in a range and lock them, if that is the behavior that is
> > preferred I can include it in the updated series.
>
> For whatever my $0.02 is worth, I think that should be done. Otherwise
> the mlock2() interface is essentially nondeterministic; you'll never
> really know if a specific page is locked or not.
>
> Thanks,
>
> jon
Okay, I likely won't have the new set out today then. This change is
more invasive. IIUC, I need an equivalent to __get_user_page() skips
pages which are not present instead of faulting in and the call chain to
get to it. Unless there is an easier way that I am missing.
Eric
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Eric B Munson <emunson@akamai.com>
To: Jonathan Corbet <corbet-T1hC0tSOHrs@public.gmane.org>
Cc: Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
Michal Hocko <mhocko-AlSwsSmVLrQ@public.gmane.org>,
Vlastimil Babka <vbabka-AlSwsSmVLrQ@public.gmane.org>,
linux-alpha-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org,
linux-parisc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
sparclinux-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-xtensa-PjhNF2WwrV/0Sa2dR60CXw@public.gmane.org,
linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org,
linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH V3 3/5] mm: mlock: Introduce VM_LOCKONFAULT and add mlock flags to enable it
Date: Fri, 10 Jul 2015 16:19:48 +0000 [thread overview]
Message-ID: <20150710161948.GF4669@akamai.com> (raw)
In-Reply-To: <20150710101118.5d04d627-T1hC0tSOHrs@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]
On Fri, 10 Jul 2015, Jonathan Corbet wrote:
> On Thu, 9 Jul 2015 14:46:35 -0400
> Eric B Munson <emunson@akamai.com> wrote:
>
> > > One other question...if I call mlock2(MLOCK_ONFAULT) on a range that
> > > already has resident pages, I believe that those pages will not be locked
> > > until they are reclaimed and faulted back in again, right? I suspect that
> > > could be surprising to users.
> >
> > That is the case. I am looking into what it would take to find only the
> > present pages in a range and lock them, if that is the behavior that is
> > preferred I can include it in the updated series.
>
> For whatever my $0.02 is worth, I think that should be done. Otherwise
> the mlock2() interface is essentially nondeterministic; you'll never
> really know if a specific page is locked or not.
>
> Thanks,
>
> jon
Okay, I likely won't have the new set out today then. This change is
more invasive. IIUC, I need an equivalent to __get_user_page() skips
pages which are not present instead of faulting in and the call chain to
get to it. Unless there is an easier way that I am missing.
Eric
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-07-10 16:19 UTC|newest]
Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-07 17:03 [PATCH V3 0/5] Allow user to request memory to be locked on page fault Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-07 17:03 ` [PATCH V3 1/5] mm: mlock: Refactor mlock, munlock, and munlockall code Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-07 17:03 ` [PATCH V3 2/5] mm: mlock: Add new mlock, munlock, and munlockall system calls Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-08 6:46 ` Heiko Carstens
2015-07-08 6:46 ` Heiko Carstens
2015-07-08 6:46 ` Heiko Carstens
2015-07-08 6:46 ` Heiko Carstens
2015-07-08 6:46 ` Heiko Carstens
2015-07-08 7:02 ` Geert Uytterhoeven
2015-07-08 7:02 ` Geert Uytterhoeven
2015-07-08 7:02 ` Geert Uytterhoeven
2015-07-08 7:02 ` Geert Uytterhoeven
2015-07-08 7:02 ` Geert Uytterhoeven
2015-07-08 7:02 ` Geert Uytterhoeven
2015-07-08 7:02 ` Geert Uytterhoeven
[not found] ` <1436288623-13007-3-git-send-email-emunson-JqFfY2XvxFXQT0dZR+AlfA@public.gmane.org>
2015-07-08 11:06 ` Catalin Marinas
2015-07-08 11:06 ` Catalin Marinas
2015-07-08 11:06 ` Catalin Marinas
2015-07-08 11:06 ` Catalin Marinas
2015-07-08 11:06 ` Catalin Marinas
2015-07-08 11:06 ` Catalin Marinas
2015-07-08 11:06 ` Catalin Marinas
2015-07-07 17:03 ` Eric B Munson
2015-07-07 17:03 ` [PATCH V3 3/5] mm: mlock: Introduce VM_LOCKONFAULT and add mlock flags to enable it Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-08 19:23 ` Jonathan Corbet
2015-07-08 19:23 ` Jonathan Corbet
2015-07-08 19:23 ` Jonathan Corbet
2015-07-08 20:34 ` Eric B Munson
2015-07-08 20:34 ` Eric B Munson
2015-07-08 21:17 ` Jonathan Corbet
2015-07-08 21:17 ` Jonathan Corbet
2015-07-08 21:17 ` Jonathan Corbet
2015-07-08 21:17 ` Jonathan Corbet
2015-07-08 21:17 ` Jonathan Corbet
2015-07-08 21:17 ` Jonathan Corbet
2015-07-09 18:46 ` Eric B Munson
2015-07-09 18:46 ` Eric B Munson
2015-07-10 16:11 ` Jonathan Corbet
2015-07-10 16:11 ` Jonathan Corbet
2015-07-10 16:11 ` Jonathan Corbet
[not found] ` <20150710101118.5d04d627-T1hC0tSOHrs@public.gmane.org>
2015-07-10 16:19 ` Eric B Munson [this message]
2015-07-10 16:19 ` Eric B Munson
2015-07-10 16:19 ` Eric B Munson
2015-07-21 15:35 ` Vlastimil Babka
2015-07-21 15:35 ` Vlastimil Babka
2015-07-21 15:35 ` Vlastimil Babka
2015-07-07 17:03 ` [PATCH V3 4/5] mm: mmap: Add mmap flag to request VM_LOCKONFAULT Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-18 19:11 ` Paul Gortmaker
2015-07-18 19:11 ` Paul Gortmaker
2015-07-20 20:40 ` Chris Metcalf
2015-07-20 20:40 ` Chris Metcalf
2015-07-20 20:40 ` Chris Metcalf
2015-07-21 15:37 ` Eric B Munson
2015-07-22 14:10 ` Paul Gortmaker
2015-07-22 14:10 ` Paul Gortmaker
2015-07-22 14:10 ` Paul Gortmaker
[not found] ` <1436288623-13007-1-git-send-email-emunson-JqFfY2XvxFXQT0dZR+AlfA@public.gmane.org>
2015-07-07 17:03 ` [PATCH V3 5/5] selftests: vm: Add tests for lock on fault Eric B Munson
2015-07-07 17:03 ` Eric B Munson
2015-07-07 17:03 ` Eric B Munson
[not found] ` <1436288623-13007-6-git-send-email-emunson-JqFfY2XvxFXQT0dZR+AlfA@public.gmane.org>
2015-07-07 21:51 ` Andrew Morton
2015-07-07 21:51 ` Andrew Morton
2015-07-07 21:51 ` Andrew Morton
2015-07-07 21:16 ` [PATCH V3 0/5] Allow user to request memory to be locked on page fault Andrew Morton
2015-07-07 21:16 ` Andrew Morton
2015-07-07 21:16 ` Andrew Morton
2015-07-07 21:16 ` Andrew Morton
2015-07-08 13:23 ` Eric B Munson
2015-07-08 13:23 ` Eric B Munson
2015-07-08 17:00 ` Andrew Morton
2015-07-08 17:00 ` Andrew Morton
2015-07-08 17:00 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150710161948.GF4669@akamai.com \
--to=emunson-jqffy2xvxfxqt0dzr+alfa@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=corbet-T1hC0tSOHrs@public.gmane.org \
--cc=linux-alpha-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mips-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org \
--cc=linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org \
--cc=linux-parisc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-xtensa-PjhNF2WwrV/0Sa2dR60CXw@public.gmane.org \
--cc=linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=mhocko-AlSwsSmVLrQ@public.gmane.org \
--cc=sparclinux-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=vbabka-AlSwsSmVLrQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.