Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4948142pxj; Wed, 12 May 2021 17:26:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIsFPIxB7PcP6vY1Gaml1Djfv40lRBMUUqdMG4iUBKb5T5g2badtuswbGDXTCJgOBFMtQq X-Received: by 2002:adf:e7cb:: with SMTP id e11mr49090468wrn.2.1620865569054; Wed, 12 May 2021 17:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620865569; cv=none; d=google.com; s=arc-20160816; b=DmO4duKKGmy2uz+W4Ceyf8ECP7v2qGN9fXI0f3AWJe9zllCNUV1Pjfx66UNrwPmW9T rnOa19wzfmi64gdVQI/v9RZkemj9KI5heZ/+q5CW9M5IKm6NfzlV2nvu3kxiMfODdZjb BPvidP+oZRkAm8Pv/9jYxIAermxLLmnDbIb/UdaZ5tWLmbyKZUqUVVOt5OD1KdyYL76f GvxEOHMwsrCwlPbF2K/pdNp31w4pQbjcMcOQ6Pqv5q23155a2Vf5w+1Mm9ayQA1iiRLO 3nX51iSwWQqXerrzYKON/oPuhG9JbB2i2JHu1prqZnbUMsmDA4UUx7ZGxvTU6iymJJgq VMPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:dkim-signature:dkim-signature:from; bh=CX9+MuuWEQWnFC1f0v4umjM+QedIzoRjhbbbY3SBY/Y=; b=UIXYy1Nlu2psHOaSnrHZ0EH5VhuzN8EeUcvPVJ3Z+QdJ4i1xg/25g98xduqZ33d9fV eQmhAS0uh36xp5OvFbdwDgEO3K0GcaOQbS5fz1qYdTs4+mSGjMvoPxJVtbyQdFlFxEGZ LI2LXDM/ZLQeG0JXfRA2QkJ5XMbm6+/ee+qswgfyITgUntrhVUEA5YrpmzOdoJ6XGvxZ hiTzHj64e5P7wxrfk4UpHLRwqDLk6PUDPrkN+shympNnoMzXwjC+NX8M2xoWur9WtWGW i1m0AFNWgwEtkhJzHTGQF0u87Ag7azyzMhdcXCI7el0Q6tkm86JoSqUegCBmgs+LBI74 0W2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=ZNDkANDG; dkim=neutral (no key) header.i=@linutronix.de header.b=o7kCPiWS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si1539362wrs.143.2021.05.12.17.25.45; Wed, 12 May 2021 17:26:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=ZNDkANDG; dkim=neutral (no key) header.i=@linutronix.de header.b=o7kCPiWS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235446AbhEMAXy (ORCPT + 99 others); Wed, 12 May 2021 20:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346258AbhEMAWW (ORCPT ); Wed, 12 May 2021 20:22:22 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1018EC061359 for ; Wed, 12 May 2021 16:58:18 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620863896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=CX9+MuuWEQWnFC1f0v4umjM+QedIzoRjhbbbY3SBY/Y=; b=ZNDkANDGwRROjrzWGWRElNOkfA4C5+41NwZ2A9s0gdQwx+QiRLzwLdaNUx8Wf3ThiIpe+b n+1R3bNi0O0QftDuxj2Fw6T1I0LntXzBhPb667WmYCLm+Lpodyx1cHkc1pQvoZbmzLHrbm ecG+QYYA/4kdnMHBa8BSYfi/2oAu7plqeh81l1/JlUehY5fUVrT4o4AAVHWQDXet5Imc74 kcDJKfxytEAI4yeEjnK2pA4n64S8S//KKe8G5BfgMcvoF6ufO9FTzqHUm71eHR+HCxNW8a cH1FG/qpR3x4qv77ndbn/EUlLb0BWUWW2g0T3EoTBggEaqOt50j7EbheX3KCWw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620863896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=CX9+MuuWEQWnFC1f0v4umjM+QedIzoRjhbbbY3SBY/Y=; b=o7kCPiWS7RzQ4S/OEGRUHYOByNw8Pm0MPlWue0VP2qZAaMZENXhqfU2lI/HUAOhahAEaS/ oe6Jw92bhcThLABQ== To: Alexey Dobriyan , mingo@redhat.com, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, Alexey Dobriyan , x86@kernel.org Subject: Re: [PATCH 1/4] sched: make nr_running() return 32-bit In-Reply-To: <20210422200228.1423391-1-adobriyan@gmail.com> Date: Thu, 13 May 2021 01:58:16 +0200 Message-ID: <87fsyr5wtj.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexey, On Thu, Apr 22 2021 at 23:02, Alexey Dobriyan wrote: > Creating 2**32 tasks is impossible due to futex pid limits and wasteful > anyway. Nobody has done it. > this whole pile lacks useful numbers. What's the actual benefit of that churn? Just with the default config for one of my reference machines: text data bss dec hex filename 16679864 6627950 1671296 24979110 17d26a6 ../build/vmlinux-before 16679894 6627950 1671296 24979140 17d26c4 ../build/vmlinux-after ------------------------------------------------------------------------ +30 I'm truly impressed by the massive savings of this change and I'm even more impressed by the justification: > Bring nr_running() into 32-bit world to save on REX prefixes. Aside of the obvious useless churn, REX prefixes are universaly true for all architectures, right? There is a world outside x86 ... Thanks, tglx