Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp82360imu; Sun, 4 Nov 2018 19:29:29 -0800 (PST) X-Google-Smtp-Source: AJdET5cEjbTuZ7D64B+msEYT0+UeOxs6FgqiIc5a3+MBz2ShYcraWnW1C7XvMvXH8BO3AnxFw2MG X-Received: by 2002:a17:902:654a:: with SMTP id d10-v6mr19651456pln.302.1541388569197; Sun, 04 Nov 2018 19:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541388569; cv=none; d=google.com; s=arc-20160816; b=zPqmwM4r98/cKJq38kvF/M+aWeMgAFea29KTWkwft+ARgzOL3Y6QtXTdhCiONLB2Y3 A9f8CBI6c8HlcsON9Jpqls5ufm0efCzHUdoHNYGKz+c74WtAzuYMqG2Ca8SicIoxL0A+ ct6EJMFrJkcUTVc3DHpxQKu9TYVCjuafWCMpR8RKUqaYlql2lKkc5IOS4aDajfjIXOdl DMcdywHYVAHWFlW632LtcNJZiglpbbXd5eQ79Oov697IWurPgzydXhZYdNEMLv9RDDvN RUa6jfPzFuKh+RlJJptTxflHaoq7gz5j1xspQIGKjzEKFXjbIe7nHO74/0W5FWU7NaCB B6yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QkEN5lBFbysuSJlznNOpnoLwk60CYb8iNqwsMQR7zaA=; b=D57AXuLj8zIANbfRPCX1OaywjBbNu7dgZQl+NUqJUhaItmDc1qEFmgmPx7JefJyWXs 0Nl6ukc2yYMTin0ziGKRX1L+d0Qa1GcNEFkShDRPw5qgHO2nowmJMyaX4RCBITjm0Xic 7wE0asVRTwZT+BORLd/7UQ1R+hy/kWXFr545MsG0Q1cwPakwaZ96xrXa5kAJ6HT6CCRf iJSa+lS9+tSxeMyIzO7zjO549Njb0pRmAT2z6trcpj7P3yzqFh99kye72josxu4VRtB6 g+nLvuCCRBDzlKi5W+bNZJhtrkMBPzkyX5rTF8oTQZtUheAUq9ImRsUhEydvUrpOk02j fXrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lQIworpl; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6-v6si682046plo.164.2018.11.04.19.29.14; Sun, 04 Nov 2018 19:29:29 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lQIworpl; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728725AbeKEMqR (ORCPT + 99 others); Mon, 5 Nov 2018 07:46:17 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:45455 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbeKEMqR (ORCPT ); Mon, 5 Nov 2018 07:46:17 -0500 Received: by mail-qk1-f195.google.com with SMTP id d135so12404623qkc.12; Sun, 04 Nov 2018 19:28:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QkEN5lBFbysuSJlznNOpnoLwk60CYb8iNqwsMQR7zaA=; b=lQIworplozpQckFgCAixbTz96tR4TXAYGrGGFn6sLehsVoN+OHZqLPVkjvlPa+Func lnO8eYmcbqSo20YIOwiZGI/S0q1comLYJxvuqZP3+67qC+2I8ruOvt3orOj8OjpHyzh1 FUWYMYsn0zfWUUSpPLz92pBTFS4Jr5pjA7i8J1rYaEN/cRqc5Mw8MihovclxHE1iV+76 3wuxBFnUGvByK1OwqMzENBh7rlJrV+rBNBvI/iJhWwFJ5uJ2fCbtVOf6lsvtTorJPjpS DNb/uiCbxm+2Rbzu+8BwavvYnRUL80a3irpfA4/H57k8I85LcKC7sZgxZW2mBh+0E8yb P42A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QkEN5lBFbysuSJlznNOpnoLwk60CYb8iNqwsMQR7zaA=; b=uZwqEDI42R+SyHPWfhS1Lxd4s63NDgqOxFvsYg+u33mCTbYtf6FIe5LG5WE/pvUth/ j9DA3KFDkP7V++0bD71gddI3ZrzSLEu4uRHOIvFm6NPtwG+VpJYlAQh9kDDRi1Plpd0a GoKeNpvE+Eq0WNZdd/yvVANX1bbHY5qd6DyPYjj438jABwwPd0lhidzEXKL5/Uz1d8aS 6TVvH905k8wwB5yr0GqMRq3qjBiECSObhsr4MbZEiAoHfSj/A4vAlscPp4YEPqoKMVtz xPVC+R2NTspqjqOBqcUC82Guhje/9OIVa/wc61cqpC1mUmltgR4/QwKcInGX692BInpW 3yjw== X-Gm-Message-State: AGRZ1gI1UaDtVWbHyBuBRlBHNcGUGEnulJ2L7tlZhp8pnm1+eKdZFz9/ JyRX/U8Nk6SQ73IHhFfnnjPxv6gAXKMpuEv18toGeA== X-Received: by 2002:a37:b4c7:: with SMTP id d190-v6mr18272872qkf.165.1541388526516; Sun, 04 Nov 2018 19:28:46 -0800 (PST) MIME-Version: 1.0 References: <20181102160710.3741-1-v.mayatskih@gmail.com> <20181102160710.3741-2-v.mayatskih@gmail.com> In-Reply-To: From: Vitaly Mayatskih Date: Sun, 4 Nov 2018 22:28:34 -0500 Message-ID: Subject: Re: [PATCH 1/1] vhost: add per-vq worker thread To: Jason Wang Cc: "Michael S . Tsirkin" , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 4, 2018 at 9:53 PM Jason Wang wrote: > I wonder whether or not it's better to allow the device to specific the > worker here instead of forcing a per vq worker model. Then we can keep > the behavior of exist implementation and do optimization on top? I was thinking about that too, but for the sake of simplicity it sounds valid that if the user wanted 8 parallel queues for the disk, they better be parallel, i.e. worker per queue. The rest of disks that don't need high-performance, can have 1 queue specified. -- wbr, Vitaly