From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1D30C433DB for ; Wed, 3 Feb 2021 02:50:51 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B1BD64F68 for ; Wed, 3 Feb 2021 02:50:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B1BD64F68 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4DVmQK34wfzDwrf for ; Wed, 3 Feb 2021 13:50:49 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=jason.m.bills@linux.intel.com; receiver=) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4DVcB43g8WzDqbk for ; Wed, 3 Feb 2021 07:39:39 +1100 (AEDT) IronPort-SDR: kT4DxRl9tTvUO4qfplIHeEZ7j3hrE39TdSvw5YfQjbBP/nA6McHH9PBH+YLQOTkIT3lKOIlDvU PFDgMiE7VEvg== X-IronPort-AV: E=McAfee;i="6000,8403,9883"; a="181073478" X-IronPort-AV: E=Sophos;i="5.79,396,1602572400"; d="scan'208";a="181073478" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2021 12:39:33 -0800 IronPort-SDR: 7ZsDED+RDfPRmP5jygC/371wVzBkmv1tumMhIIf+0gW+OdpfCbdmcATLFLefDkGkAQ+8B1gc89 AsAan3fFvg5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,396,1602572400"; d="scan'208";a="370943906" Received: from linux.intel.com ([10.54.29.200]) by fmsmga008.fm.intel.com with ESMTP; 02 Feb 2021 12:39:32 -0800 Received: from [10.212.238.16] (jmbills-MOBL.amr.corp.intel.com [10.212.238.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id ED2415802A4; Tue, 2 Feb 2021 12:39:31 -0800 (PST) Subject: Re: Sensor Value PropertiesChanged Events To: Ed Tanous References: <31abd546-4538-ecf0-134e-b8e48e75b3ad@linux.intel.com> From: "Bills, Jason M" Message-ID: Date: Tue, 2 Feb 2021 12:39:31 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "openbmc@lists.ozlabs.org" Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On 2/1/2021 5:26 PM, Ed Tanous wrote: > On Mon, Feb 1, 2021 at 4:44 PM Bills, Jason M > wrote: >> >> Hi All, >> >> There is an issue and idea that James Feist and I chatted about to maybe >> relieve some of our D-Bus traffic. >> >> A major contributor to our D-Bus traffic (as seen in dbus-monitor) is >> the polling sensors updating the xyz.openbmc_project.Sensor.Value.Value >> property on each polling loop, which generates a PropertiesChanged >> signal for every sensor on every polling loop (once per second?). >> >> The concern is that more important D-Bus messages could be getting >> delayed as D-Bus processes these Sensor Value signals. >> >> The idea to fix this is to change the sensors with a custom getter on >> the Value property, so the last read can be pulled from D-Bus using a >> get-property call, but it would no longer signal a PropertiesChanged event. > > Doesn't this break..... like... everything that relies on sensor > values changing over time? I think this was my incorrect assumption that the PropertiesChanged signal for sensor value updates was not used and could be removed without significant impact. I will abandon my proposed change, but I'm glad there are other thoughts and discussion around this issue. Thanks! -Jason > >> >> I pushed a proposed change here: >> https://gerrit.openbmc-project.xyz/c/openbmc/dbus-sensors/+/40199. >> >> Our original assumption was that nobody was matching on this >> PropertiesChanged signal for the Value property; however, it was pointed >> out to me today, that PID control has a match for it and may be using it. > snip...