Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp739176img; Wed, 20 Mar 2019 09:50:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaHRIS4hKY+RydInNnq81eTC92VGute43VFnhgNH0246QuIo0Cj6RICx6Om7FvaWK1cPTJ X-Received: by 2002:aa7:8b0c:: with SMTP id f12mr8595560pfd.154.1553100647947; Wed, 20 Mar 2019 09:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553100647; cv=none; d=google.com; s=arc-20160816; b=FvN3UfPrdYq9cDvVQHmNUSBCJQBMiU39hXC/EQMgYSDTNskZ/NX4V1XUtFe4V7xXAk GPY6qNECwU6UvSVh6Y+gZUIUky7RBusoW956k9X7kn+68kV8pbIOPH81FH2S+gmCEyNd Y7sShYm34MkdVdehtAnOu5KaURBWwlq6zpL8KGTLXi/Bmry6PwR1HuP51qj4K8bJT47I azAIwvQjwYiQUT97dv5fCtGfTMS4+kyX+MGjKYFsogm6+KJjbfgSRhLi9ltN6Irivl6r necNbM/VHyhkqHKi716inV4WDvaG7txKXsWIh/LCy8D9sEDrXO77IUorXEy/7K1Vb4RW +tgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=sfKWBFDP/WXj8Ju1ZYetIBeET4jAwqLO5jfUWEo71C4=; b=zuG7NOAI26aFsuoEJU7E4DqvDKjpbFk8YJHkFqe5pAN7E2Oc7Rh35/jmyarkDeiShv VrRV7yFo/uDqa4rGg8uGiGOw6YtOxrpYTdQpII9LrT63s4mC0JFkpa+Df5mh/OjaUZuY tjmGqgpmlkUNfjL4yZosLt/XI5+moJ6VhTVEtO+xnTd3uKGqbU+J5f300vWZpk+mZ1Uv 0Nxz/m/lUUkKKlPVYhPrikmu++qyTDYnlXufpFRwDarYrsh8YyiJK97swJEBno89f7iK 90FLDStehJV06mIa9IAaKmj6jMWiVMvqFdCpJyTmxRLLKW7F1RX2oq1YuiTmkgzCKWDr CRog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si2168495pls.209.2019.03.20.09.50.32; Wed, 20 Mar 2019 09:50:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726939AbfCTQs0 (ORCPT + 99 others); Wed, 20 Mar 2019 12:48:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51296 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbfCTQs0 (ORCPT ); Wed, 20 Mar 2019 12:48:26 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E34BB307D981; Wed, 20 Mar 2019 16:48:25 +0000 (UTC) Received: from maximlenovopc.usersys.redhat.com (unknown [10.35.206.58]) by smtp.corp.redhat.com (Postfix) with ESMTP id CE7CD5D71B; Wed, 20 Mar 2019 16:48:17 +0000 (UTC) Message-ID: Subject: Re: [PATCH 0/9] RFC: NVME VFIO mediated device From: Maxim Levitsky To: Bart Van Assche , linux-nvme@lists.infradead.org Cc: Fam Zheng , Keith Busch , Sagi Grimberg , kvm@vger.kernel.org, "David S . Miller" , Greg Kroah-Hartman , Liang Cunming , Wolfram Sang , linux-kernel@vger.kernel.org, Kirti Wankhede , Jens Axboe , Alex Williamson , John Ferlan , Mauro Carvalho Chehab , Paolo Bonzini , Liu Changpeng , "Paul E . McKenney" , Amnon Ilan , Christoph Hellwig , Nicolas Ferre Date: Wed, 20 Mar 2019 18:48:17 +0200 In-Reply-To: <1553094528.65329.29.camel@acm.org> References: <20190319144116.400-1-mlevitsk@redhat.com> <1553094528.65329.29.camel@acm.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Wed, 20 Mar 2019 16:48:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-03-20 at 08:08 -0700, Bart Van Assche wrote: > On Tue, 2019-03-19 at 16:41 +0200, Maxim Levitsky wrote: > > * Polling kernel thread is used. The polling is stopped after a > > predefined timeout (1/2 sec by default). > > Support for all interrupt driven mode is planned, and it shows promising > > results. > > Which cgroup will the CPU cycles used for polling be attributed to? Can the > polling code be moved into user space such that it becomes easy to identify > which process needs most CPU cycles for polling and such that the polling > CPU cycles are attributed to the proper cgroup? Currently there is a single IO thread per each virtual controller instance. I would prefer to keep all the driver in the kernel, but I think I can make it cgroup aware, in a simiar way this is done in vhost-net, and vhost-scsi. Best regards, Maxim Levitsky > Thanks, > > Bart.