From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0056.outbound.protection.outlook.com [104.47.34.56]) by dpdk.org (Postfix) with ESMTP id E0A281B1B8 for ; Sat, 20 Jan 2018 09:56:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=CKMxMxt3iPW/uE4mfq/YfBhIeI3W6Gw5mH39NBn87as=; b=OSPfX5lGSxNMYwtbCCCO0K2gQ6P3qM0+g9n07BiDZdZLydfti6VncU2M80m+fhXz183vOdLooGOCkK0sY5y+zkNl+V6qMNlGxFa2zOwp1iz7IVvW3O2WtF9eR7N2MkGsCc8yY9Wrb8XKQ2hX54ra9VMCGppIOv24enxqZ+PBAI8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT (111.93.218.67) by BN6PR07MB3457.namprd07.prod.outlook.com (10.161.153.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Sat, 20 Jan 2018 08:55:41 +0000 Date: Sat, 20 Jan 2018 14:25:21 +0530 From: Pavan Nikhilesh To: "Carrillo, Erik G" , "jerin.jacob@caviumnetworks.com" Cc: dev@dpdk.org Message-ID: <20180120085520.r32uhnva3zkqy64v@Pavan-LT> References: <1512158458-22661-1-git-send-email-erik.g.carrillo@intel.com> <1515630074-29020-1-git-send-email-erik.g.carrillo@intel.com> <1515630074-29020-16-git-send-email-erik.g.carrillo@intel.com> <20180111121831.j2ea6urzhf5zkoup@Pavan-LT> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR06CA0092.apcprd06.prod.outlook.com (10.170.138.18) To BN6PR07MB3457.namprd07.prod.outlook.com (10.161.153.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df84ea5a-9b1a-4f8a-6237-08d55fe39711 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BN6PR07MB3457; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 3:LjNQ/PGm23lV+IYHJr8rr2fTsDtWV364pocA+riMURTH9FdH+IALSmjjqnfV8sXgu/vz4/MP/xuzRKjC3JGqs4BoQL025btz0Vr3gGyKdfUtG1hyyYf5JLHy4AkWJuTAwpj2OxxBo1aY9v7p0E6NUduNcK27g11c6mrjhp7/HYkSxvxWnPz2SvHXjD8V1JCW8lI8q1iozWsDoSAI6TsxJCdEJ5MJAZkkyjmSjLCShgvAAGXicIVUukkuNsZ/2Tvj; 25:2/BBd6aYP3YN4AlkwwxMNXdkEyr/J73qWYCqMUV1KIWlIYINwkKDkX1h8ydb9+wRgwU5xwidPpZeDURdctzuzvLO0Yv8fDdSQP73OWdou08lwHNdpx0Vzo7D3BEdVtSz81C3UlUwUIYnfRMnPatsqs+MdWNdoCDNYfXYA1IE8Z5X9SymKGUuIpJ8ZydqIJ/oacaIEI7K1lGWghb+jLy3AZE5GXfO1NNfFr9zm6w4fnsXp1TvLIo514MMCugHtxc0zz5i4Ca3/CktWsJx9eXi0WOBJbI5FTz7QDjKdGoB4mZb5roaSugTfskBOY0Yf5YYhgbJbtV4emAOd5nA30oFJw==; 31:gSM58yxRNOJM9am2oo9GLloO+yIykwyPxvbl6X/3qA4O+7uFSLeC3pKDDmDp/HRhVTN8HxLM1Dwi9JFK63dLEy79mGIPmQk38eUIXiC105AypfsdssX+1I69+UgU0rQSrGDb8s2ldVIHkdYJsmLFIOY59g4CImpRcqoLuOm8KAmb8+0GhiOWo4opgiJDaufLO72XGM0JkPgPUGJFSJZpPWzLShEeJI35Cp3/xiIga/g= X-MS-TrafficTypeDiagnostic: BN6PR07MB3457: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 20:2drHFsBu1RrSq1JhGlULmWPXTBJf+EphZXitu/Vd+6LC/bkLw4DIIUNOWCwsjc7KV4obhRMYglI38jGpOwtJt0oCB5QnHkyUa7VL5ej6tSED14vR0vEUf8LhCw90CUim7XzhMKiBXZVknGNrYspwqM0DXEbokZSEwmrURhgtFuf+96ddf9LpQTLPiU97Ap2t/tZySj6p+sd2S6cp76HgXxXas9tTlFeI3A7nXB9R10PGsH4gp01NOEhf3yWorVXSyq7J1eEu9uXKAAFSB5YvAaS/RopuTsoqZkDl6hfCcFpoR+H9IhSuPGQC+XLl0+gTu0acwwNM9k/mxLasbhxewBSiFqPD4zlJ2yU39KqIt3Sfp9C4XwONqhtFKyRbBgjpT1zBnykISqPTAp/sjNkkJ3jhQdAgUq5QfdLzAwNvMzUHY6mSECLo4R1vyjNA1KFR/a7k3A2Bd3Hc4sk7ayav6tryevy0FLLbPh7kc6tSe1nlpmCb72dbj7T7YDZxoyRu84hqv7k4CZa806aKeEQzA9DiZ8JG1TUMg+BCBB0xFecsdAg65Dxw8BdzG3dhV+8YY1/kXROHaSxeJocsWpFjUqq1eEtt21Lp4rGHm5p8Mew= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(3231023)(2400081)(944501161)(10201501046)(93006095)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:BN6PR07MB3457; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN6PR07MB3457; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 4:tJTpPYx27cBzT1ROyuVeHRRSU36joNemvUq/CgBItj7S63m+9uTUGd2ZxHx/2x8cprLskY9xGuyp0Bw+I5OlNWr1nhxHnkxhfpMp6tRaaBiivS8mNccAFtFQaK3Rl60w2Lsrur2PgaBY+JVgc2jEkpuMqwSlX+2M9m/2MyHFd2VwfCna0JUERY2s4fJjfWefGGIf9/hSe/kAP4OGgRvF5Am2ViC8oro/YizCgk3hn5xFRMZdWBXpwqBlr2X+w8EW8lDuUfTQvxgyRP8Z9RWIft49JMbWXgkNZ5d10k3oi22fNSw2u+Or3+V9fr4A7TiQfUYYtzaFlO8ydYkJd+itS9J+0L7T2s2mKq9jypW9nuQ= X-Forefront-PRVS: 0558D3C5AC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(346002)(376002)(39380400002)(396003)(199004)(189003)(13464003)(3846002)(2501003)(55016002)(53936002)(9686003)(5009440100003)(229853002)(50466002)(68736007)(2906002)(66066001)(105586002)(97736004)(1076002)(47776003)(23726003)(6116002)(6666003)(6636002)(2950100002)(106356001)(478600001)(33716001)(386003)(53546011)(59450400001)(33896004)(83506002)(72206003)(81166006)(81156014)(4326008)(6246003)(110136005)(316002)(5660300001)(8676002)(76176011)(6496006)(305945005)(52116002)(58126008)(16526018)(42882006)(26005)(93886005)(16586007)(8936002)(25786009)(7736002)(107986001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3457; H:Pavan-LT; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB3457; 23:2yEzFpcqbhoyEXS9mNX2ToNsy+P7vw3WGn2PJTSCd?= =?us-ascii?Q?VbKEItz8zLUMpBc3TyvZzwwTmH1amqaxZLdFKHa4NdiEPdCbT4lTnSNy53Bq?= =?us-ascii?Q?E5RX2EoZz862ZP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nB1TtXwU4H4mKjf6hpDumN32tD78eUDZMUvjYfX57BmeG43T1WyE9K4M2FQSm7MlWsQ2omXfbQ+3juNhlRnVNhrBZbr/JsO7GAhJI1qiIM=; 7:YAeKwThlVVA0AHQ3NEVLNFAwZ8w0l3KpXg6atGrfyc32ybfTUEp+hJ2hNOd04uNs7wxqI50Ji7sRoJ1MhedE0qcOGStmAwqlBbHWr8uhXIh1Hx/Sx7V0mETfkrQ33uVQrXZdV6Us2RF9vjdjPtWiHyvHfZiDOCkqqLc5jQstWvnZgN0vTVT+OB+AOYsubveGZL7Y9XY/pCkaqXtq9kdAUTnbi2dbaG8/hSgTX+j+frb8+aoCW85sn+qX2MmNaen/ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2018 08:55:41.9507 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: df84ea5a-9b1a-4f8a-6237-08d55fe39711 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3457 Subject: Re: [dpdk-dev] [PATCH v6 15/23] eventtimer: add buffering of timer expiry events X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 08:56:32 -0000 On Thu, Jan 18, 2018 at 11:07:52PM +0000, Carrillo, Erik G wrote: > > -----Original Message----- > > From: Pavan Nikhilesh [mailto:pbhagavatula@caviumnetworks.com] > > Sent: Thursday, January 11, 2018 6:19 AM > > To: Carrillo, Erik G ; > > jerin.jacob@caviumnetworks.com; nipun.gupta@nxp.com; > > hemant.agrawal@nxp.com > > Cc: dev@dpdk.org > > Subject: Re: [PATCH v6 15/23] eventtimer: add buffering of timer expiry > > events > > > > On Wed, Jan 10, 2018 at 06:21:06PM -0600, Erik Gabriel Carrillo wrote: > > > Buffer timer expiry events generated while walking a "run list" > > > in rte_timer_manage, and burst enqueue them to an event device to the > > > extent possible. > > > > > > > IMO in some cases this adds a lot of delay between expiries and events being > > published to event dev. For example, having long expiry interval (default 300 > > seconds for mac expiry) the expired entries would remain in the buffer till 32 > > other entries expire. > > > > The service function invokes rte_timer_manage to handle expired timers, and as it does so, the buffer will be flushed under two conditions: the buffer is full of expired timer events, or the buffer is not full but there are no more expired timers to handle for this iteration of the service. The latter condition will flush the buffer even if only one event has been buffered after walking the list of expired rte_timers. Ah, I missed the flush call after timer_manage(). > > So, there could be some delay for the events that got buffered earliest, but it seems like the throughput benefit outweighs the small delay there. Thoughts? > > We could also make the buffer size configurable. Maybe make it compile time configurable i.e. in config/common_base. > > > > > > Signed-off-by: Erik Gabriel Carrillo > > > --- > > > lib/librte_eventdev/rte_event_timer_adapter.c | 118 > > > +++++++++++++++++++++++--- > > > 1 file changed, 108 insertions(+), 10 deletions(-) > > > > >