From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id k2YZLDBJkWA/YgAAWB0awg (envelope-from ) for ; Tue, 04 May 2021 09:16:32 -0400 Received: by simark.ca (Postfix, from userid 112) id A6EC21F11C; Tue, 4 May 2021 09:16:32 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.lttng.org (lists.lttng.org [167.114.26.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 082F21E54D for ; Tue, 4 May 2021 09:16:32 -0400 (EDT) Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4FZL2l26lcz1h0F; Tue, 4 May 2021 09:16:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1620134191; bh=mguj/X4g77VcALyTHCgcPIll74rlI/ZbgoirZjU87ls=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=rWWNzWRj/pRF48To/j7s+VZx5l6twxL2MTTsrtqfsQNRUpE0KrKYyGNv4bXhPXsin jlXfGoxxqsVqwuwbjkjMjWz9umN2CiyYxMG+Ke8wKGIV8B24Bxp1lR8+XVx79iGsHM Ch4a9KobElNQmGpoa88RSZ/ZFN2HpVssGkNUbiFNIux2XiPVuaO4f+ceaCenR1Z7AB xtuFam+4PTpoQSPgORjBIp+3MJOtgASHfdsIFNgxXwPFQkQFz/ustrltj3x0OLa4LG bWsUY/zxLJdZjBOLlDrjwagzThB3LPQqgQQ7o2rmX+tJjWSZp0B96+sp+6CtwidztE 2vzrNQjxm3DLw== Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by lists.lttng.org (Postfix) with ESMTPS id 4FZL2k4PWDz1h08 for ; Tue, 4 May 2021 09:16:30 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 149BC2E27C2 for ; Tue, 4 May 2021 09:16:24 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id sjM_QnWhLrMb; Tue, 4 May 2021 09:16:23 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id ADA142E298A; Tue, 4 May 2021 09:16:23 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com ADA142E298A X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id EGd8wClf5-dH; Tue, 4 May 2021 09:16:23 -0400 (EDT) Received: from joraj-alpa (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) by mail.efficios.com (Postfix) with ESMTPSA id 4DDFA2E27C0; Tue, 4 May 2021 09:16:23 -0400 (EDT) Date: Tue, 4 May 2021 09:16:22 -0400 To: Eqbal Cc: lttng-dev@lists.lttng.org Message-ID: <20210504131622.GA346954@joraj-alpa> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [lttng-dev] lttng live event loss with babeltrace2 X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jonathan Rajotte-Julien via lttng-dev Reply-To: Jonathan Rajotte-Julien Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" Hi, On Mon, May 03, 2021 at 05:05:10PM -0700, Eqbal via lttng-dev wrote: > Hi, > > I have a lttng live session trace consumer application using libbabeltrace2 > where I create a graph to consume lttng live session traces and output to > another sink. I am running the graph in a loop at some polling interval as > long as I get BT_GRAPH_RUN_STATUS_AGAIN status. What I am noticing is that > if my polling interval is large enough I tend to lose either all or some of > the events. I experimented with various polling intervals and it seems if > the polling interval is less than *DELAYUS *from "lttng-create > --live=DELAYUS" option then I am able to get all the events, otherwise I > tend to lose events. > > Here are the steps I follow: > 1. start session daemon and relay daemon > 2. create a live session (with default delay of 1s), enable events and start > 3. Start my application (hello world example from lttng docs) > 4. Start the consumer application built using libbabeltrace that connects > to the live session > > I noticed that the events are actually persisted in the ~/lttng-traces by > the relay daemon, but it does not reach babeltrace consumer application. I > have noticed the same behavior with babeltrace2 cli. Could you also test against babeltrace 1.5? It might give us a bit of a head start to debug this if it turns out to be unexpected behaviour. -- Jonathan Rajotte-Julien EfficiOS _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev