Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1479547

Re: [PATCH v4] lib/bitmap.c: enhance bitmap syntax

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Andrew Morton <akpm@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH v4] lib/bitmap.c: enhance bitmap syntax
Date Fri, 09 Sep 2016 00:20:02 +0200
Message-ID <sffPQ-3bV-13@gated-at.bofh.it> (permalink)
References <rVULT-1ud-9@gated-at.bofh.it> <sffPQ-3bV-15@gated-at.bofh.it>
X-Mailer Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu)
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 29
Organization linux.* mail to news gateway
X-Original-Cc <decot@googlers.com>, <ben@decadent.org.uk>, <davem@davemloft.net>, <linux-kernel@vger.kernel.org>, <xinhui@linux.vnet.ibm.com>
X-Original-Date Thu, 8 Sep 2016 15:19:33 -0700
X-Original-Message-ID <20160908151933.1f48a10e757e5af5435f8daa@linux-foundation.org>
X-Original-References <1468743057-29498-1-git-send-email-noamca@mellanox.com> <1473348805-7145-1-git-send-email-noamca@mellanox.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1479547

Show key headers only | View raw


On Thu, 8 Sep 2016 18:33:25 +0300 Noam Camus <noamca@mellanox.com> wrote:

> Today there are platforms with many CPUs (up to 4K).
> Trying to boot only part of the CPUs may result in too long string.
> 
> For example lets take NPS platform that is part of arch/arc.
> This platform have SMP system with 256 cores each with
> 16 HW threads (SMT machine) where HW thread appears as CPU to the kernel.
> In this example there is total of 4K CPUs.
> When one tries to boot only part of the HW threads from each core the
> string representing the map may be long...
> For example if for sake of performance we decided to boot only first half
> of HW threads of each core the map will look like:
> 0-7,16-23,32-39,...,4080-4087
> 
> This patch introduce new syntax to accommodate with such use case.
> I added an optional postfix to a range of CPUs which will choose
> according to given modulo the desired range of reminders i.e.:
>     <cpus range>:sed_size/group_size
> 
> For example, above map can be described in new syntax like this:
> 0-4095:8/16

There should be some updates to the user-facing documentation, please. 
Documentation/kernel-parameters.txt, mainly.  Which boot parameters
does this affect?  For example, I think it accidentally alters
isolcpus=?

It would be useful to see the patch which wires this up (to arch/arc?).

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH v4] lib/bitmap.c: enhance bitmap syntax Andrew Morton <akpm@linux-foundation.org> - 2016-09-09 00:20 +0200

csiph-web