Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316467 - [LTTng] Histogram View short requests not coalesced with Control Flow View and Resources View
Summary: [LTTng] Histogram View short requests not coalesced with Control Flow View an...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bernd Hufmann CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 290046 301629 301630 321364 325661
  Show dependency tree
 
Reported: 2010-06-10 10:11 EDT by Alvaro Sanchez-Leon CLA
Modified: 2022-01-13 14:53 EST (History)
0 users

See Also:


Attachments
Improved Request Coalescing and other performance / usability improvements (79.61 KB, patch)
2010-10-26 15:52 EDT, Bernd Hufmann CLA
no flags Details | Diff
Improved Request Coalescing and other performance / usability improvements (helios) (82.35 KB, patch)
2010-10-27 14:33 EDT, Bernd Hufmann CLA
fchouinard: iplog+
Details | Diff
Improved Request Coalescing and other performance / usability improvements (indigo) (17.98 KB, patch)
2010-10-27 14:33 EDT, Bernd Hufmann CLA
fchouinard: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alvaro Sanchez-Leon CLA 2010-06-10 10:11:23 EDT
The Histogram view offers two widgets to display the histogram, one to represent the event density for the whole experiment and the short one for the reduced visible time range which is in synch with the Control Flow View and Resources View, 

The time range requests are expected to be synchronised to optimise the number of requests and minimise the parsing needed, this is not the case today since they depend on different providers which handle separate request queues.
Comment 1 Bernd Hufmann CLA 2010-10-26 15:52:22 EDT
Created attachment 181773 [details]
Improved Request Coalescing and other performance / usability improvements
Comment 2 Bernd Hufmann CLA 2010-10-26 15:56:39 EDT
In order to coalesce all requests of the short Histogram View, the Resource View and the Control Flow View, the interface of the TmfDataProvider had to be extended to allow other Data Providers, such as LttngSyntheticEventProvider, to notify about upcoming data requests. Once notified, the TmfDataProvider coalesces its requests with the requests from the LttngSyntheticEventProvider. Only when notified, that all pending requests are submitted the TmfDataProvider dispatches and executes the requests.

This solution, allows to coalesce all foreground requests from the Control Flow View, Resource View and the short Histogram window. Additionally, it also a allows to coalesce long (background) requests from the Statistics View, long Histogram Window, indexing of the Experiment and indexing of the Kernel State System. The coalescing of background requests, minimizes the number of parsing of the experiment to only once at startup (if all views are open).

The submitted patch improves the coalescing of requests and solves the issue reported in this bug.

Additionally, this patch addresses some other issues that needed to be fixed for this bug fix and to improve overall usability and performance. Here is the list of areas addressed in the patch (including coalescing):
- TMF/LTTng:coalescing of requests from multiple data providers
- TMF/LTTng: improved cancelling of requests
- LTTng: Remove dependency of requests of Statistic View, Control Flow View and Resource view. Now each view has its own LttngSyntheticEventProvider. This makes the whole GUI more responsive
- TMF: Improved current event selection in TmfEventTable
- Lttng: Optimize frequency of redraw of views to improve overall performance and usability.
Comment 3 Bernd Hufmann CLA 2010-10-27 14:33:03 EDT
Created attachment 181862 [details]
Improved Request Coalescing and other performance / usability improvements (helios)

Updated patch which fixes an thread deadlock caused by canceling of requests
Comment 4 Bernd Hufmann CLA 2010-10-27 14:33:53 EDT
Created attachment 181863 [details]
Improved Request Coalescing and other performance / usability improvements (indigo)

Patch for Indigo branch
Comment 5 Francois Chouinard CLA 2010-10-27 16:06:44 EDT
Comment on attachment 181863 [details]
Improved Request Coalescing and other performance / usability improvements (indigo)

Patch committed. Thanks Bernd.
Comment 6 Francois Chouinard CLA 2010-11-08 09:36:54 EST
Bug fixed and patch committed to Indigo.
Comment 7 Andrew Overholt CLA 2011-06-06 15:32:09 EDT
Comment on attachment 181862 [details]
Improved Request Coalescing and other performance / usability improvements (helios)

Should this patch be marked iplog+ as well?  Or perhaps it should be marked obsolete?

Thanks for your help in matters related to IP :)
Comment 8 Francois Chouinard CLA 2011-07-22 14:42:44 EDT
Andrew: the patch was also applied to the Helios branch but I forgot to mark it. Sorry.