From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34C51EB64DB for ; Tue, 20 Jun 2023 12:35:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231193AbjFTMft (ORCPT ); Tue, 20 Jun 2023 08:35:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbjFTMfs (ORCPT ); Tue, 20 Jun 2023 08:35:48 -0400 Received: from out-59.mta0.migadu.com (out-59.mta0.migadu.com [IPv6:2001:41d0:1004:224b::3b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50FB210DA for ; Tue, 20 Jun 2023 05:35:47 -0700 (PDT) Message-ID: <6833cd2a-b137-0294-205c-f84b38290210@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1687264544; 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=jPSaC7z0L0JwSH3NopdUNyLbwOS8vbMEXS5JsLuCm+U=; b=KaU9TlWxxmgKGK/z327N2AHEmPpS1XOylssSutEl5IUv/5ypJeT/Qus+xYaJdcvEv19m9D EhNmzzLp4ydF6L8FfTrW5rtMhgwQifHRDZx31ElpJa/51z7ptzODhBFFo01h6tadf9G6Nc QRV4yfPGpmA8hoLiEg+nQptkXRKSA8w= Date: Tue, 20 Jun 2023 20:35:37 +0800 MIME-Version: 1.0 Subject: Re: [RFC PATCH 00/11] fixed worker X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Hao Xu To: io-uring@vger.kernel.org Cc: Jens Axboe , Pavel Begunkov , Wanpeng Li References: <20230609122031.183730-1-hao.xu@linux.dev> Content-Language: en-US In-Reply-To: <20230609122031.183730-1-hao.xu@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Hi Jens and all, On 6/9/23 20:20, Hao Xu wrote: > From: Hao Xu > > The initial feature request by users is here: > https://github.com/axboe/liburing/issues/296 > > Fixed worker provide a way for users to control the io-wq threads. A > fixed worker is worker thread which exists no matter there are works > to do or not. We provide a new register api to register fixed workers, > and a register api to unregister them as well. The parameter of the > register api is the number of fixed workers users want. > Here is a liburing test case to show how it works: https://github.com/axboe/liburing/commit/bc9e862d1317f2466381adb6243be8cc86c3bd27 Regards, Hao