<div dir="ltr">Thanks Andrew for the feedback.<div><br></div><div>We're planning to capture the data using something like "dbus-monitor" or "busctl capture" and on't want to write a new tool for sure.</div><div><br></div><div>For the analysis and visualization part, we looked into multiple options including the ones I mentioned in the previous email and none of them provide the exact functionality that we need. There are a few DBus profilers, but they do not allow grouping the events. Hence, they are not capable of visualizing many potential performance problems.</div><div><br></div><div>Regarding the implementation, we have a working prototype that can visualize DBus pcap dumps. However, we were thinking that including this in the UI would be more useful to the community.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 9, 2020 at 10:37 AM Andrew Geissler <<a href="mailto:geissonator@gmail.com">geissonator@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Oct 8, 2020, at 4:44 PM, Pasha Ghabussi <<a href="mailto:pashag@google.com" target="_blank">pashag@google.com</a>> wrote:<br>
> <br>
> Hello all,<br>
> <br>
> We would really appreciate it if you can take a few minutes to read the proposal sent earlier and let us know your thoughts and suggestions.<br>
> <br>
> Thank you<br>
> <br>
> On Mon, Oct 5, 2020 at 1:57 PM Pasha Ghabussi <<a href="mailto:pashag@google.com" target="_blank">pashag@google.com</a>> wrote:<br>
> Hello all,<br>
> We would really appreciate it if you can take a few minutes to read the following proposal and let us know your thoughts and suggestions.<br>
> We are developing a tool to investigate performance problems by looking at DBus traffic dumps.<br>
<br>
I definitely think this could be a very useful tool. Performance issues have hindered us from day 1 with OpenBMC and countless hours have gone into trying to identify the different issues. One area we’ve seen a lot of issues with is on BMC startup, especially after a firmware update. If you could provide a way to enable the needed profiling debug, and then reboot the BMC and capture the data for analysis, it would be appreciated.<br>
<br>
> Current DBus inspection and visualization tools do not represent the DBus events similar to a typical performance profiler. Additionally, these tools do not address typical BMC workloads such as IPMI and ASIO. Hence, identifying potential performance problems requires inspecting the raw BMC DBus traffic, which can become a long and complex process. We want to add a graphical interface to webui-vue to visualize the DBus traffic to address the abovementioned problem.<br>
<br>
Will you be using something like "busctl capture” to capture the data? I hope you don’t have to write a new tool to get the data? <br>
<br>
<br>
> <br>
> There have been DBus and IPMI performance-related discussions in the OpenBMC community, both of which can be helped by this work: IPMI-related issues started to appear as early as in 2017. One issue (#2630) describes a problem related to large numbers of sensors. Its follow-up (#3098) mentions “hostboot crashes due to poor IPMI performance”. Another issue (#2519) describes a commonly-seen problem of IPMI taking very long to respond (> 5s).<br>
> There are also discussions on RedFish performance on the mailing list; A patch optimized DBus performance by introducing a cache for name translation.<br>
> All the performance investigations listed above involve DBus and may be helped by this work.<br>
<br>
Agreed<br>
<br>
> <br>
> We are planning to use the BMCweb file hosting functionality to access the DBus event dumps and visualize the events in the web UI. The available profiling tools such as dbus-pcap, Wireshark, Bustle, Snyh, or DFeet do not provide the exact functionality we are looking for. Our goal is to develop functionalities similar to other widely used profilers such as GPUView or VTune Profiler.<br>
> <br>
<br>
For the analysis and visualization side, I’m never a big fan of writing something from scratch. Have you looked into enhancing some of the existing tools out there vs. writing your own?<br>
<br>
Although having in the web UI could be useful, I don’t really see it as a requirement. Could your tool be simpler to write or be made more generic for others to use if it was not tied to the web UI?<br>
<br>
> One alternative solution considered was to stream DBus requests over websocket, but the existing websocket endpoints available on BMC webserver do not provide the exact information we need.<br>
> <br>
> Requirements and Scalability:<br>
>       • Should provide the adequate functionalities to filter, visualize the events timeline, and group the DBus traffic based on multiple criteria such as type, source, destination, path, interface, demon signatures, and more.<br>
>       • Should support capture of DBus messages using as little resources as possible.<br>
>       • Should be able to show many (~thousands of) entries on screen simultaneously<br>
>       • Integration with webui-vue<br>
> <br>
> Thank you<br>
<br>
</blockquote></div>