Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3295226imu; Mon, 17 Dec 2018 17:24:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/W25GjHtKhCnUYpuWgbV7hkJhuHarcKgap0dpq3WDNsca+SU08kIc7vATroRXn24DLL9URs X-Received: by 2002:a62:9719:: with SMTP id n25mr987128pfe.240.1545096240064; Mon, 17 Dec 2018 17:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545096240; cv=none; d=google.com; s=arc-20160816; b=tO6usucEMx2+hXEGQQxOCUwL+AKBVRNQqxrOLgazfne9U2t9mPD7jeJRd1drJzEZzH jEG5UX5TdX29vkRJ1qsHtH6Aerls1B8m/yE5bpB+MTRbql8qw+aYSgcoMCuRNVTfH1wp 5LMAdcaebJuOKkT8cWpbXn7yfl9l+SpNvMOIa42wRnWiUUfcQdPBPG+G1VmmmjL/mrhc 7KNtVZsZbNfeWcTCPPtbapcM2+io3dySObDLsZjUe8CbyNOm398WmaznXqYneM1sBBen wvzaD+4XhHh5S902e/KTwDGbmMdtQpKzes+U3eAUCNo9ANlRB9jTQt26q93rxFlpee33 K3wg== 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; bh=sFGWv6X8z3NwFialNaeSsACmFB5fqtUuW9oC4mugWj4=; b=PInhhcjjom+y9UDUknxyEFMuPQKVbm8r4om+n7+hJcmqHWWrVC+ZOUTsIIY8ORFaPD Zv8ZEk13+DM2TLYvWd4GVHpUNIo8T4tZNT/yjapn4fbi7qEpm+gEIlyPmtrhZ9jSzIGA 77OBDhppUtGwJheb+BVkF2WFWnSHZoDo1JqPlKOQYfDafWLp/c6Wg1uf/c8Aj42SN15C pULB+YQIfNG2DFTTXkIn4UzCpp3FJGBCtRswz1L+kXy/A+Q5O2EqpqjjP+6ncKxpeXgs dfJWdeI2daUrrLXH0HApM4AgZGzvBGzFfYwbyUzwgSfhLF2Pn/vF892gjYh9oNF+MxCx 6/lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=l3yIC1z2; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g187si12287522pfc.43.2018.12.17.17.23.44; Mon, 17 Dec 2018 17:24:00 -0800 (PST) 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=@google.com header.s=20161025 header.b=l3yIC1z2; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726379AbeLRBWt (ORCPT + 99 others); Mon, 17 Dec 2018 20:22:49 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40074 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726271AbeLRBWs (ORCPT ); Mon, 17 Dec 2018 20:22:48 -0500 Received: by mail-wm1-f67.google.com with SMTP id f188so380398wmf.5 for ; Mon, 17 Dec 2018 17:22:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sFGWv6X8z3NwFialNaeSsACmFB5fqtUuW9oC4mugWj4=; b=l3yIC1z24v0r3Yyxrmq1CCmwuEpPGGLweeNlEXuGnjDG//zHj98KJs+aO07RlEWBJu EV91sC4cK59Ckg3Dws+kWuu4UFAIjAkw0VnO1ND8uINmrTH5BvLLqNQkhtg81i8LypjB KDXThdLTJoDH/kvvlzp/npeS4W63wz3InzwaXy2BIv83yINt9LwsktznaONO7pjFocSS TQAST/KPYuCDPGYTmFRXaJbnXYZ7CLeAwBnTCL1irL8YTL+7pPzVqT4t5Srl5QtOnK9R fyhyHFu7pmHzLq7eUhESXu5N88IaFh9VOF1AfVUmQ9waNF38I/Lne4mUwBs4lKQswV9j oloQ== 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=sFGWv6X8z3NwFialNaeSsACmFB5fqtUuW9oC4mugWj4=; b=Qq6S6wv00RLXrx01SWbcITzuyM77LYoi/WpdxZEwOdt4rg4PvgtvqSOiVUZyeKYJow SF871x6+7bYENiPaL7ubL/m+W79E5VqiXik5zzCiaxNRb6/nUbsfnrckoFhGpWZS+EEa A+GIyGCguTAjwwWYLDLUrCi39fpq1dLP7HGyCyQjhvDRixEFNMuu5qVEUi8sohW7eDGM M7SBVeWupRNL8KAQXCC6JCnPWqaT7DhM81gWcdK1QkyjM5JOmJc5j5K0HRSFFPsNkbDT /2En4mndnRIDZKJEMTJPgOoSC8YKMr0vUuO7Uc9f9oyuvefJtDrCdNwHRe6ph5wQ2unW 0uhQ== X-Gm-Message-State: AA+aEWZYWcbELUu009POjMpnLCCJiOoTnK3JROq++lsDQxItKPoqSEML XmLgQgcVdsiT8NPnM8MXDZ1+f0V6aBhswqKigSCluA== X-Received: by 2002:a1c:6442:: with SMTP id y63mr1042938wmb.143.1545096166849; Mon, 17 Dec 2018 17:22:46 -0800 (PST) MIME-Version: 1.0 References: <20181214171508.7791-1-surenb@google.com> <20181214171508.7791-7-surenb@google.com> <20181217162713.GE2218@hirez.programming.kicks-ass.net> In-Reply-To: <20181217162713.GE2218@hirez.programming.kicks-ass.net> From: Suren Baghdasaryan Date: Mon, 17 Dec 2018 17:22:35 -0800 Message-ID: Subject: Re: [PATCH 6/6] psi: introduce psi monitor To: Peter Zijlstra Cc: Greg Kroah-Hartman , Tejun Heo , lizefan@huawei.com, Johannes Weiner , axboe@kernel.dk, dennis@kernel.org, Dennis Zhou , Ingo Molnar , Andrew Morton , Jonathan Corbet , cgroups@vger.kernel.org, linux-mm , linux-doc@vger.kernel.org, LKML , kernel-team@android.com 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 Mon, Dec 17, 2018 at 8:37 AM Peter Zijlstra wrote: > > On Fri, Dec 14, 2018 at 09:15:08AM -0800, Suren Baghdasaryan wrote: > > @@ -358,28 +526,23 @@ static void psi_update_work(struct work_struct *work) > > { > > struct delayed_work *dwork; > > struct psi_group *group; > > + u64 next_update; > > > > dwork = to_delayed_work(work); > > group = container_of(dwork, struct psi_group, clock_work); > > > > /* > > + * Periodically fold the per-cpu times and feed samples > > + * into the running averages. > > */ > > > > + psi_update(group); > > > > + /* Calculate closest update time */ > > + next_update = min(group->polling_next_update, > > + group->avg_next_update); > > + schedule_delayed_work(dwork, min(PSI_FREQ, > > + nsecs_to_jiffies(next_update - sched_clock()) + 1)); > > See, so I don't at _all_ like how there is no idle option.. Copy that. Will see what we can do to bring it back. Thanks! > > } > > > -- > You received this message because you are subscribed to the Google Groups "kernel-team" group. > To unsubscribe from this group and stop receiving emails from it, send an email to kernel-team+unsubscribe@android.com. >