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 F1E24A0C47; Wed, 27 Oct 2021 17:49:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA8404114E; Wed, 27 Oct 2021 17:49:00 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id DEA07410F7 for ; Wed, 27 Oct 2021 17:48:59 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10150"; a="230048073" X-IronPort-AV: E=Sophos;i="5.87,187,1631602800"; d="scan'208";a="230048073" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 08:48:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,187,1631602800"; d="scan'208";a="537626897" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga008.fm.intel.com with ESMTP; 27 Oct 2021 08:48:58 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 27 Oct 2021 08:48:58 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Wed, 27 Oct 2021 08:48:58 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Wed, 27 Oct 2021 08:48:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fzy3uxy0XRhr5RxGGyf10r8LVFUaXO5jS1TmGg7w+v437kMRch4fa9Z/Qnl4HFOl/6gHoHBw2xWDL+ob/umV+SCgOeBPGQHVdEAJIsLrBXRaTSGI1fm7ggQSAloIgkAQloHttKyIQZ89k5614fOYSJe1wWet2AG1OryrmB6bIKqtt8lALGWuHcEOGbMIqJO+w0hqdHHY4wq9yQvN/ysyL8m/AqpPOvQivFcxmi96ff600ZD+rOhCkectlcYcQxBUqKfBUz7bOKm7msZsRbpZCKwSxfWfNsYbd8PMmgnIDbc/N3cCwSCD/4dHc0G/s/TELF74LRmnxUwSZUOK0nuCSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kFVlQFjdDQ0vyUhfS87biG6ejj06ouIyT76ILCziS0k=; b=U139pVU5tYntAcBuHYhz4UqBcqk8hKJOOk1VsK6ECbHy/6SkXmT4Qz9LWYAtCnCU1jnCeFBEP4gXcmK39Cza2B5BmgIswoQhgnOnHtH1E9HuyYbu8h1OtGfGOz3PastwbX/RLO5idKuDAn6fFMTbxpNKOGdtpznsNtJffcvhEKlg0M5kgaGiIdeEujDvZhLDcKh+ZIyZluquvwlFY2dvjChwP2d3kDybla4BVKUXH2K8hjcq6+PBhtPLho/fqkhuASFSbC2H4gQwmwlT5RaXC/XC2nULQIBDdH70cmYsSNJhUU42NusLUC83vArgS7oxQsBemVxDXf/Nz1OoiTi3GQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kFVlQFjdDQ0vyUhfS87biG6ejj06ouIyT76ILCziS0k=; b=WvyyET5PdChbe1BL+rJ+Ya8/a/77oCrBE4b17Ci6/kKnLM1tkcYxpBuy/9icAaRk0wz6qvbHiHgr/gANppyM1Xtcgnj3dBPJE0jc+65lGwwiURYWiUCcsR9BVYPVFrh9ZDWq2ULr0S+bsR1GyWwo+1Hi8ll40geCgeYgPkyEpRE= Authentication-Results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=intel.com; Received: from SA2PR11MB5020.namprd11.prod.outlook.com (2603:10b6:806:11f::16) by SN6PR11MB3246.namprd11.prod.outlook.com (2603:10b6:805:c6::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.20; Wed, 27 Oct 2021 15:48:54 +0000 Received: from SA2PR11MB5020.namprd11.prod.outlook.com ([fe80::e54d:4547:c437:dfe]) by SA2PR11MB5020.namprd11.prod.outlook.com ([fe80::e54d:4547:c437:dfe%7]) with mapi id 15.20.4628.020; Wed, 27 Oct 2021 15:48:54 +0000 To: Thomas Monjalon CC: , , , , , References: <1634842469-27119-1-git-send-email-vladimir.medvedkin@intel.com> <34793174.9LTJZ4FjZS@thomas> <1892628.myLnTpanUf@thomas> From: "Medvedkin, Vladimir" Message-ID: <1b6dcdff-5ec3-dc99-594a-d541f3893222@intel.com> Date: Wed, 27 Oct 2021 17:48:49 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.14.0 In-Reply-To: <1892628.myLnTpanUf@thomas> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB3PR06CA0009.eurprd06.prod.outlook.com (2603:10a6:8:1::22) To SA2PR11MB5020.namprd11.prod.outlook.com (2603:10b6:806:11f::16) MIME-Version: 1.0 Received: from [192.198.151.53] (192.198.151.53) by DB3PR06CA0009.eurprd06.prod.outlook.com (2603:10a6:8:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18 via Frontend Transport; Wed, 27 Oct 2021 15:48:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 12e3442b-7e50-4eab-0f85-08d9996147e1 X-MS-TrafficTypeDiagnostic: SN6PR11MB3246: X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cxmzh5g6ME/0iZK5ErkB9x9+JaE+ZouPbXHQL5MTiY/tzTklaIepdGSDfNRsvy2Ud6Tm/PG78+RdQc18Sc47ptWX+CMNe+lj7CfqsumWMHIrWYKU03vAsliAgQ5UgIzVHS9XNToFtzJPXd6cBqWtkQq5LfXCHlIomg3ZTJyMzCbnQMOn1CQOwweUqAh7+bv7brDLohgKQga1NYO3Z0yWP4CHajh7mm2bhpxEHRPVQlQjFUOlgCLIpuZ2CoWA77LPgH6HeDVRuSta7PExSPlxW+CUMQKl2tdkXwDzEqejJYBv3jPgYGnnamKCuYnOZZZZTRbezrS2CSmqjVXdpSfdRs03cSpP5E1hUIEHiY9L3siHH44YXEr6yBdYQNfgPW1Tl5lxufyPRNRI/UUk3wagzMV+sXFvxci6k9eiO/2oGY2QPn/Wc9zCLE0CYuJal3PsuzVtHBgCtnPEdwrVXHeWgL7BNuSGEIaBsOskorTK4lratOF2zrBsqqKyeM+Gb0lW76K5PWV7vdbxc8WowzLN0T1TOhw56SJFl1NXOs63dZaqzDw6W4eNZoycJ3Y/vqcnMDhLvtcB49MrfyMVO4Zzl7PCIM/GDpuEsh2LxPz9OXz8777igJcXNgloy+qeHaqGphLFQS5znpWFFje+4YskFcKDbshz7TIR8G1pHOfx2zanKDQtgvz944kX1rG12hj1QF8qVAAziUJAanUduLqsC4occWAETaAFx4QGLqJkZpcMT7mNfxEiyyVTE+Qf1maPBf040AyNy/We0lJq0KOKuw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR11MB5020.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(53546011)(66556008)(36756003)(26005)(508600001)(2906002)(5660300002)(6916009)(66476007)(6666004)(83380400001)(82960400001)(8676002)(956004)(86362001)(8936002)(38100700002)(16576012)(316002)(66946007)(186003)(6486002)(31696002)(4326008)(6706004)(31686004)(2616005)(3940600001)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YWVtRWhuRU5jOWxzdW1zclljNCtDY1pFTUpNQUR4M1hhcnhZQVk4UTI1TmRX?= =?utf-8?B?M2lTbmJjRDEwSUZKVUZUSFRROXlvR0lUVnc2R0duQmZSdGFxRWkySE1NWUtJ?= =?utf-8?B?UmtUNlk5alZ3L2M2eWVIWkVod1Y1SU9tSXZxelhuV04yWUdRU3Uyb2lwVTIz?= =?utf-8?B?ZVRuN3hLWlVudzdKTm5CQXh2UjFhb0J3amxGSlVILzBNOE44d1NQZ0IzSUc1?= =?utf-8?B?VnYyN2huWDN5RE9JSmwvZnJSZDJCUC9KTjJJM3dHSVZKclNldGx6eVE3R2E5?= =?utf-8?B?UXhzcWRUS0dZVk1ZWHl3eEExZ2tzM1BEaHY1TDNUTXpvb09odm9GcmVkN3pF?= =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IrU3Z3ZnJwS3pnTFY5?= =?utf-8?B?S2dycCtwSGY4UmQ4cENvS0JaeWlnYXhmbTdYNWJjNHRVTEV3OVNEaXRMUDdF?= =?utf-8?B?N1ZYZDBrSXQ3OXNBQUs2R2dNYmdRPT0=?= X-MS-Exchange-CrossTenant-Network-Message-Id: 12e3442b-7e50-4eab-0f85-08d9996147e1 X-MS-Exchange-CrossTenant-AuthSource: SA2PR11MB5020.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2021 15:48:54.8048 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0zjTTzavbw1ovghl2Q3LY/9YkMwhoByXWU9NdE9o1MDhry5T5w2XFOmej0cR3kdqb6AWGlkohWKkyXE6AWRlIWDhfyneE+A/N/Y6L3B7Ts0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3246 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v5 5/5] test/thash: add performance tests for the Toeplitz hash 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" Hi Thomas, On 27/10/2021 10:29, Thomas Monjalon wrote: > 26/10/2021 22:29, Medvedkin, Vladimir: >> Hi Thomas, >> >> Thanks for the review, I'll address your comments in v6. >> Please find my comment below >> >> On 25/10/2021 19:02, Thomas Monjalon wrote: >>> 21/10/2021 20:54, Vladimir Medvedkin: >>>> This patch adds performance tests for different implementations >>>> of the Toeplitz hash function. >>> >>> Please name them. >>> >>>> Signed-off-by: Vladimir Medvedkin >>> >>> There are some garbage, >>> >>>> @@ -320,6 +321,7 @@ perf_test_names = [ >>>> 'hash_readwrite_lf_perf_autotest', >>>> 'trace_perf_autotest', >>>> 'ipsec_perf_autotest', >>>> + 'thash_perf_autotest', >>> >>> here (tabs instead of space) >>> >>>> driver_test_names = [ >>>> diff --git a/app/test/test_thash_perf.c b/app/test/test_thash_perf.c >>>> new file mode 100644 >>>> index 0000000..fb66e20 >>>> --- /dev/null >>>> +++ b/app/test/test_thash_perf.c >>>> @@ -0,0 +1,120 @@ >>>> +/* SPDX-License-Identifier: BSD-3-Clause >>>> + * Copyright(c) 2021 Intel Corporation >>>> + */ >>>> + >>>> +#include >>>> +#include >>>> +#include >>>> +#include >>>> + >>>> +#include >>>> +#include >>>> +#include >>>> +#include >>>> + >>>> +#include "test.h" >>>> + >>>> +#define ITERATIONS (1 << 15) >>>> +#define BATCH_SZ (1 << 10) >>>> + >>>> +#define IPV4_2_TUPLE_LEN (8) >>>> +#define IPV4_4_TUPLE_LEN (12) >>>> +#define IPV6_2_TUPLE_LEN (32) >>>> +#define IPV6_4_TUPLE_LEN (36) >>>> + >>>> + >>>> +static uint8_t default_rss_key[] = { >>>> + 0x6d, 0x5a, 0x56, 0xda, 0x25, 0x5b, 0x0e, 0xc2, >>>> + 0x41, 0x67, 0x25, 0x3d, 0x43, 0xa3, 0x8f, 0xb0, >>>> + 0xd0, 0xca, 0x2b, 0xcb, 0xae, 0x7b, 0x30, 0xb4, >>>> + 0x77, 0xcb, 0x2d, 0xa3, 0x80, 0x30, 0xf2, 0x0c, >>>> + 0x6a, 0x42, 0xb7, 0x3b, 0xbe, 0xac, 0x01, 0xfa, >>>> +}; >>>> + >>>> +static void >>>> +run_thash_test(unsigned int tuple_len) >>>> +{ >>>> + uint32_t *tuples[BATCH_SZ]; >>>> + unsigned int i, j; >>>> + uint64_t start_tsc, end_tsc; >>>> + uint32_t len = RTE_ALIGN_CEIL(tuple_len, sizeof(uint32_t)); >>>> + volatile uint32_t hash = 0; >>>> + uint32_t bulk_hash[BATCH_SZ] = { 0 }; >>>> + >>>> + for (i = 0; i < BATCH_SZ; i++) { >>>> + tuples[i] = rte_zmalloc(NULL, len, 0); >>>> + for (j = 0; j < len / sizeof(uint32_t); j++) >>>> + tuples[i][j] = rte_rand(); >>>> + } >>>> + >>>> + start_tsc = rte_rdtsc_precise(); >>>> + for (i = 0; i < ITERATIONS; i++) { >>>> + for (j = 0; j < BATCH_SZ; j++) { >>>> + hash ^= rte_softrss(tuples[j], len / sizeof(uint32_t), >>>> + default_rss_key); >>>> + } >>>> + } >>>> + end_tsc = rte_rdtsc_precise(); >>>> + >>>> + printf("Average rte_softrss() takes \t\t%.1f cycles for key len %d\n", >>>> + (double)(end_tsc - start_tsc) / (double)(ITERATIONS * >>>> + BATCH_SZ), len); >>>> + >>>> + start_tsc = rte_rdtsc_precise(); >>>> + for (i = 0; i < ITERATIONS; i++) { >>>> + for (j = 0; j < BATCH_SZ; j++) { >>>> + hash ^= rte_softrss_be(tuples[j], len / >>>> + sizeof(uint32_t), default_rss_key); >>>> + } >>>> + } >>>> + end_tsc = rte_rdtsc_precise(); >>>> + >>>> + printf("Average rte_softrss_be() takes \t\t%.1f cycles for key len %d\n", >>>> + (double)(end_tsc - start_tsc) / (double)(ITERATIONS * >>>> + BATCH_SZ), len); >>> >>> The function could stop here (one function per type of implementation). >>> >> >> Could you please clarify what do you mean? >> The function stops here if the machine do not support GFNI, and this is >> done intentionally. On machine without GFNI it tests only scalar >> implementations for every given length. > > No I mean you can split in smaller functions. > Aha, I see, I'll send v7. >>>> + >>>> + if (!rte_thash_gfni_supported()) >>>> + return; >>>> + >>>> + uint64_t rss_key_matrixes[RTE_DIM(default_rss_key)]; >>>> + >>>> + rte_thash_complete_matrix(rss_key_matrixes, default_rss_key, >>>> + RTE_DIM(default_rss_key)); >>>> + >>>> + start_tsc = rte_rdtsc_precise(); >>>> + for (i = 0; i < ITERATIONS; i++) { >>>> + for (j = 0; j < BATCH_SZ; j++) >>>> + hash ^= rte_thash_gfni(rss_key_matrixes, >>>> + (uint8_t *)tuples[j], len); >>>> + } >>>> + end_tsc = rte_rdtsc_precise(); >>>> + >>>> + printf("Average rte_thash_gfni takes \t\t%.1f cycles for key len %d\n", >>>> + (double)(end_tsc - start_tsc) / (double)(ITERATIONS * >>>> + BATCH_SZ), len); >>>> + >>>> + start_tsc = rte_rdtsc_precise(); >>>> + for (i = 0; i < ITERATIONS; i++) >>>> + rte_thash_gfni_bulk(rss_key_matrixes, len, (uint8_t **)tuples, >>>> + bulk_hash, BATCH_SZ); >>>> + >>>> + end_tsc = rte_rdtsc_precise(); >>>> + >>>> + printf("Average rte_thash_gfni_x2 takes \t%.1f cycles for key len %d\n", >>> >>> and here, the function name is not updated. >>> >>>> + (double)(end_tsc - start_tsc) / (double)(ITERATIONS * >>>> + BATCH_SZ), len); >>>> + >>> >>> useless blank line >>> >>>> +} > > > -- Regards, Vladimir