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 52781A0C46; Tue, 14 Sep 2021 13:30:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6AC96410F0; Tue, 14 Sep 2021 13:30:14 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id CD515410EA for ; Tue, 14 Sep 2021 13:30:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631619013; 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=WiQNJZN6HQfNdhWtbc/bpu6pTwCY7R3zfaUqeTdS84U=; b=THy5X8UnInEIOsb07PkkyYTqapfshMkZndJjuygxd8wPQyFI5/RlAZ9PhMxdJgmVjKgTTn PQDEYne9Nf7p9esvzm5CUoWc/yF1VMdmfEpwtUWU6kpcSUvi3PYO/y0h0xbowrRi5Jse4S YbmCisOabdnzopR3E1BPN/dvXFExOiM= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-328-JODjx4vROVihC6ajf7c4lw-1; Tue, 14 Sep 2021 07:30:10 -0400 X-MC-Unique: JODjx4vROVihC6ajf7c4lw-1 Received: by mail-lj1-f197.google.com with SMTP id s15-20020a2eb8cf000000b001cbf358ed4eso5713524ljp.14 for ; Tue, 14 Sep 2021 04:30:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=WiQNJZN6HQfNdhWtbc/bpu6pTwCY7R3zfaUqeTdS84U=; b=vPCjkGDYh+TWWE37WBz6I0yxEEXX86liJxhen3Ljh3+HyAxG1zQN9JTMfKeOIrM4iv kn1vekm6Q5wMi57IE5nQ8d1rM19/G1vob0DOCEGxUiaUEQy+WXPuj8+egN2jCVbF1fl6 8SlDsppLQDvuL0+RzubvDCYEpPLs9qgyT2LX9Cq+Nd6S0QOS93Qu3NLf5Djng7GK+vvM 0ql83BTx50nU7n/DkDxnRt6yqjXz72WvJVfPB3NZDKoa+DTEFpXd3Wi0mr0jpgoaGtGI NvMfz2wmqsNBUlDKInX/WPsCTrc5ewCHKVj+nnO9fFX4zRoZmV9l+HSMq1A8Qh6mzGyq gJsA== X-Gm-Message-State: AOAM533Dez5kxPoEiqEfk7JGullqyUUfm4XLIDRp15JRdSKw9W/7+ExJ 22bSrBtPNtk/gTeg2a0jcOiyqKNOM05cNaNz8sdhVpRa/MrIpgRIcR5z+9J/E4SvprxFkWI5H6t mtQ113s/0OO0NNRyJt/8= X-Received: by 2002:a2e:4949:: with SMTP id b9mr14397550ljd.159.1631619008665; Tue, 14 Sep 2021 04:30:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztnsA8hB9fkc6lLTDkWF1wHAtsjwAXAocBPdFTUYvSfkzvXlSuT9BOwA+sr/WIA0TSE0IvcoenkciJKxVfHj4= X-Received: by 2002:a2e:4949:: with SMTP id b9mr14397535ljd.159.1631619008442; Tue, 14 Sep 2021 04:30:08 -0700 (PDT) MIME-Version: 1.0 References: <20210909134511.18871-1-david.hunt@intel.com> <5148108.61zlV0aQVf@thomas> <14b789de-9279-c2bb-6140-595606462970@intel.com> In-Reply-To: <14b789de-9279-c2bb-6140-595606462970@intel.com> From: David Marchand Date: Tue, 14 Sep 2021 13:29:56 +0200 Message-ID: To: David Hunt Cc: Thomas Monjalon , Bruce Richardson , dev Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v1 1/6] build: increase default of max lcores to 512 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" On Tue, Sep 14, 2021 at 1:07 PM David Hunt wrote: > >> =E2=80=9CERROR: logical core 212 is above the maximum lcore number per= mitted. > >> Please use the --lcores option to map lcores onto physical cores, e.g. > >> --lcores=3D"(0-3)@(212-215).=E2=80=9D > > If you could directly provide the right --lcores syntax based on what > > user provided with -c or -l, it would be even better. > > This should be not that difficult. > > > Agreed. I now have something working that when given "-l 12-16,130,132", > will output the following: > > EAL: One of the 7 cores provided exceeds RTE_MAX_LCORE (128) > EAL: Please use --lcores instead, e.g. --lcores "(0-6)@(12-16,130,132)" That's not equivalent. (0-6)@(12-16,130,132) means 7 lcores with each lcore running on the same group of physical cores. -l 12-16,130,132 means 7 lcores running on dedicated physical cores. I would expect 0@12,1@13,2@14,3@15,4@16,5@130,6@132 You can see with debug logs: $ echo quit | ./build/app/dpdk-testpmd --log-level=3D*:debug --no-huge -m 512 --lcores '(0-2)@(0-2)' -- --total-num-mbufs 2048 |& grep lcore.*is.ready EAL: Main lcore 0 is ready (tid=3D7feb9550bc00;cpuset=3D[0,1,2]) EAL: lcore 1 is ready (tid=3D7feb909ce700;cpuset=3D[0,1,2]) EAL: lcore 2 is ready (tid=3D7feb901cd700;cpuset=3D[0,1,2]) vs $ echo quit | ./build/app/dpdk-testpmd --log-level=3D*:debug --no-huge -m 512 --lcores 0@0,1@1,2@2 -- --total-num-mbufs 2048 |& grep lcore.*is.ready EAL: Main lcore 0 is ready (tid=3D7fba1cd1ac00;cpuset=3D[0]) EAL: lcore 2 is ready (tid=3D7fba179dc700;cpuset=3D[2]) EAL: lcore 1 is ready (tid=3D7fba181dd700;cpuset=3D[1]) --=20 David Marchand