All of lore.kernel.org
 help / color / mirror / Atom feed
From: "De Lara Guarch, Pablo" <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: "Wodkowski,
	PawelX"
	<pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	"dev-VfR2kkLFssw@public.gmane.org"
	<dev-VfR2kkLFssw@public.gmane.org>
Subject: Re: [PATCH v6 2/3] examples: introduce new l2fwd-jobstats example
Date: Tue, 24 Feb 2015 19:10:53 +0000	[thread overview]
Message-ID: <E115CCD9D858EF4F90C690B0DCB4D897272639F7@IRSMSX108.ger.corp.intel.com> (raw)
In-Reply-To: <1424795605-2779-3-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>



> -----Original Message-----
> From: Wodkowski, PawelX
> Sent: Tuesday, February 24, 2015 4:33 PM
> To: dev-VfR2kkLFssw@public.gmane.org; De Lara Guarch, Pablo
> Subject: [PATCH v6 2/3] examples: introduce new l2fwd-jobstats example
> 
> This app demonstrate usage of new rte_jobstats library.
> It is basically the orginal l2fwd with following modifications to met
> library requirements:
> - main_loop() was split into two jobs: forward job and flush job. Logic
> for those jobs is almost the same as in original application.
> - stats is moved to rte_alarm callback to not introduce overhead of
> printing.
> - stats are expanded to show rte_jobstats statistics.
> - added new parameter '-l' to automatic thousands separator.
> 
> Comparing original l2fwd and l2fwd-jobstats apps will show approach what
> is needed to properly write own application with rte_jobstats
> measurements.
> 
> New available statistics:
> - Total and % of fwd and flush execution time
> - management time - overhead of rte_timer + overhead of rte_jobstats
> library
> - Idle time and % of time spent waiting for fwd or flush to be ready to
> execute.
> - per job execution time and period.
> 
> Signed-off-by: Pawel Wodkowski <pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> ---
>  examples/Makefile                |    1 +
>  examples/l2fwd-jobstats/Makefile |   51 ++
>  examples/l2fwd-jobstats/main.c   | 1040
> ++++++++++++++++++++++++++++++++++++++
>  mk/rte.app.mk                    |    4 +
>  4 files changed, 1096 insertions(+)
>  create mode 100644 examples/l2fwd-jobstats/Makefile
>  create mode 100644 examples/l2fwd-jobstats/main.c
> 
> diff --git a/examples/Makefile b/examples/Makefile
> index 81f1d2f..e847ded 100644
> --- a/examples/Makefile
> +++ b/examples/Makefile
> @@ -50,6 +50,7 @@ DIRS-$(CONFIG_RTE_MBUF_REFCNT) +=
> ip_fragmentation
>  DIRS-$(CONFIG_RTE_MBUF_REFCNT) += ipv4_multicast
>  DIRS-$(CONFIG_RTE_LIBRTE_KNI) += kni
>  DIRS-y += l2fwd
> +DIRS-y += l2fwd-jobstats
>  DIRS-$(CONFIG_RTE_LIBRTE_IVSHMEM) += l2fwd-ivshmem
>  DIRS-y += l3fwd
>  DIRS-$(CONFIG_RTE_LIBRTE_ACL) += l3fwd-acl
> diff --git a/examples/l2fwd-jobstats/Makefile b/examples/l2fwd-
> jobstats/Makefile
> new file mode 100644
> index 0000000..d57a0ae
> --- /dev/null
> +++ b/examples/l2fwd-jobstats/Makefile
> @@ -0,0 +1,51 @@
> +#   BSD LICENSE
> +#
> +#   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.

Fix these dates. Plus, there was a conflict due to a recent commit,
modifying examples/Makefile, so make sure you rebase ;)

Thanks,
Pablo

  parent reply	other threads:[~2015-02-24 19:10 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 11:50 [PATCH 0/2] new headroom stats library and example application Pawel Wodkowski
     [not found] ` <1422532206-10662-1-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-01-29 11:50   ` [PATCH 1/2] librte_headroom: New library for checking core/system/app load Pawel Wodkowski
2015-01-29 11:50   ` [PATCH 2/2] examples: introduce new l2fwd-headroom example Pawel Wodkowski
2015-01-29 13:25   ` [PATCH 0/2] new headroom stats library and example application Neil Horman
     [not found]     ` <20150129132522.GA1999-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-01-29 17:10       ` Wodkowski, PawelX
     [not found]         ` <F6F2A6264E145F47A18AB6DF8E87425D12B8F749-kPTMFJFq+rFP9JyJpTNKArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-01-29 19:13           ` Neil Horman
     [not found]             ` <20150129191326.GF1999-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-01-30 10:47               ` Wodkowski, PawelX
     [not found]                 ` <F6F2A6264E145F47A18AB6DF8E87425D12B8FD9E-kPTMFJFq+rFP9JyJpTNKArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-01-30 18:02                   ` Neil Horman
2015-02-17 15:37   ` [PATCH v2 " Pawel Wodkowski
     [not found]     ` <1424187473-25853-1-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-17 15:37       ` [PATCH v2 1/2] librte_headroom: New library for checking core/system/app load Pawel Wodkowski
2015-02-17 15:37       ` [PATCH v2 2/2] examples: introduce new l2fwd-headroom example Pawel Wodkowski
2015-02-17 16:19       ` [PATCH v3 0/2] new headroom stats library and example application Pawel Wodkowski
     [not found]         ` <1424189986-26219-1-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-17 16:19           ` [PATCH v3 1/2] pmd: enable DCB in SRIOV Pawel Wodkowski
2015-02-17 16:19           ` [PATCH v3 2/2] tespmd: fix DCB in SRIOV mode support Pawel Wodkowski
2015-02-17 16:33           ` [PATCH v3 0/2] new headroom stats library and example application Wodkowski, PawelX
2015-02-17 16:42           ` [PATCH v4 " Pawel Wodkowski
     [not found]             ` <1424191340-26451-1-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-17 16:42               ` [PATCH v4 1/2] librte_headroom: New library for checking core/system/app load Pawel Wodkowski
     [not found]                 ` <1424191340-26451-2-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-18 13:36                   ` De Lara Guarch, Pablo
2015-02-17 16:42               ` [PATCH v4 2/2] examples: introduce new l2fwd-headroom example Pawel Wodkowski
     [not found]                 ` <1424191340-26451-3-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-18 13:41                   ` De Lara Guarch, Pablo
2015-02-19 12:18               ` [PATCH v5 0/3] new headroom stats library and example application Pawel Wodkowski
     [not found]                 ` <1424348324-29932-1-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-19 12:18                   ` [PATCH v5 1/3] librte_headroom: New library for checking core/system/app load Pawel Wodkowski
     [not found]                     ` <1424348324-29932-2-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-24  1:55                       ` Thomas Monjalon
2015-02-19 12:18                   ` [PATCH v5 2/3] examples: introduce new l2fwd-headroom example Pawel Wodkowski
2015-02-19 12:18                   ` [PATCH v5 3/3] MAINTAINERS: claim responsibility for headroom library and example app Pawel Wodkowski
2015-02-19 14:33                   ` [PATCH v5 0/3] new headroom stats library and example application Neil Horman
     [not found]                     ` <20150219143334.GH24069-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-02-20 15:46                       ` Jastrzebski, MichalX K
     [not found]                         ` <60ABE07DBB3A454EB7FAD707B4BB1582138EB174-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-23 11:45                           ` Thomas Monjalon
2015-02-23 14:36                             ` Jastrzebski, MichalX K
     [not found]                               ` <60ABE07DBB3A454EB7FAD707B4BB1582138EB996-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-23 14:46                                 ` Thomas Monjalon
2015-02-23 15:55                                   ` Jastrzebski, MichalX K
     [not found]                                     ` <60ABE07DBB3A454EB7FAD707B4BB1582138EBA65-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-23 16:04                                       ` Thomas Monjalon
2015-02-24  8:44                                         ` Pawel Wodkowski
2015-02-24  9:49                                   ` Jastrzebski, MichalX K
     [not found]                                     ` <60ABE07DBB3A454EB7FAD707B4BB1582138EBD9C-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-24 10:00                                       ` Thomas Monjalon
2015-02-24 10:05                                         ` Wodkowski, PawelX
2015-02-24 10:53                                         ` Wodkowski, PawelX
2015-02-24 16:33                   ` [PATCH v6 0/3] new rte_jobstats " Pawel Wodkowski
     [not found]                     ` <1424795605-2779-1-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-24 16:33                       ` [PATCH v6 1/3] librte_jobstats: New library for checking core/system/app load Pawel Wodkowski
     [not found]                         ` <1424795605-2779-2-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-24 21:18                           ` Thomas Monjalon
2015-02-24 16:33                       ` [PATCH v6 2/3] examples: introduce new l2fwd-jobstats example Pawel Wodkowski
     [not found]                         ` <1424795605-2779-3-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-24 19:10                           ` De Lara Guarch, Pablo [this message]
     [not found]                             ` <E115CCD9D858EF4F90C690B0DCB4D897272639F7-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-24 19:16                               ` De Lara Guarch, Pablo
     [not found]                                 ` <E115CCD9D858EF4F90C690B0DCB4D89727263A28-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-24 20:08                                   ` Thomas Monjalon
2015-02-24 21:19                           ` Thomas Monjalon
2015-02-24 16:33                       ` [PATCH v6 3/3] MAINTAINERS: claim responsibility for rte_jobstats library and example app Pawel Wodkowski
2015-02-24 20:34                       ` [PATCH v6 0/3] new rte_jobstats library and example application De Lara Guarch, Pablo
     [not found]                         ` <E115CCD9D858EF4F90C690B0DCB4D89727263A8E-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-24 21:25                           ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E115CCD9D858EF4F90C690B0DCB4D897272639F7@IRSMSX108.ger.corp.intel.com \
    --to=pablo.de.lara.guarch-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.