> -----Original Message----- > From: Thomas Monjalon <tho...@monjalon.net> > Sent: Friday, April 5, 2019 7:25 AM > To: Phil Yang (Arm Technology China) <phil.y...@arm.com> > Cc: dev@dpdk.org; david.h...@intel.com; reshma.pat...@intel.com; Gavin > Hu (Arm Technology China) <gavin...@arm.com>; Honnappa Nagarahalli > <honnappa.nagaraha...@arm.com>; nd <n...@arm.com> > Subject: Re: [dpdk-dev] [PATCH v3 1/3] packet_ordering: add statistics for > each worker thread > > Hi, > > 03/04/2019 08:59, Phil Yang: > > The current implementation using the '__sync' built-ins to synchronize > > statistics within worker threads. The '__sync' built-ins functions are > > full barriers which will affect the performance, so add a per worker > > packets statistics to remove the synchronisation between worker threads. > > > > Since the maximum core number can get to 256, so disable the per core > > stats print in default and add the --insight-worker option to enable it. > [...] > > Suggested-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com> > > Signed-off-by: Phil Yang <phil.y...@arm.com> > > Reviewed-by: Gavin Hu <gavin...@arm.com> > > There is an error with clang: > > examples/packet_ordering/main.c:82:57: error: > suggest braces around initialization of subobject static struct > wkr_stats_per wkr_stats[RTE_MAX_LCORE] = {0};
Thanks, Thomas. It is my bad. I should test with the devtools/test-meson-builds.sh script instead of build with default meson compiler before sending it out. I have addressed this defect in the new version. Please review it. Thanks, Phil > >