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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 958DAC433E0 for ; Tue, 12 Jan 2021 17:30:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5CE8C22285 for ; Tue, 12 Jan 2021 17:30:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405525AbhALR3u (ORCPT ); Tue, 12 Jan 2021 12:29:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:42042 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388300AbhALR3t (ORCPT ); Tue, 12 Jan 2021 12:29:49 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4594BABD6; Tue, 12 Jan 2021 17:29:08 +0000 (UTC) Date: Tue, 12 Jan 2021 09:29:01 -0800 From: Davidlohr Bueso To: Shuo A Liu Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Greg Kroah-Hartman , "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Yu Wang , Reinette Chatre , Zhi Wang , Zhenyu Wang Subject: Re: [PATCH v7 09/18] virt: acrn: Introduce I/O request management Message-ID: <20210112172901.ilp7vf3hqmbvav7y@offworld> References: <20210106075055.47226-1-shuo.a.liu@intel.com> <20210106075055.47226-10-shuo.a.liu@intel.com> <20210111215219.l44yfpyqh4m2mcbl@offworld> <20210112060527.GF22447@shuo-intel.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210112060527.GF22447@shuo-intel.sh.intel.com> User-Agent: NeoMutt/20201120 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Jan 2021, Shuo A Liu wrote: >On Mon 11.Jan'21 at 13:52:19 -0800, Davidlohr Bueso wrote: >>Could this not be done in process context instead? > >It could be. The original consideration with tasklet was more about >performance as the I/O requests dispatching is a hot code path. I think >irq thread has little performance impact? I can have a try to convert >the tasklet to irq thread. Yes, there is some added latency between when the work is scheduled and actually executed - however this should not be a problem for this scenario, and furthermore consider that tasklets do not guarantee performance as ksoftirqd comes in the picture under heavy load. Thanks, Davidlohr