Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1806430imm; Thu, 19 Jul 2018 08:09:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf0tUHKiYNGNcFJC+T3RUB9R+psLLRUsqStYzU/ZKAXqJfSsU2CFTbWgcl1FpTfXXWsk0rS X-Received: by 2002:a63:82c7:: with SMTP id w190-v6mr10380297pgd.253.1532012988266; Thu, 19 Jul 2018 08:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532012988; cv=none; d=google.com; s=arc-20160816; b=sgBIIuLsRbe8buOs4R9NlKL5Vc8l4dY9bwZ+U6sMc9gKi7u6hFjqldZQ6xHqIBeiep nr+7dfcbj3UMOpWzxz1jcfL7GaS8oR7dc0Hz0FWiJUaoUJOQ396yG0r8hJrSB/iG0siQ UIWSFPFsTPytLYwkgA02Hhim6pu+1FHxQqbMTooIEiy1AasL//aRY+x0W9ngLGmyPa65 nErH9tPnjQj3PejCIjrbrTDEX1IgDspPHYdzzQnEjT8ZkF4uJXoqfI+dxgSESUSyoi47 4eq1KouVMogq0x6oz6CniG6T1F/3jKinXpkusWqtMC4yQ5UDkQYltH3D/XqzA9a79dxZ YkZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=k9XyS2+Bjfxgi4gGbi43c33wHKsoxIM0ST7EsX47Tuw=; b=uGbLtpIc1cCsnR9p+WZcTL8NEEjJthW6fSxCFuCdJhk2+piF31eXs+Nxo9RYA7TGDS sgZJvrPn6Pqvis5NUkbDmXPJhJILOIHdpE/NluGnwI21oAisW1xmJsnc02qggM+a8tDq GOXhdhbj0Gm0H7cLI+dY1+XAAyGRd72tXbvo1TZdFr0a7TgI7ls8njxWAAMEXbJn4sVJ NQrjIvEgnYPITUIV8dG4ryhBIusIXWSedPCfHOzaK8upOxkOnuAO8asdrlJPusnfOkQd UX0NNEBFOoMyG22vYbQf7NJfLHptMRqbVn/NJF/id3NEaCvaHwHETRDP5t3/nKKKkBf/ 1OLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=cm5gGTFb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2-v6si6013312pgo.121.2018.07.19.08.09.33; Thu, 19 Jul 2018 08:09:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=cm5gGTFb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731913AbeGSPwI (ORCPT + 99 others); Thu, 19 Jul 2018 11:52:08 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:38249 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731567AbeGSPwI (ORCPT ); Thu, 19 Jul 2018 11:52:08 -0400 Received: by mail-io0-f196.google.com with SMTP id v26-v6so7343423iog.5; Thu, 19 Jul 2018 08:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k9XyS2+Bjfxgi4gGbi43c33wHKsoxIM0ST7EsX47Tuw=; b=cm5gGTFbP0qWGa010xXAjOG7WIcdtNXFTliB3RbeVdpfkaCwQPGf5oOrlhtA5OKL1n Za4Zxs4GzVrgvVJCTyYM+uxaN9LuROjHZ7MwRcm/RgaZ39EyrhqLqoSMnnoR9WZ4dAnn agoCsLjIFsyZy4xfZngAIaHd6zO4o4EoJqiRQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k9XyS2+Bjfxgi4gGbi43c33wHKsoxIM0ST7EsX47Tuw=; b=M8pBoWCtt7iQX5AKl3JZv2OYN26MJjU6o6NWBm6nB8XzEgI+85R6EG8yFT1xJOZbbr nJWsXpMfuOfRW/qRgGlcUh1HodTThGkZ8WmUC0zfGJhvFqHQlBiVgFHBwlK0ogt+MjF8 Eqhh4xZGsagGV/VWKWSsgUPmMJKjaxsPAzzUl7Ks/GHXdzfhYmTCQ0BNyvINgyeuoRiT X24gNs09O/fM92qapWocDme/C1L3Vq0Z2Dt0ZrNHxg+IyAOfDcdLXtgAgLuuivMCY8+Y 3NWD1rgV/8fpoHbYmwB+80BS055ntKlslU5YoYHujnPHIGtdXSYHqA1c6Ud5WxXeL1mY fjBQ== X-Gm-Message-State: AOUpUlH7j7byWTD8cL2mTy4PIoiznR9r8fPw9SrN/9SUEchP9gbJLFb7 BqDNes3Towk2VgjuIB9FPdclPvIMzray3RrsaZw= X-Received: by 2002:a6b:f612:: with SMTP id n18-v6mr1663888ioh.259.1532012911924; Thu, 19 Jul 2018 08:08:31 -0700 (PDT) MIME-Version: 1.0 References: <20180712172942.10094-1-hannes@cmpxchg.org> <20180712172942.10094-9-hannes@cmpxchg.org> <20180718120318.GC2476@hirez.programming.kicks-ass.net> In-Reply-To: <20180718120318.GC2476@hirez.programming.kicks-ass.net> From: Linus Torvalds Date: Thu, 19 Jul 2018 08:08:20 -0700 Message-ID: Subject: Re: [PATCH 08/10] psi: pressure stall information for CPU, memory, and IO To: Peter Zijlstra Cc: Johannes Weiner , Ingo Molnar , Andrew Morton , Tejun Heo , surenb@google.com, Vinayak Menon , Christoph Lameter , Mike Galbraith , shakeelb@google.com, linux-mm , cgroups , Linux Kernel Mailing List , kernel-team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 18, 2018 at 5:03 AM Peter Zijlstra wrote: > > And as said before, we can compress the state from 12 bytes, to 6 bits > (or 1 byte), giving another 11 bytes for 59 bytes free. > > Leaving us just 5 bytes short of needing a single cacheline :/ Do you actually need 64 bits for the times? That's the big cost. And it seems ridiculous, if you actually care about size. You already have a 64-bit start time. Everything else is some cumulative relative time. Do those really need 64-bit and nanosecond resolution? Maybe a 32-bit microsecond would be ok - would you ever account more than 35 minutes of anything without starting anew? Linus