From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5BB05A034F; Wed, 31 Mar 2021 23:18:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D59F2140EB8; Wed, 31 Mar 2021 23:18:15 +0200 (CEST) Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) by mails.dpdk.org (Postfix) with ESMTP id 7123B140EB7 for ; Wed, 31 Mar 2021 23:18:14 +0200 (CEST) Received: by mail-io1-f46.google.com with SMTP id x16so61722iob.1 for ; Wed, 31 Mar 2021 14:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AZozTUO7VkR3Is6wXN/7SX7VI/Cd85HX0EDzDj5X9Q8=; b=E7MrONaALz0svlDV4WuECc7a5kEsWIjpk74pO2jAI4Adwd0xelgxCopUUmn23X3yfC xv4rCgIdxI+jeMnBTR+LtJruUjO9+UHZP9pLsftgzTqw+F46aKghhNAW3XOwDNmbaKya GsRufGQeasc1LUINrjLX3D6QjnulD9nypBD/L+D9U2wTSF+cNYafFYz52OSd4KskWlaq Q2+topPtVyPTcMDUpz8AT6zrqDwWqO3N284i8livvniqYy2tbupS7CSUx8ou33BglpUa stnfnX/QYUOfqLRZyruUyYlm3lZ2OLuCdgQN4hn/p3RGJlVY1/Zt20m/37k+cw6R+Aq6 M40Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AZozTUO7VkR3Is6wXN/7SX7VI/Cd85HX0EDzDj5X9Q8=; b=pqvzaB/9LhyqWtqKXGRKeNpiLbZv3iQ19g3HXEzeXuBuh0aGfw4vDaUZnNtFfpwgZK XyLZnySRnZRzkQMhbFU48xiCG8UzPW3puj15Nx5JjO9SaS3wimoPyUGfon5faHP1FAr4 MZBJ1OjvhrpeQRrW4SsjHIE55V2MzFUFQG4L2gvNA1niMRv7VIFqy6t/KBqjy16yd2Hp ztzF87fr+cuJFLJazTF6lA1dGzftb9RiZXgpyDg1xi8y2fqkd+2///itb3c4wa4FNbAL oDwq6CgtFO/F1WavSwzKmx6aYODgj3YGXeH3r5E+IXdrZL55cqpkOikPkoadFF3b6Ob9 I+OA== X-Gm-Message-State: AOAM532uo9b554HNm+UCNqusqyx10WE13QOTk/oSMoerI/y3NThkSzi+ GSJUaD4RGdOh8k0lGXtPKmQSzE2bDW6y8jeKqg8= X-Google-Smtp-Source: ABdhPJxx4OTOGy2OnQEC2xlw31OCKeZHsDLAphCjeFBuPFUYuKNKjA03+dhM9KlbZpoPk4A3Ye3QEnFeEMv+h2XFflc= X-Received: by 2002:a6b:3bc7:: with SMTP id i190mr3992336ioa.163.1617225493757; Wed, 31 Mar 2021 14:18:13 -0700 (PDT) MIME-Version: 1.0 References: <2273212.ItJIoklBD0@thomas> In-Reply-To: From: Jerin Jacob Date: Thu, 1 Apr 2021 02:47:57 +0530 Message-ID: To: Kathleen Capella Cc: Honnappa Nagarahalli , "thomas@monjalon.net" , "dev@dpdk.org" , Dharmik Thakkar , Ruifeng Wang , "david.marchand@redhat.com" , Bruce Richardson , "jerinj@marvell.com" , "hemant.agrawal@nxp.com" , Ferruh Yigit , "Ananyev, Konstantin" , Stephen Hemminger , nd Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] L3fwd mode in testpmd X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Apr 1, 2021 at 2:05 AM Kathleen Capella wrote: > > > > > -----Original Message----- > > From: Honnappa Nagarahalli > > Sent: Thursday, March 11, 2021 11:00 AM > > To: thomas@monjalon.net > > Cc: Jerin Jacob ; dev@dpdk.org; Kathleen Capella > > ; Dharmik Thakkar > > ; Ruifeng Wang ; > > david.marchand@redhat.com; Bruce Richardson > > ; jerinj@marvell.com; > > hemant.agrawal@nxp.com; Ferruh Yigit ; Ananyev, > > Konstantin ; Stephen Hemminger > > ; nd ; nd > > Subject: RE: [dpdk-dev] L3fwd mode in testpmd > > > > > > > > > > > > > > > > > > > > On Thu, Mar 11, 2021 at 12:01 AM Honnappa Nagarahalli > > > > > wrote: > > > > > > > > > > > > Hello, > > > > > > Performance of L3fwd example application is one of the > > > > > > key > > > > > benchmarks in DPDK. However, the application does not have many > > > > > debugging statistics to understand the performance issues. We have > > > > > added L3fwd as another mode/stream to testpmd which provides > > > enough > > > > > statistics at various levels. This has allowed us to debug the > > > > > performance issues effectively. > > > > > > > > > > > > There is more work to be done to get it to upstreamable state. I > > > > > > am > > > > > wondering if such a patch is helpful for others and if the > > > > > community would be interested in taking a look. Please let me know > > what you think. > > > > > > > > > > We are using app/proc-info/ to attach and analyze the performance. > > > > > That helps to analyze the unmodified application. I think, if > > > > > something is missing in proc-info app, in my opinion it is better > > > > > to enhance proc-info so that it can help other third-party applications. > > > > > > > > > > Just my 2c. > > > > Thanks Jerin. We will explore that. > > > > > > I agree it is dangerous to rely too much on testpmd for everything. > > > Please tell us what in testpmd could be useful out of it. > > > > > Things that are very helpful in testpmd are: 1) HW statistics from the NIC 2) > > Forwarding stats 3) Burst stats (indication of headroom availability) 4) Easy to > > set parameters like RX and TX queue depths (among others) without having > > to recompile. > > [Kathleen Capella] > Thank you for the suggestion of app/proc-info. I've tried it out with > l3fwd and see that it does have the HW stats from the NIC and the forwarding stats. > However, it does not have the burst stats testpmd offers, nor the One option to see such level of debugging would be to have - Create a memzone in the primary process - Application under test can update the stats in memzone based on the code flow - proc-info can read the counters updated by application under test using the memzone object got through rte_memzone_lookup() Another approach will be using rte_trace()[1] for debugging/tracing by adding tracepoints in l3fwd for such events. It has a timestamp and the trace format is opensource trace format(CTF(Common trace format)), so that we can use post posting tools to analyze. [1] https://doc.dpdk.org/guides/prog_guide/trace_lib.html > ability to easily change parameters without having to recompile, > which helps reduce debugging time significantly.