Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325662 - [LTTng] Reduce the pushData()/getData() overhead
Summary: [LTTng] Reduce the pushData()/getData() overhead
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: Francois Chouinard CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 325661
  Show dependency tree
 
Reported: 2010-09-17 18:23 EDT by Francois Chouinard CLA
Modified: 2022-01-13 14:53 EST (History)
0 users

See Also:


Attachments
New handleData() API (95.55 KB, patch)
2010-09-17 18:25 EDT, Francois Chouinard CLA
fchouinard: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Chouinard CLA 2010-09-17 18:23:26 EDT
Currently, the data flow between the producer/consumer components goes through a data queue. This is great for multi-thread applications running on multi-core systems.

However, in the case of LTTng, we have to live with the constraint that only one event can be live at any time. This forces us to use data blocks of size '1' ... and the queuing scheme introduces a lot of overhead.

By removing pushData() and getData() and passing the events directly in handleData(), we could streamline things a little. Also it will allow to *not* systematically parse the events and do it only as needed.

This is an improvement for single and dual-core systems but will show its limitation on more powerful systems.
Comment 1 Francois Chouinard CLA 2010-09-17 18:25:13 EDT
Created attachment 179155 [details]
New handleData() API
Comment 2 Francois Chouinard CLA 2010-09-17 18:34:47 EDT
Comment on attachment 179155 [details]
New handleData() API

Patch committed. We get a ~15% execution time improvement in TMF and the LTTng back-end.
Comment 3 Francois Chouinard CLA 2010-10-21 15:04:32 EDT
Patch was committed in Helios and Indigo
Comment 4 Francois Chouinard CLA 2011-07-22 14:49:41 EDT
Delivered with 0.7