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 5C862A0542; Fri, 16 Dec 2022 07:54:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4593540695; Fri, 16 Dec 2022 07:54:55 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 010EB40685 for ; Fri, 16 Dec 2022 07:54:53 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id q17-20020a17090aa01100b002194cba32e9so5142898pjp.1 for ; Thu, 15 Dec 2022 22:54:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-language:content-transfer-encoding:mime-version:user-agent :date:message-id:subject:from:to:from:to:cc:subject:date:message-id :reply-to; bh=objlZRfAWHGuS/6H4nw7DBKbOEEhcjTUkXnZDbUL8Jo=; b=QzUvGBKfyjHsN2hHCFjbEb/CpC6ZW/1t8pmJ74kiUKfa1IJFyHdtrbNatykhWIZM5s IW0hZWnITUB9LPKArGETTqn2euehm17Wx4JyERLHV1w4LqvXDR+oZBlMb9zusbPNbwQf pdjC/CKL+SlAtJG5X6zoWEmKyvZgWIbmF1nmf5ySTVEvFMOQkbagL3vzScamw4zaabcu M9P0OajuBJug7NBAq9didhLAkl4hyiiRcFYomgqgos7eCkgJjQu5MRXD+Ld/xVMxIi3X IUkRUUJAtgmyo+KXsqcU0kHJIceP1hRjrfeUG8YLYjlhOuHj24qaKauyp/i7uAudyuwe 5ydw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-language:content-transfer-encoding:mime-version:user-agent :date:message-id:subject:from:to:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=objlZRfAWHGuS/6H4nw7DBKbOEEhcjTUkXnZDbUL8Jo=; b=GU6xqHWJp99r4+BJ5rBCXJvYQH1L7nQ5CdExi1AlAxIXb70f4scITp6m3lq76N2i8l 6gLAi3lEb0lPVvN7pP5vnwbbX+WXHYxYzrz1nZprZzHj97xwK1LbJSeI18BUK6KUzuq4 voTTDgZqWuc1GoxCeO2m4KQWbTQygB2kS1mPCfZCINVMhghRMd+E9GKp6XSe1kHNAxcx jDveJx+WYfNncVJdIux3/hvsKLq1/Ad65jqIHc2X0hfbddTHs4gVqkHsCg/hUfsQTQvk VFA6hk7TwdtCSfp0Dj9DfdQ94rwtpC2xRQWSpo9JCekxeEX1bPXZ2s8iahju1rqsC24I wgJg== X-Gm-Message-State: ANoB5pkODBsueLZqYHazZSjjazctnUVn+kfgqc/dctVKnemXoKL8v4/W /Izi/LmhX6DTcYu/0+kvJrOV0KbN7+BdGL2I X-Google-Smtp-Source: AA0mqf7muX0lGKnhn7DsW657KckqS7NpoiYklwmYQuG3beMnBl53ECGhvht/QQPxOu8R55VNw70xNQ== X-Received: by 2002:a17:903:2051:b0:189:d4c5:f155 with SMTP id q17-20020a170903205100b00189d4c5f155mr28904502pla.63.1671173692956; Thu, 15 Dec 2022 22:54:52 -0800 (PST) Received: from [100.64.100.6] ([199.101.192.130]) by smtp.gmail.com with ESMTPSA id p10-20020a170902780a00b00174d9bbeda4sm766132pll.197.2022.12.15.22.54.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Dec 2022 22:54:52 -0800 (PST) To: Akhil Goyal , "dev@dpdk.org" From: Zhangfei Gao Subject: questions about crypto_scheduler Message-ID: <3637a6bf-beee-0994-203c-69c9a77a3042@linaro.org> Date: Fri, 16 Dec 2022 14:54:48 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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 Hi, Akhil Excuse me for the question. I am testing UADK crypto performance with dpdk-test-crypto-perf, and want to use multi-thread or multi-session for better performance, so trying to use crypto_scheduler. CMD like sudo dpdk-test-crypto-perf -l 1,2 --vdev "crypto_uadk0" --vdev "crypto_uadk1" --vdev "crypto_scheduler,worker=crypto_uadk0,worker=crypto_uadk1,mode=round-robin" -- --devtype crypto_scheduler --optype cipher-only --buffer-sz 8192 Though multi-worker is set but found it is just using one worker. Since uadk_cryptodev_probe gets the same dev->driver_id = uadk_cryptodev_driver_id in multi-probe. Then scheduler_pmd_sym_session_configure will treat only one worker, and call rte_cryptodev_sym_session_create only once. if (configured_sess[j].driver_id == worker->driver_id)         break Do I misuse the crypto_scheduler for the multi-thread or multi-session. Thanks in advance.