From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aprameya Rao via lttng-dev Subject: Using LTTng for an application with a single thread per core Date: Fri, 29 May 2020 04:20:47 +0000 Message-ID: Reply-To: Aprameya Rao Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0538259138782452663==" Return-path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770092.outbound.protection.outlook.com [40.107.77.92]) by lists.lttng.org (Postfix) with ESMTPS id 49YBFY5jwRz1JrT for ; Fri, 29 May 2020 00:20:49 -0400 (EDT) Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" To: "lttng-dev@lists.lttng.org" List-Id: lttng-dev@lists.lttng.org --===============0538259138782452663== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MW2PR2101MB1098270C4CF4CBFA31AC2E0C818F0MW2PR2101MB1098_" --_000_MW2PR2101MB1098270C4CF4CBFA31AC2E0C818F0MW2PR2101MB1098_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I am working on an application where I have a single thread per core (the a= pplication is based on top of SPDK - https://spdk.io/). Ideally, I would li= ke to have a set of buffers allocated per core and since there is a single = thread it can write the trace event to this buffer directly with no synchro= nization. Once the buffer is filled up, the buffer can be given to LTTng to= take care of the persistence. I'm looking at the LTTng code to figure out what kind of changes would need= to be made to support something like this. I imagine it would need to chan= ge the ring buffer because the configuration for that while tunable does no= t have any mode which does what I want. Am I looking in the right place? If= you can provide me to pointers on how I can prototype this with lttng that= would be most helpful. Once I have it prototyped, I would be happy to work= with you on making these changes back into LTTng if you feel that this wou= ld be of value to other users as well. Regards Aprameya --_000_MW2PR2101MB1098270C4CF4CBFA31AC2E0C818F0MW2PR2101MB1098_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

I am working on an application where I have a single= thread per core (the application is based on top of SPDK - https://spdk.io/). Ideally, I would like t= o have a set of buffers allocated per core and since there is a single thre= ad it can write the trace event to this buffer directly with no synchroniza= tion. Once the buffer is filled up, the buffer can be given to LTTng to take care of the persistence.

 

I’m looking at the LTTng code to figure out wh= at kind of changes would need to be made to support something like this. I = imagine it would need to change the ring buffer because the configuration f= or that while tunable does not have any mode which does what I want. Am I looking in the right place? If you can p= rovide me to pointers on how I can prototype this with lttng that would be = most helpful. Once I have it prototyped, I would be happy to work with you = on making these changes back into LTTng if you feel that this would be of value to other users as well.=

 

Regards

Aprameya

 

--_000_MW2PR2101MB1098270C4CF4CBFA31AC2E0C818F0MW2PR2101MB1098_-- --===============0538259138782452663== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev --===============0538259138782452663==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aprameya Rao via lttng-dev Subject: Re: Using LTTng for an application with a single thread per core Date: Mon, 8 Jun 2020 18:14:03 +0000 Message-ID: References: Reply-To: Aprameya Rao Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2946796340945471858==" Return-path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-eopbgr760132.outbound.protection.outlook.com [40.107.76.132]) by lists.lttng.org (Postfix) with ESMTPS id 49ghcV6R59z1NZb for ; Mon, 8 Jun 2020 14:29:46 -0400 (EDT) In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" To: "lttng-dev@lists.lttng.org" List-Id: lttng-dev@lists.lttng.org --===============2946796340945471858== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MW2PR2101MB10984DF40F60AD90F47D7EF481850MW2PR2101MB1098_" --_000_MW2PR2101MB10984DF40F60AD90F47D7EF481850MW2PR2101MB1098_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Any suggestions on this? Thanks Aprameya From: lttng-dev On Behalf Of Aprameya R= ao via lttng-dev Sent: Thursday, May 28, 2020 9:21 PM To: lttng-dev@lists.lttng.org Subject: [EXTERNAL] [lttng-dev] Using LTTng for an application with a singl= e thread per core Hi I am working on an application where I have a single thread per core (the a= pplication is based on top of SPDK - https://spdk.io/). Ideally, I would like to= have a set of buffers allocated per core and since there is a single threa= d it can write the trace event to this buffer directly with no synchronizat= ion. Once the buffer is filled up, the buffer can be given to LTTng to take= care of the persistence. I'm looking at the LTTng code to figure out what kind of changes would need= to be made to support something like this. I imagine it would need to chan= ge the ring buffer because the configuration for that while tunable does no= t have any mode which does what I want. Am I looking in the right place? If= you can provide me to pointers on how I can prototype this with lttng that= would be most helpful. Once I have it prototyped, I would be happy to work= with you on making these changes back into LTTng if you feel that this wou= ld be of value to other users as well. Regards Aprameya --_000_MW2PR2101MB10984DF40F60AD90F47D7EF481850MW2PR2101MB1098_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

Any suggestions on this?

 

Thanks

Aprameya

 

From: lttng-dev <lttng-dev-bounces@lists.l= ttng.org> On Behalf Of Aprameya Rao via lttng-dev
Sent: Thursday, May 28, 2020 9:21 PM
To: lttng-dev@lists.lttng.org
Subject: [EXTERNAL] [lttng-dev] Using LTTng for an application with = a single thread per core

 

Hi

 

I am working on an application where I have a single= thread per core (the application is based on top of SPDK - https://spdk.io/). Ideally, I would like to have a set of buffers alloc= ated per core and since there is a single thread it can write the trace eve= nt to this buffer directly with no synchronization. Once the buffer is fill= ed up, the buffer can be given to LTTng to take care of the persistence.

 

I’m looking at the LTTng code to figure out wh= at kind of changes would need to be made to support something like this. I = imagine it would need to change the ring buffer because the configuration f= or that while tunable does not have any mode which does what I want. Am I looking in the right place? If you can p= rovide me to pointers on how I can prototype this with lttng that would be = most helpful. Once I have it prototyped, I would be happy to work with you = on making these changes back into LTTng if you feel that this would be of value to other users as well.=

 

Regards

Aprameya

 

--_000_MW2PR2101MB10984DF40F60AD90F47D7EF481850MW2PR2101MB1098_-- --===============2946796340945471858== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev --===============2946796340945471858==-- 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=-1.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 3DBD0C433DF for ; Fri, 29 May 2020 04:20:54 +0000 (UTC) Received: from lists.lttng.org (lists.lttng.org [167.114.26.123]) (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 AD3C82074D for ; Fri, 29 May 2020 04:20:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.lttng.org header.i=@lists.lttng.org header.b="JmSFsLhx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AD3C82074D Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=lists.lttng.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lttng-dev-bounces@lists.lttng.org Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 49YBFb6X5Qz1JZ8; Fri, 29 May 2020 00:20:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1590726052; bh=v1oYsbPkIftXWFuPSGmmKfcWBmwCOm7Wn6gSVYFpNGQ=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=JmSFsLhx+m4HGz2soUCf843kYYrnHgi2tigAu2XltyMQA0AvsJKH8JEtBxAjGdoxG gt9w7bmemxChZjmpu0wrFovvmry5edVU6UnIElSmwXYGM6ujxrutgIssUJwYfs+WDc 3cFwBJfGcCNyktJbEylYu08ieAZukaQhOHppuAyySL12EkjQx2rh2b+XlB+RA/Lnyq xtfbL2Zp6zMQfxwWt199wNOUe4HXuvs/fPB5DT9Uycye70O7a7dwUKfkVgTeYuu9SU VuSUIFyiLFa/RofAFFHDfX9SgPJq9hq4/uMS0UjCG+NToJ7S3pcOq99uk7YMsMf4zI IsNbQSe+uDH+A== Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-eopbgr770092.outbound.protection.outlook.com [40.107.77.92]) by lists.lttng.org (Postfix) with ESMTPS id 49YBFY5jwRz1JrT for ; Fri, 29 May 2020 00:20:49 -0400 (EDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HJvsrTmiTsEfemBD7Y1XT1qaY+ZM7uXBN1GBsOMYii5p1YzNu9lGpJQ0bAttggSQvNQdxqm/kuksNqkrHivFqftp9NsIQR6nvAqhyYgf0Ga0pEa+CJjIKGJKcpMn4L1aPbWigGlYNgRLNSfw53y9sS05CH9O9pSMz4n0TzDqiP36YlpO0LxKkxTsgIm6woRqVZJIfTbSxH1Ly3zWdpWXavGwHjWfu/aeBIQJWd2C9FhHFcZNAmdpbzocUF9w2cM1fWXPCwRMCovfpfm1M29xhsMl8mX0/hfrrJfXjF+XdtdsV1+VrOjCBAqJ/bx5Rv35eGn0SNEKypS8zFC6LlCVJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dSLLp/jxe50+jzJ26gZR13qzLBOb2JpGTIY61yRsW7E=; b=UHoXvGlmULvDLiGLMpe09ZehFU2FZNyIcMR6HORp9th+cOVe5lgfssPJWeSq11Xt4l8ezGMP4Q4QprgPEOQoVoiJg2mPqBeuGMCho3432Aylq2clvNxp4tnBhj94F10w5Gek0V7hIHc6zakRipEWKBRJN91G/I+xBGPyQAbWSaMqpeLbrF1aaEpzgC4FkFfVrED9s6tec0+7qPvHqpsEpe9NhX3ys2TZSld0YqsLzpOW27AiyL9dBFDcX7GY9e6h26X3cVXpQk7edJhpovD/fJR9zY94TKtEPr7lOqfgT68jiB7kgvKNulhzPd9eBYbCKEBDIG5q6Gwrg94bkDNGgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none Received: from MW2PR2101MB1098.namprd21.prod.outlook.com (2603:10b6:302:a::27) by MWHPR21MB0864.namprd21.prod.outlook.com (2603:10b6:300:77::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.3; Fri, 29 May 2020 04:20:47 +0000 Received: from MW2PR2101MB1098.namprd21.prod.outlook.com ([fe80::4117:6030:b7c9:3ccb]) by MW2PR2101MB1098.namprd21.prod.outlook.com ([fe80::4117:6030:b7c9:3ccb%4]) with mapi id 15.20.3045.018; Fri, 29 May 2020 04:20:47 +0000 To: "lttng-dev@lists.lttng.org" Thread-Topic: Using LTTng for an application with a single thread per core Thread-Index: AdY1M3Uj1EXccs72RTSAHHqxkjE0yA== Date: Fri, 29 May 2020 04:20:47 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [50.35.65.0] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d5188121-6cd7-4f6c-f3be-08d80387a9f1 x-ms-traffictypediagnostic: MWHPR21MB0864: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 04180B6720 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: i4ifpGiuMLBAo1ssymCE1ij7UmgMriET/yAKcoIMOTFA9hLKKQGl5IdGqeMzIaScab2oI6DiSDuz77/hTGfkGn7sLR0tTBRTKiROsIIJbTLZP6D8vUt1pLSbD/rTib/Zkx1LcKhjRmYMIK9OyV4YzA37HvEsLkuzJB61WCQDxBMNDWy5LFLVzli1XUsU6QV1PxtV3BywLEImeJuyZUrdNxBCENWqMww3ifPijL7wVrhWWZd8lhixX5hRh+K0Ni1HOjR1HH/h6OqsF2wDG/OLQNrKrTrzL8MEM3Cs5SY2bOU5p0tEbkjI/3A9e3EnjsvclSHOr1oFFna0z2RmUrf8FqTsF6dvX5IrG1meXz+grFxxJgEF2OuB4D1/5FwUHaMgswvK0njHjvkWp3jGsaQzww== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR2101MB1098.namprd21.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(136003)(39860400002)(366004)(396003)(346002)(55016002)(6506007)(6916009)(9326002)(186003)(10290500003)(66446008)(64756008)(52536014)(316002)(8936002)(8676002)(26005)(76116006)(66556008)(71200400001)(166002)(82960400001)(5660300002)(7696005)(86362001)(8990500004)(478600001)(82950400001)(4744005)(66476007)(966005)(33656002)(66946007)(9686003)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: vWXxIMLAZ2c63eQ5J345q9955KcJl2d4ezC0fag1FHn1Ex7yWRpD7P3rs6H94AAq2cVkWHmF+HJJsZ1yqnJC/ZQA5xSdxznjU5nij7VK9ASB8Oxn7VVKRc5SkXzjP7kYLPQd+6dv/x6rjsK9zn9JVwcqcHE+2zLtOsORw25bq3m0caDe9N0RdDJMBfFDXrln8+wsX2K0r47r6UVmzBJf/HFsgm7ST/nQJSMx8bNIRPk3pOW3R0WriiTHNfbCq+A/9INU1eWjwn9WFr3zUbVMnlvc6W1MoqMmAjF5oKMMkmzIomkNeHL+VJsQa5kMpWybIy9QfKhnK9X+QW0Rg9Uu39WvzXU/LcPOIN0L6aEtGm5l80HeBhr04dmobjX7EL+cnDVO8rl2fKCKcvETE9wAtS6ujRxR56I1c/HLLj69PJ/lBbBjOs6B41QwmfpMdQ6hLdjrDrQ/5MS7ftjaXuNGrW8Gbf+ciTGimI3Bo01tW28= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5188121-6cd7-4f6c-f3be-08d80387a9f1 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2020 04:20:47.8600 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Lj0gDoDsQ60iql4tGIb6uH1XeSGMkj1Ke2/IoqlawIScOI/LJDsMf+VnkiEh6pJaOhk8Mldha0CrfPH9DMP0Wg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR21MB0864 Subject: [lttng-dev] Using LTTng for an application with a single thread per core X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.31 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Aprameya Rao via lttng-dev Reply-To: Aprameya Rao Content-Type: multipart/mixed; boundary="===============0538259138782452663==" Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" Message-ID: <20200529042047.eDvEV_VXT6fvhxp8l20t72QjuPdpaoMQI7531ggplXE@z> --===============0538259138782452663== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MW2PR2101MB1098270C4CF4CBFA31AC2E0C818F0MW2PR2101MB1098_" --_000_MW2PR2101MB1098270C4CF4CBFA31AC2E0C818F0MW2PR2101MB1098_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I am working on an application where I have a single thread per core (the a= pplication is based on top of SPDK - https://spdk.io/). Ideally, I would li= ke to have a set of buffers allocated per core and since there is a single = thread it can write the trace event to this buffer directly with no synchro= nization. Once the buffer is filled up, the buffer can be given to LTTng to= take care of the persistence. I'm looking at the LTTng code to figure out what kind of changes would need= to be made to support something like this. I imagine it would need to chan= ge the ring buffer because the configuration for that while tunable does no= t have any mode which does what I want. Am I looking in the right place? If= you can provide me to pointers on how I can prototype this with lttng that= would be most helpful. Once I have it prototyped, I would be happy to work= with you on making these changes back into LTTng if you feel that this wou= ld be of value to other users as well. Regards Aprameya --_000_MW2PR2101MB1098270C4CF4CBFA31AC2E0C818F0MW2PR2101MB1098_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

I am working on an application where I have a single= thread per core (the application is based on top of SPDK - https://spdk.io/). Ideally, I would like t= o have a set of buffers allocated per core and since there is a single thre= ad it can write the trace event to this buffer directly with no synchroniza= tion. Once the buffer is filled up, the buffer can be given to LTTng to take care of the persistence.

 

I’m looking at the LTTng code to figure out wh= at kind of changes would need to be made to support something like this. I = imagine it would need to change the ring buffer because the configuration f= or that while tunable does not have any mode which does what I want. Am I looking in the right place? If you can p= rovide me to pointers on how I can prototype this with lttng that would be = most helpful. Once I have it prototyped, I would be happy to work with you = on making these changes back into LTTng if you feel that this would be of value to other users as well.=

 

Regards

Aprameya

 

--_000_MW2PR2101MB1098270C4CF4CBFA31AC2E0C818F0MW2PR2101MB1098_-- --===============0538259138782452663== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev --===============0538259138782452663==-- 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=-1.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, HTTPS_HTTP_MISMATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 CB2B0C433E0 for ; Mon, 8 Jun 2020 18:29:50 +0000 (UTC) Received: from lists.lttng.org (lists.lttng.org [167.114.26.123]) (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 54F9F206D5 for ; Mon, 8 Jun 2020 18:29:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.lttng.org header.i=@lists.lttng.org header.b="kx13t3Je" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 54F9F206D5 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=lists.lttng.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lttng-dev-bounces@lists.lttng.org Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 49ghcX30D5z1NZk; Mon, 8 Jun 2020 14:29:48 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1591640989; bh=dUMIJWvlIyRJD9tGB7CJageSA08VjDj3abU5pw3DbfI=; h=To:Date:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=kx13t3Je6VbJWc+DouV5z6kwOEMGZOULaEM4fU8qABI10xvj6fsTHcOXGgQyj3W20 IXswD5URp58Z2/1QHPaGZqHHN0bAbyb/4mkbG5YHLhF+HlaCqFyWYsI7+zO/nRh3kx nyE0CF6WapbVOGfBbN8lIyMC88NER8/k/TorXWkUW8/C1MOseqtkvmacVxQ8uIItmg 0BNngTqYD7OyNht0jjBsnqJNFWHRMXwvbhXCYPupLZQ3XehTSCMfG+/us9nYX3vMUN 7xnHqARm3ks6QJdYCqfiMEDPtvOw1hPLdDpFqHDVofVk/rJAqkF3ig71BngzuAKEb/ vmTO8bWo3IJ8A== Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-eopbgr760132.outbound.protection.outlook.com [40.107.76.132]) by lists.lttng.org (Postfix) with ESMTPS id 49ghcV6R59z1NZb for ; Mon, 8 Jun 2020 14:29:46 -0400 (EDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mDtzKWBFpXL8aTkDmPi/3MqS479xVp/wo09IwlfmA/EdSDadJ2GY8vz/XeyQ4uuiR6Y5THASX16V1UxvQhi138+ye3fgcwZECNADgLFmc+L+PR18KE1NPemXm9uJg0c0v+exdYyVgkVb0hWTbhEJtB3kbsLO21+KPdz0vB9OvOtIw1SF5h/pKggKasqFnRiHryts3MTfwTpWz7b/WrYpe1T+dns+i9pBspVXUXdqRADbD/lwtBMlug0+1Cdk30pF5UotTRqhEG6l7myMDPSStdiI7SsvPf2mLzB7TI04sbzWTIQUq+EIwZEHAC76GnYGUrUAUvcGQtFDIycw5A5uRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ALjLNJDzd3ykl97o0en5R4RtIdg6tmWs7wf1Nm6Tl3Q=; b=kuGpDyp8DP33guxma1JcWCQoI/ldL6k0l7RSnC15ghLyREcxAMtPk4yHL3Ls5djbMJXmjFRirmKyG8Qctg/iu4Bp7/Qz7v8VkZzXV14pvdzFudaql0b8AkGr2Nodg/kMkjr7vKepJooQ1aJVZdQavu5OxZ+P9kUcevpG5+3s44IRCe4cRiDFXaQyu9NvI69czAFfguSr+gdi5ACA0nF/k4D7Qj9FNK5k4s7Wiusx+d0vEpVAVeKI6HPOr0sq5vXwNAYKGRRJneAPbJcer9rFVGVvqGizdVfL9maURjQP5KfPoz1HF0qURNhOFDIcK3iABGCfeK5xzG7354bBxli1Hg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none Received: from MW2PR2101MB1098.namprd21.prod.outlook.com (2603:10b6:302:a::27) by MWHPR21MB0159.namprd21.prod.outlook.com (2603:10b6:300:78::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.4; Mon, 8 Jun 2020 18:14:04 +0000 Received: from MW2PR2101MB1098.namprd21.prod.outlook.com ([fe80::c93:af28:c8b8:d095]) by MW2PR2101MB1098.namprd21.prod.outlook.com ([fe80::c93:af28:c8b8:d095%6]) with mapi id 15.20.3088.017; Mon, 8 Jun 2020 18:14:04 +0000 To: "lttng-dev@lists.lttng.org" Thread-Topic: Using LTTng for an application with a single thread per core Thread-Index: AdY1M3Uj1EXccs72RTSAHHqxkjE0yAIjRZYA Date: Mon, 8 Jun 2020 18:14:03 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [50.35.65.0] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: dbdad723-3465-4ece-435c-08d80bd7ba15 x-ms-traffictypediagnostic: MWHPR21MB0159: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 042857DBB5 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /wYfQptZNK8j7jYMNa4UmqqfvDs7wIPTPbq2iO186opo9FDorL4ubHxg2A/otOKMSA3TyyGZe+R7BQBqV64BC0Z3UHwXUSxjE6r88Tw9yHaSKWPmzzYRAJZfYkuszMPfggFKuwd0D79H3mHGwTMENEh+owBAYUIeLAv9jvPIWY+pfOPTw/MGlPfySuoy0rlVxofC1lwpyV08RfQELrCTaDOV9hdVl1xCTCqOeWYIuKv31cnIEUdOTzVlPgnzxuYU4k29C1Pw3uxWXF7E3+lHggCYWRHfBz566LWhvTx2+i4ygIY+vczqn2NcPMDyN1cRUhxMYBk7XYVzsOgTh2FXlQJc91fEWf4m4eiykbRlAtk+cNhyjtZVYDbfivIy5k7JsARecZ9DWcJnY6qdvWKsIA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR2101MB1098.namprd21.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(366004)(136003)(39860400002)(376002)(346002)(33656002)(9326002)(55016002)(9686003)(53546011)(26005)(316002)(2906002)(186003)(71200400001)(86362001)(7696005)(6506007)(6916009)(52536014)(5660300002)(82960400001)(8936002)(76116006)(66446008)(8990500004)(66946007)(66476007)(66556008)(82950400001)(8676002)(166002)(966005)(10290500003)(478600001)(64756008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: e9nsKc2wbyeKEbu34qgMOLj1JjK+x7EUkKuRn/1wma7kb7+IwamKTU0v/h0Ja4azzM2SSinnrrl1lnUoGVIeXQXDaviT14v6piSSd/51fU/J10v/57P3VdQLKvqmJ0en99fzEk/Y7wRdPwpAp7vHgc9Ee1G+NoSm9AbZxvxKCYoAEWeXHSnkv6BOzhZGSR/cOxQxNFP7us1ZR+BOIVXKloGmb6n4Re+C1HhnGkP7vNW53qUTWZWIf0CW+zQWnEyUcbPHM99zgX98Z5ts/etCa01Sv+afI58lumAV4UPWlNMFTjiUBcxnfgcJX9ECXek1uMn84j+Mj8JfaEGK4M/GgobVzFcRW6KUVQdsipmv2V2SpiOOKoMpIBhwz5Qa6K2uD5XTAP2LOmwagOVhub7rJdnTU0hyhDFIPfQ+ZqvKAOH5D2xAEbqp4K8aQn+BJtqsV+UW0qedJ30tme0xcxkBQNP2sqrTR+r4PHPkBBc6c/g= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: dbdad723-3465-4ece-435c-08d80bd7ba15 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jun 2020 18:14:03.9205 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JXqOsJXC5FkvyiPP2RCG1gn+v4nnxMOu0nYFlLqIhEwJPLIXDay40qFrv820mJoFYbikD9zUHq/als+9czY7aQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR21MB0159 Subject: Re: [lttng-dev] Using LTTng for an application with a single thread per core X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.31 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Aprameya Rao via lttng-dev Reply-To: Aprameya Rao Content-Type: multipart/mixed; boundary="===============2946796340945471858==" Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" Message-ID: <20200608181403.oBwum2kqpA02-ghzWXkArRxdG36KVJKhZCpLHGYGZqo@z> --===============2946796340945471858== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MW2PR2101MB10984DF40F60AD90F47D7EF481850MW2PR2101MB1098_" --_000_MW2PR2101MB10984DF40F60AD90F47D7EF481850MW2PR2101MB1098_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Any suggestions on this? Thanks Aprameya From: lttng-dev On Behalf Of Aprameya R= ao via lttng-dev Sent: Thursday, May 28, 2020 9:21 PM To: lttng-dev@lists.lttng.org Subject: [EXTERNAL] [lttng-dev] Using LTTng for an application with a singl= e thread per core Hi I am working on an application where I have a single thread per core (the a= pplication is based on top of SPDK - https://spdk.io/). Ideally, I would like to= have a set of buffers allocated per core and since there is a single threa= d it can write the trace event to this buffer directly with no synchronizat= ion. Once the buffer is filled up, the buffer can be given to LTTng to take= care of the persistence. I'm looking at the LTTng code to figure out what kind of changes would need= to be made to support something like this. I imagine it would need to chan= ge the ring buffer because the configuration for that while tunable does no= t have any mode which does what I want. Am I looking in the right place? If= you can provide me to pointers on how I can prototype this with lttng that= would be most helpful. Once I have it prototyped, I would be happy to work= with you on making these changes back into LTTng if you feel that this wou= ld be of value to other users as well. Regards Aprameya --_000_MW2PR2101MB10984DF40F60AD90F47D7EF481850MW2PR2101MB1098_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi

 

Any suggestions on this?

 

Thanks

Aprameya

 

From: lttng-dev <lttng-dev-bounces@lists.l= ttng.org> On Behalf Of Aprameya Rao via lttng-dev
Sent: Thursday, May 28, 2020 9:21 PM
To: lttng-dev@lists.lttng.org
Subject: [EXTERNAL] [lttng-dev] Using LTTng for an application with = a single thread per core

 

Hi

 

I am working on an application where I have a single= thread per core (the application is based on top of SPDK - https://spdk.io/). Ideally, I would like to have a set of buffers alloc= ated per core and since there is a single thread it can write the trace eve= nt to this buffer directly with no synchronization. Once the buffer is fill= ed up, the buffer can be given to LTTng to take care of the persistence.

 

I’m looking at the LTTng code to figure out wh= at kind of changes would need to be made to support something like this. I = imagine it would need to change the ring buffer because the configuration f= or that while tunable does not have any mode which does what I want. Am I looking in the right place? If you can p= rovide me to pointers on how I can prototype this with lttng that would be = most helpful. Once I have it prototyped, I would be happy to work with you = on making these changes back into LTTng if you feel that this would be of value to other users as well.=

 

Regards

Aprameya

 

--_000_MW2PR2101MB10984DF40F60AD90F47D7EF481850MW2PR2101MB1098_-- --===============2946796340945471858== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev --===============2946796340945471858==--