Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964793AbcJVKI6 (ORCPT ); Sat, 22 Oct 2016 06:08:58 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:33385 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936463AbcJVKIz (ORCPT ); Sat, 22 Oct 2016 06:08:55 -0400 Subject: Re: Rewording language in mbind(2) to "threads" not "processes" To: Christoph Lameter References: Cc: mtk.manpages@gmail.com, 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 From: "Michael Kerrisk (man-pages)" Message-ID: Date: Sat, 22 Oct 2016 12:08:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1730 Lines: 50 On 10/13/2016 08:16 PM, Christoph Lameter wrote: > 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. Thanks. I've reverted these changes. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/