Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754846AbcCWLOT (ORCPT ); Wed, 23 Mar 2016 07:14:19 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:51364 "EHLO e06smtp11.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753815AbcCWLOI convert rfc822-to-8bit (ORCPT ); Wed, 23 Mar 2016 07:14:08 -0400 X-IBM-Helo: d06dlp03.portsmouth.uk.ibm.com X-IBM-MailFrom: rapoport@il.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Message-Id: <201603231114.u2NBE1As012130@d06av04.portsmouth.uk.ibm.com> X-IBM-Helo: smtp.notes.na.collabserv.com X-IBM-MailFrom: rapoport@il.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org In-Reply-To: To: Bandan Das Cc: jiangshanlai@gmail.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, mst@redhat.com, tj@kernel.org Subject: Re: vhost threading model From: "Michael Rapoport" Date: Wed, 23 Mar 2016 13:13:55 +0200 References: <1458339291-4093-1-git-send-email-bsd@redhat.com><201603210758.u2L7wiXA028101@d06av09.portsmouth.uk.ibm.com><201603220712.u2M7CCfq004548@d06av03.portsmouth.uk.ibm.com> MIME-Version: 1.0 X-KeepSent: 33658E87:D489C8E5-C2257F7F:00309140; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0.1 October 14, 2013 X-LLNOutbound: False X-Disclaimed: 3375 X-TNEFEvaluated: 1 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="US-ASCII" x-cbid: 16032311-0041-0000-0000-00000B0E0FF2 X-IBM-ISS-SpamDetectors: Score=0.40962; BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.40962; ST=0; TS=0; UL=0; ISC= X-IBM-ISS-DetailInfo: BY=3.00005070; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000154; SDB=6.00677448; UDB=6.00310434; UTC=2016-03-23 11:13:57 x-cbparentid: 16032311-0598-0000-0000-0000070E450D X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1366 Lines: 36 > Bandan Das wrote on 03/22/2016 09:00:50 PM: > > "Michael Rapoport" writes: > > > > Well, Elvis is a _theoretical_ example that showed that I/O scheduling in > > the vhost improves performance. > > I'm not saying we should take Evlis and try to squeeze it into the vhost, > > I just want to say that we cannot switch vhost to use workqueues if it > > causes performance degradation. > > > > My opinion is that we need to give it some more thought, much more > > performance evaluation, so that we can find the best model. > > Exactly, I think we are outright discarding using workqueues even > without investigating it in detail even though it would be a cleaner > implementation using a common framework and thereby more chances of > an acceptable solution for upstream. I'm not suggesting to discard using workqueues. All I'm saying that among several options for vhost threading model we should find the one with best "performance/complexity" ratio :) > Anyway, if we don't want to go the workqueues way for vhost, cgroups > support for workqueues is still something worth having on its own. No objection to that. > >> > opportunity for optimization, at least for some workloads... > >> > That said, I believe that switching vhost to use workqueues is not > > that > >> > good idea after all. > >> > > >