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 C9D71A034E; Wed, 22 Dec 2021 11:01:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2415441101; Wed, 22 Dec 2021 11:01:05 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2040.outbound.protection.outlook.com [40.107.223.40]) by mails.dpdk.org (Postfix) with ESMTP id 640C240DDA for ; Wed, 22 Dec 2021 09:25:52 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kMSFUKxaVZUXV4rxM8J9Wz86WLG4YOPjDDFeXTrcnJ8fxIVx2aq7Ofpc9NO3SpGSXjh39D/TKv3FA8dSjgzcTLNkfBBDyakh6TicOV+66oU6OO2shxAnZ4M7CKD+Q1du9yjWJD1HEgoGhIEKXj1s+QCHrWhzBJmuppyuiixl3tSQYLhOMmW54tYyi2Kpwt2dvxYn98p7u0uB24GGS4EfB7vMR/u88Acb8QZSQhYGxXhF8+ANDg0e/Lj11pMMljyb6R5EjB01Qk+oHw1pEspGwK86BQaGx6mb1JGuD0OXRqFCqbMhTgbJNteUs1zy/WNvSUqH9UZmF2ABL2wv1/vdkQ== 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=iUQ2gny/Re6DzJAtcVANeFeEsMxBS3aD5miZO2DEs8c=; b=GlqPs/xzrQTkStWJC2smRGN2W7cqmavt9bYG3lS1EzgUP4ARmtK9oiMZhT6FV1L7tdAHFCBR6uQ4qe+qZ/pv0wyjQH7KFwMHxtEJCGyNzYQK5U83uKbQCz1sqyIsWNqGVYvZ9hYPns6+7NFxlk7eoLdIMXxq4+1HOGvW0UPfkdEixuIUHSiX5AFBCNgA94UR0xI4Bf0cph3lDwQdJkKa2jlvddO6Xp80kpymqKlK7rlmn4q9LGuknCfb3dOjWamWw46x/MXi65TwkW/UHoLJMKY1sTUFKToTHW32OMFzmMPlom/f8xiBPucQU8b56mGAXAG3OYC0cTIUb45Q5xgl5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mavenir.com; dmarc=pass action=none header.from=mavenir.com; dkim=pass header.d=mavenir.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavenir.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iUQ2gny/Re6DzJAtcVANeFeEsMxBS3aD5miZO2DEs8c=; b=BVgqNTXkcKorW7dSu9lV1WOnaZ6AELWP3r8x+uC5OI0ixFd0Kqx2ZcplwgjrQlYpZwHDtfg0hcg5VAVrVZY4qw3ycn4Ij7qq7uR1I8ueduTWmudj6MccBQwSRH4jnHC+/e/Sv1ln7wTHnM+3uw3XFauArcq8Zhg8SzEZTpfhWvg= Received: from DM6PR11MB4076.namprd11.prod.outlook.com (2603:10b6:5:197::17) by DM5PR1101MB2106.namprd11.prod.outlook.com (2603:10b6:4:54::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4823.18; Wed, 22 Dec 2021 08:25:50 +0000 Received: from DM6PR11MB4076.namprd11.prod.outlook.com ([fe80::54e5:c346:db0b:73b]) by DM6PR11MB4076.namprd11.prod.outlook.com ([fe80::54e5:c346:db0b:73b%4]) with mapi id 15.20.4801.023; Wed, 22 Dec 2021 08:25:49 +0000 From: Ruitao Gong To: "vpp-dev@lists.fd.io" , " dev@dpdk.org" CC: "gong790802715@163.com" Subject: VPP main thread blocked by DPDK APIs Thread-Topic: VPP main thread blocked by DPDK APIs Thread-Index: AQHX9wysT1Tp17w3M0GDfU8FNnBunQ== Date: Wed, 22 Dec 2021 08:25:49 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mavenir.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 86cddb53-fcd3-400e-bbfe-08d9c524a94f x-ms-traffictypediagnostic: DM5PR1101MB2106:EE_ 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: b5cgtX8bGDfu9YD0t8g7tLsF2EExpZrp/U3mk/jam+n2kLHzDMsxcW2DQvQpd6GKHPXtsi5MOvL/S4TWvk7XTwM5O1hqKVghoaHfufcxTtEcwFD6rUIAF/K1hWN0pIY2zQ7GXTeflN8aTvGTdkvZqsqismKFJ9us8Vcp5TGnrJh1XHHvnAf4CN0S9PieMXPEkZ45DPXosAEM5jio8SOh2YjMaChgdm+5uCUHwcV6IpOyghBhKTRzH+JM8+XdEjr58H74Zaaq/uwO0lkdzCHSsLCgVfYlagfg6Pb14utrHrOzEyC7+ipA5Hhzzbo2k3BbU9f2hw4ufKhI8ovI2t79LH1eNdYVGqGRdtFHpDSQ55sLDExKPeU556XTIhiunhhxO1hmR09TaV7hQpPENCWaK1ydaw3DmQA9RaPfRTpI4tjmfUU4vCYf2uavVqL9aNWzE4U+JfAuD7ASY71hVVCRHwuS/BidkO0uR7MicsRaAPrcjQQn13QfnbI+wrSbnR+eANgib3Csl3Fs58ewJqMQObPQZAaWAv/SYLNHgVYjmEVwt8UaCvejZha8i/S7h+f490DznFxOvs4zMDlOM1YzSy8s7m0QR2JUx023aUDLurkaGDB1VTx3Z+QxSmZRhljtVwrxFdAi1Z7/AXgZ0jF27yJAZQnNPyMD+Fq+rwgo4YHp2bSi1vcp/RuRnp7ZOucLsqw6oKzrU1qxwR1Aj/f06A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4076.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(110136005)(316002)(38100700002)(122000001)(66574015)(86362001)(7696005)(15650500001)(38070700005)(91956017)(2906002)(83380400001)(9686003)(5660300002)(76116006)(44832011)(52536014)(66446008)(4326008)(66946007)(71200400001)(64756008)(66556008)(66476007)(8676002)(55016003)(508600001)(6506007)(186003)(8936002)(33656002)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?s6CjX3DtDDr6VceYAqA68N+5YEQpnuvuvu9+2A3i9lcT56XzhflmEGAEaWss?= =?us-ascii?Q?sMiJOPQcTY8VAalT3/LM9nwjz/MNPYgqcaR1aRYMNTXOX1Erub/l4Pe8RDkH?= =?us-ascii?Q?BLpMccD3o1rcmLlK7FOIYxFNIVyk4JA4X1go7mx8hUjv0tS49AO5sXlRutr3?= =?us-ascii?Q?r1XfJla2tDTgoS6ddPnpkCN7ObgmRRJ5EgPu7UXpfzhwWUMdvbCVe9/NYScl?= =?us-ascii?Q?iEegsJlaShGUpqKRMtAWGdH0BS9PG/hygK9M2D8Y57XF9li7o6Nn7JKD47W+?= =?us-ascii?Q?Bb3rL7VZ5bXh/b3szzOhKlz1e6Tfx4OKyXxVJp1x7XcrBoglID5zoxGGXlJX?= =?us-ascii?Q?GHE6qfrrPrKRbNYmMDTIrczWEaJmRJWSuSh4Ay+LQ3VuVreuQ7uSxiAGvgtY?= =?us-ascii?Q?lBzLRlLkDoDkYPpp/TuC54IxryLiLIQSHa6YDmZRA7IeggPriDqHV+tQ3Nfq?= =?us-ascii?Q?dt+oLrHwSENktp49DSfyu/qvS5HxB5yfdgx/hUHi18x+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fB4ttsXMmxu0CiSGIDtysjfriR+CfwSFbrJeT1NQmiG/M/L+?= =?us-ascii?Q?N4xSgkCi0afdJcVGQ22EhMm0ugEjKeb0EwqP2CFdVhsMCEDS4Tfsv2UiGo04?= =?us-ascii?Q?q5Vs0NkxF+PzRDcRxYDiybCWlSJAFzPlbOTWSEFVJXauQT5GnCkIZr14f8fO?= =?us-ascii?Q?Iau1eAyvnepaRpNIKdLxJShhqO4EJ6kNJpOhDBIuwacMD7So2iN3CxY+BAHW?= =?us-ascii?Q?z0zAeiRDbjY+PYYNCXGCbo4=3D?= Content-Type: multipart/alternative; boundary="_000_DM6PR11MB4076C5F6C995E1190E3DFE58E47D9DM6PR11MB4076namp_" MIME-Version: 1.0 X-OriginatorOrg: mavenir.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4076.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86cddb53-fcd3-400e-bbfe-08d9c524a94f X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Dec 2021 08:25:49.8455 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7fa7d4ff-bf19-464b-89a6-a132b269d68c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HVKXkJpJDbca7QMhLKhMw4iiu7HF1XWtFfS9twmA1EJd0h4MK01agwdhux743Z0B6EvlFCHGGornZewE7CgZJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1101MB2106 X-Mailman-Approved-At: Wed, 22 Dec 2021 11:01:03 +0100 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 --_000_DM6PR11MB4076C5F6C995E1190E3DFE58E47D9DM6PR11MB4076namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable hi DEVers, Send this mail for some help about VPP and DPDK. rte_eth_stats_get (xd->port_id, &xd->stats) rte_eth_xstats_get (xd->port_id, xd->xstats, len) APIs in dpdk_update_counters() node "dpdk_process" will cost about 140m= s each physical interface every 10s (DPDK_STATS_POLL_INTERVAL). main_thread will blocked N*140 ms when N physical interface in up state= . if govpp send heartbeat message to VPP, main_thread will have chance de= lay to read msg and reply, when main_thread blocked by doing update_counter= s. link between GoVPP and VPP will turn down when delay time more than 250= ms. It is easy to reproduce the scenario. is there any plan to fix it or some suggestion to avoid it? Many thanks= ! env details: GoVPP:v0.3.5 DPDK version: 20.05 VPP version:20.09 centos7 + Intel X710 expansion-rom-version: bus-info: 0000:19:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes startup.conf dpdk uio-driver vfio_pci driver: i40evf version: 3.2.2-k B&R, Ruitao ________________________________ This e-mail message may contain confidential or proprietary information of = Mavenir Systems, Inc. or its affiliates and is intended solely for the use = of the intended recipient(s). If you are not the intended recipient of this= message, you are hereby notified that any review, use or distribution of t= his information is absolutely prohibited and we request that you delete all= copies in your control and contact us by e-mailing to security@mavenir.com= . This message contains the views of its author and may not necessarily ref= lect the views of Mavenir Systems, Inc. or its affiliates, who employ syste= ms to monitor email messages, but make no representation that such messages= are authorized, secure, uncompromised, or free from computer viruses, malw= are, or other defects. Thank You --_000_DM6PR11MB4076C5F6C995E1190E3DFE58E47D9DM6PR11MB4076namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

hi DEVers,

 

Send this mail for some help about VPP and DPDK.<= /span>

rte_eth_stats_get (xd->port_id, &xd->stats)

rte_eth_xstats_get (xd->port_id, xd->xstats, len)

    APIs in dpdk_update_counters() node "= ;dpdk_process" will cost about 140ms each physical interface every 10s= (DPDK_STATS_POLL_INTERVAL).

    main_thread will blocked N*140 ms when N = physical interface in up state.

    if govpp send heartbeat message to VPP, m= ain_thread will have chance delay to read msg and reply, when main_thread b= locked by doing update_counters.

    link between GoVPP and VPP will turn down= when delay time more than 250ms. It is easy to reproduce the scenario.

    is there any plan to fix it or some sugge= stion to avoid it? Many thanks!

 

env details:

    GoVPP:v0.3.5

    DPDK version: 20.05

    VPP version:20.09

    centos7 + Intel X710

expansion-rom-version:

bus-info: 0000:19:00.0

supports-statistics: yes

supports-test: yes

supports-eeprom-access: yes

supports-register-dump: yes

supports-priv-flags: yes

 

    startup.conf dpdk uio-driver vfio_pci

    driver: i40evf version: 3.2.2-k

 

B&R,

Ruitao


This e-mail message may contain confiden= tial or proprietary information of Mavenir Systems, Inc. or its affiliates = and is intended solely for the use of the intended recipient(s). If you are not the intended recipient of this message, you are hereby noti= fied that any review, use or distribution of this information is absolutely= prohibited and we request that you delete all copies in your control and c= ontact us by e-mailing to security@mavenir.com. This message contains the views of its author and may not necessarily refl= ect the views of Mavenir Systems, Inc. or its affiliates, who employ system= s to monitor email messages, but make no representation that such messages = are authorized, secure, uncompromised, or free from computer viruses, malware, or other defects. Thank You=

--_000_DM6PR11MB4076C5F6C995E1190E3DFE58E47D9DM6PR11MB4076namp_--