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 5A423A034C; Wed, 21 Dec 2022 11:50:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BC64C42D15; Wed, 21 Dec 2022 11:50:31 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id B31A742D15 for ; Wed, 21 Dec 2022 11:50:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671619830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fre2/V3Ir8mRcnlZ3dXGdHzyVQl07DlEuZ4UcKLf48o=; b=adtnerQdCXKzqPn/7GFxVrAeFanxJ1HCQ1t87MacmKqUm74StwAJxI1qnPE1k9YsHFeJUu U114esultSukNLRl4wRH43CQRxeXc6TpZP7D7MKnDnwljnT8mUc5S1osQnKJRnjOaj4y6j b3U9B3k1OScmHxsR284JniqlnghbqxM= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-445-0gLNvTMdOyGsnkaOu_Ev9g-1; Wed, 21 Dec 2022 05:50:29 -0500 X-MC-Unique: 0gLNvTMdOyGsnkaOu_Ev9g-1 Received: by mail-pj1-f72.google.com with SMTP id h2-20020a17090a130200b00223faca3786so1361769pja.0 for ; Wed, 21 Dec 2022 02:50:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fre2/V3Ir8mRcnlZ3dXGdHzyVQl07DlEuZ4UcKLf48o=; b=ENtVXVBYht5uGOYxq6b9zPPQ41tFr3eOD7Q6yNp9CJpxl+/9IT66ljH92059QWV3s9 kN+g/CfXSmIwlWsSDeeXxZ2HhxCC7AFSnsde4xXcB0weQNK73JKXScDcl6yMToNJkDYd Y9GJoPJprTc28ykUqvtKjzQoKTqWhvijAlxLrV/+EnATM3ZIsGYdYRQ9lZztj00h6/b2 swO0QgLQKihqDr2dXy3Vk9kJZFSDCyx6nnTOjkMFzE8lxWhK2Oy3kLJaT4nY5qvsPqoA vgNaYLZYoOzkPNRFUS2G7/NWfXEC2LfRhDFhILq5VcbWWvMiliguIpFrXlnmYS2fuO5B 9S5Q== X-Gm-Message-State: AFqh2kptfb79RZyIef/WcQmdKtFnyKdH95jRKocVaRs0Nx3F4/bd1DME WnRGl+BFWVUZ/c+S77i8VQ0WOkNrxgq95Tj5ulgptnUWVQcuLUTkS93RMJHcoXodQd5XK+AgYXC sMAz0+DAXHM8TBFcfTt8= X-Received: by 2002:a63:6501:0:b0:479:4c30:9cb4 with SMTP id z1-20020a636501000000b004794c309cb4mr76213pgb.426.1671619828125; Wed, 21 Dec 2022 02:50:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXv7/M5/MrmzIWP1Wif2yCzG7jwS4xvI4CwbFwtLNv5SkX7ZNpWjP7sVAwgBNJKrhUNRdZiK6G+v+85AJR4T/QI= X-Received: by 2002:a63:6501:0:b0:479:4c30:9cb4 with SMTP id z1-20020a636501000000b004794c309cb4mr76199pgb.426.1671619827848; Wed, 21 Dec 2022 02:50:27 -0800 (PST) MIME-Version: 1.0 References: <20221117065726.277672-1-kaisenx.you@intel.com> <3ad04278-59c0-0c60-5c8c-9e57f33bb0de@amd.com> In-Reply-To: From: David Marchand Date: Wed, 21 Dec 2022 11:50:16 +0100 Message-ID: Subject: Re: [PATCH] net/iavf:fix slow memory allocation To: "You, KaisenX" Cc: Ferruh Yigit , "dev@dpdk.org" , "Burakov, Anatoly" , "stable@dpdk.org" , "Yang, Qiming" , "Zhou, YidingX" , "Wu, Jingjing" , "Xing, Beilei" , "Zhang, Qi Z" , Luca Boccassi , "Mcnamara, John" , Kevin Traynor X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Wed, Dec 21, 2022 at 10:12 AM You, KaisenX wrote= : > > -----Original Message----- > > From: David Marchand > > Sent: 2022=E5=B9=B412=E6=9C=8820=E6=97=A5 18:33 > > To: You, KaisenX > > Cc: Ferruh Yigit ; dev@dpdk.org; Burakov, Anatoly > > ; stable@dpdk.org; Yang, Qiming > > ; Zhou, YidingX ; Wu, > > Jingjing ; Xing, Beilei ;= Zhang, > > Qi Z ; Luca Boccassi ; Mcnamara= , > > John ; Kevin Traynor > > Subject: Re: [PATCH] net/iavf:fix slow memory allocation > > > > On Tue, Dec 20, 2022 at 11:12 AM You, KaisenX > > wrote: > > > > I tried to play a bit with a E810 nic on a dual numa and I can't se= e > > > > anything wrong for now. > > > > Can you provide a simple and small reproducer of your issue? > > > > > > > > Thanks. > > > > > > > This is my environment: > > > Enter "lscpu" on the command line: > > > NUMA: > > > NUMA node(s): 2 > > > NUMA node0 CPU(S) : 0-27,56-83 > > > NUMA node1 CPU(S) : 28-55,84-111 > > > > > > List the steps to reproduce the issue: > > > > > > 1. create vf and blind to dpdk > > > echo 1 > /sys/bus/pci/devices/0000\:ca\:00.0/sriov_ numvfs > > > ./usertools/dpdk-devbind. py -b vfio-pci 0000:ca:01.0 2. launch > > > testpmd ./x86_ 64-native-linuxapp-clang/app/dpdk-testpmd -l 28-48 -n = 4 > > > -a 0000:ca:01.0 --file-prefix=3Ddpdk_ 525342_ 20221104042659 -- -i > > > --rxq=3D256 --txq=3D256 > > > --total-num-mbufs=3D500000 > > > > > > Parameter Description: > > > "-l 28-48":The range of parameter values after "-l" must be on "NUMA > > node1 CPU(S)" > > > "0000:ca:01.0":inset on node1 > > - Back to your topic. > > Can you try this simple hack: > > > > diff --git a/lib/eal/common/eal_common_thread.c > > b/lib/eal/common/eal_common_thread.c > > index c5d8b4327d..92160c7fa6 100644 > > --- a/lib/eal/common/eal_common_thread.c > > +++ b/lib/eal/common/eal_common_thread.c > > @@ -253,6 +253,7 @@ static void *ctrl_thread_init(void *arg) > > void *routine_arg =3D params->arg; > > > > __rte_thread_init(rte_lcore_id(), cpuset); > > + RTE_PER_LCORE(_socket_id) =3D SOCKET_ID_ANY; > > params->ret =3D pthread_setaffinity_np(pthread_self(), sizeof(*= cpuset), > > cpuset); > > if (params->ret !=3D 0) { > > > Thanks for your advice. > > But this issue still exists after I tried. Ok, I think I understand what is wrong... but I am still guessing as I am not sure what your "issue" is. Can you have a try with: https://patchwork.dpdk.org/project/dpdk/patch/20221221104858.296530-1-david= .marchand@redhat.com/ Thanks. --=20 David Marchand