Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934925AbcJMSWq (ORCPT ); Thu, 13 Oct 2016 14:22:46 -0400 Received: from resqmta-po-09v.sys.comcast.net ([96.114.154.168]:55902 "EHLO resqmta-po-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934824AbcJMSWh (ORCPT ); Thu, 13 Oct 2016 14:22:37 -0400 X-Greylist: delayed 346 seconds by postgrey-1.27 at vger.kernel.org; Thu, 13 Oct 2016 14:22:37 EDT Date: Thu, 13 Oct 2016 13:16:21 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: "Michael Kerrisk (man-pages)" cc: Piotr Kwapulinski , mhocko@kernel.org, mgorman@techsingularity.net, a.p.zijlstra@chello.nl, riel@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-man@vger.kernel.org, Brice Goglin Subject: Re: Rewording language in mbind(2) to "threads" not "processes" In-Reply-To: Message-ID: References: Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfDU0ifeiAdcRX2mKao02qSNzzZXYe9IjFpO4lGMXDNHQ3ImevjhOvwY5wkicSCknTqEh4XLxHUekGPwQ4IgJd/IlWP51KqNAaduR4dOh1vauA/L9nYMN WQUQja0w0JfbzdFoIYVFb6BGkFbNPjY5aySqc89q3SLpfUjcV4dYGhSYNaX5dRL9q+lTarayg4fod9JVXJ1vuXw7q3jPRtJdw9Nwgt5uFilLYUMKK2v6Nnx+ 7VczgVm2A871Nz6QX4PKCQ/+krl8mbQm4wMx9wFd4GUZJLg3nNGNLlPvjPdEi14TUgjckQhubMqJOx8tGyiwOOtrCBagohTUASQE8sH3ynnp9xc2ai6nvr2Q oz4Yj2ojNpxOUljaOW/sxObu7i5rNP1yGEMf62BzUpfPIpuWeChC3Vg2rVKWeII4x8VroSaEkL3huWTOk0dgNXrZzG0eViXd8zF3zMud+03FblmktU+TC/w/ Qyzl9I+8erXJ0CHn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1423 Lines: 37 On Thu, 13 Oct 2016, Michael Kerrisk (man-pages) wrote: > @@ -100,7 +100,10 @@ If, however, the shared memory region was created with the > .B SHM_HUGETLB > flag, > the huge pages will be allocated according to the policy specified > -only if the page allocation is caused by the process that calls > +only if the page allocation is caused by the thread that calls > +.\" > +.\" ??? Is it correct to change "process" to "thread" in the preceding line? No leave it as process. Pages get one map refcount per page table that references them (meaning a process). More than one map refcount means that multiple processes have mapped the page. > @@ -300,7 +303,10 @@ is specified in > .IR flags , > then the kernel will attempt to move all the existing pages > in the memory range so that they follow the policy. > -Pages that are shared with other processes will not be moved. > +Pages that are shared with other threads will not be moved. > +.\" > +.\" ??? Is it correct to change "processes" to "threads" in the preceding line? > +.\" Leave it. Same as before. > If > then the kernel will attempt to move all existing pages in the memory range > -regardless of whether other processes use the pages. > -The calling process must be privileged > +regardless of whether other threads use the pages. > +.\" > +.\" ??? Is it correct to change "processes" to "threads" in the preceding line? > +.\" Leave as process.