From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id E02895682 for ; Tue, 17 Feb 2015 17:41:35 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 17 Feb 2015 08:34:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,595,1418112000"; d="scan'208";a="653323719" Received: from unknown (HELO Sent) ([10.217.248.233]) by orsmga001.jf.intel.com with SMTP; 17 Feb 2015 08:41:32 -0800 Received: by Sent (sSMTP sendmail emulation); Tue, 17 Feb 2015 17:42:22 +0100 From: Pawel Wodkowski To: dev@dpdk.org Date: Tue, 17 Feb 2015 17:42:18 +0100 Message-Id: <1424191340-26451-1-git-send-email-pawelx.wodkowski@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424189986-26219-1-git-send-email-pawelx.wodkowski@intel.com> References: <1424189986-26219-1-git-send-email-pawelx.wodkowski@intel.com> Subject: [dpdk-dev] [PATCH v4 0/2] new headroom stats library and example application X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2015 16:41:36 -0000 Hi community, I would like to introduce library for measuring load of some arbitrary jobs. It can be used to profile every kind of job sets on any arbitrary execution unit or tasking library. In provided l2fwd-headroom example I demonstrate how to use this library to select optimal rx burst poll time. Jobs are selected by using existing rte_timer library calls. This example does no limit possible schemes on which this library can be used. PATCH v4 changes: - use proper branch fof generating patch. PATCH v3 changes: - Fix spelling. PATCH v2 changes: - Remove jobs management/callback from library to not duplicate tasking library behaviour. - Cleenup/remove useless statistics. - Rework example application to use rte_timer library for jobs selection. - Introduce new app parameter '-l' for automatic thousands separating in stats. - More readable statistics format. Pawel Wodkowski (2): librte_headroom: New library for checking core/system/app load examples: introduce new l2fwd-headroom example config/common_bsdapp | 5 + config/common_linuxapp | 5 + examples/Makefile | 1 + examples/l2fwd-headroom/Makefile | 51 ++ examples/l2fwd-headroom/main.c | 1039 ++++++++++++++++++++++++++ lib/Makefile | 1 + lib/librte_headroom/Makefile | 54 ++ lib/librte_headroom/rte_headroom.c | 271 +++++++ lib/librte_headroom/rte_headroom.h | 324 ++++++++ lib/librte_headroom/rte_headroom_version.map | 20 + mk/rte.app.mk | 4 + 11 files changed, 1775 insertions(+) create mode 100644 examples/l2fwd-headroom/Makefile create mode 100644 examples/l2fwd-headroom/main.c create mode 100644 lib/librte_headroom/Makefile create mode 100644 lib/librte_headroom/rte_headroom.c create mode 100644 lib/librte_headroom/rte_headroom.h create mode 100644 lib/librte_headroom/rte_headroom_version.map -- 1.9.1