Received: by 10.192.165.148 with SMTP id m20csp1203734imm; Thu, 10 May 2018 07:12:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrMsXy9tjviND+h59UX29iGus2bBLCeJ8Cao04yi0ui2sxN3qDEeaQwwIf5ZVrt/EEncQEF X-Received: by 2002:a17:902:407:: with SMTP id 7-v6mr1575884ple.47.1525961554270; Thu, 10 May 2018 07:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525961554; cv=none; d=google.com; s=arc-20160816; b=zUMEqMeTV6huF4ImvdrdOT4RINcEM6YgqPaPSYnB58XOX3AIHVWL2S0s5P4a1DN8mQ Q9gdJPHqIOXKh2oLFTHtVBwQjeMA+rsIV6rH8PvyFJtU7bnZclMw5hVa2XzfOwXHx4t0 h3/EGny9YfjhqTDAa/BAiDsh31VVBu89aylLI/pMgB4fqc4OuRMaikDPKA02xxu0bzSi DEuNGADBMsvBYohoiwBq6hx45TMGlcbeKNpDBJ8qhXXsm25MqfXlk4ntMZLigDiP5Xld wLCJpytaWbiWjfM6MZljDR+RWmdNY9mWw7SmN8v28DmIMRF338kMU2bcRV2kceDaZ+xz /rbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=mBFiRpCWuZTaRGq123mFOxRDzy3rlJ+hPqmNPw8XCpE=; b=HFxJ+Dy7SFeVHnT/01khbP2AWOwYwY61k1NoKbQYUBnVd3eRm6FTX2uJaxZ1hG8Wn1 ujyJmFcZx+FwrGnKYpL8FK1xsxtJhGW/ili1kaIAEbQB2E2A60r6wSryi5LJxnkuJjnT y7wUlb7gFed7EVHijcdLGHgx+FSI+izI2/Tkb1omyeg4uM9kEdLp2OWWHTeEg/nG3tZ/ uIUGbt28RJJZYVp5hpk1w7goeza8OCtbA3UjCixtAhyDnBsFBLnkIah0TwUjwZUw39qJ ejdO99AVuua1FS3BEcGgXZE7RIyHSkw3JfGsmaRxC0pDm/Ykwo4AmHGXhmfEaQDrBmvt 1m+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=Z7XW3Ymp; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3-v6si877949plb.147.2018.05.10.07.12.14; Thu, 10 May 2018 07:12:34 -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=fail header.i=@cmpxchg.org header.s=x header.b=Z7XW3Ymp; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965241AbeEJOLo (ORCPT + 99 others); Thu, 10 May 2018 10:11:44 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:50190 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751632AbeEJOLm (ORCPT ); Thu, 10 May 2018 10:11:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=mBFiRpCWuZTaRGq123mFOxRDzy3rlJ+hPqmNPw8XCpE=; b=Z7XW3YmpTe/FalOsJ62BYtB1Ed DQpYwgtHJ9FbtDzPUaNpAF1XmXNhCvcLk0bOFLgQKkRfKj14izdHgNmvMvWRJF6mydfog1JMywbKY 8toA2BiC0qGbF7yFdpXStQA4HxxzSVakOZogZyicuGP9vloIivoPxRv7s1TIBoHcPSks=; Date: Thu, 10 May 2018 10:13:34 -0400 From: Johannes Weiner To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org, cgroups@vger.kernel.org, Ingo Molnar , Andrew Morton , Tejun Heo , Balbir Singh , Mike Galbraith , Oliver Yang , Shakeel Butt , xxx xxx , Taras Kondratiuk , Daniel Walker , Vinayak Menon , Ruslan Ruslichenko , kernel-team@fb.com Subject: Re: [PATCH 6/7] psi: pressure stall information for CPU, memory, and IO Message-ID: <20180510141334.GE19348@cmpxchg.org> References: <20180507210135.1823-1-hannes@cmpxchg.org> <20180507210135.1823-7-hannes@cmpxchg.org> <20180509100551.GL12217@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180509100551.GL12217@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 12:05:51PM +0200, Peter Zijlstra wrote: > On Mon, May 07, 2018 at 05:01:34PM -0400, Johannes Weiner wrote: > > + u64 some[NR_PSI_RESOURCES] = { 0, }; > > + u64 full[NR_PSI_RESOURCES] = { 0, }; > > > + some[r] /= max(nonidle_total, 1UL); > > + full[r] /= max(nonidle_total, 1UL); > > That's a bare 64bit divide.. that typically failed to build on 32bit > archs. Ah yes, I'll switch that to do_div(). Thanks