Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5130251img; Wed, 27 Mar 2019 02:42:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGZhUD9vO4tNwFVDajK9cNd5PT5WN+hEsDRajUzdlkdZt0r8C4K7e+XLygTzalopSGJP+p X-Received: by 2002:a65:63d7:: with SMTP id n23mr4756432pgv.26.1553679727628; Wed, 27 Mar 2019 02:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553679727; cv=none; d=google.com; s=arc-20160816; b=mj66hTw89fkDAJjOVlEcG5znObgM4qBdLwKZ+qoOeVxLavlcdDxz6v/9lgiD3WDkOq IAM9iNVny0pP1VgEXpeShf0csY76pkCmFP87G+5YeqloSNxU1VJc2UdtJx+FVyeEnMtq sdHrVdfKFIV13Vw39XXo2BueG7lA/yxZnaG5RhpZ3wURy7MqfU4Rnrsoou62FDhjD9iS bp0/v36bI/f1G+pvGNoph8t8l+fw1M6QVvn47+cZP45ToifjE/b1TcRV67P8y3JzDN45 XtcyOKxxrlJSNswtoqQkspEt5VkCAHcNcdgQxifl1JNYheZCx4+ABjqu+ict4HsOPklm GLLA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=T6FxGEX8wZ0ucXVUO/6cQUUaT4yt29W6rySXrN49bns=; b=LWxJuXW/uZJcbXBaMc+U0RG2lQ55lbd8OCshUGsvb02p3iT10lQTeXdrfopO21jyMq pXYRujFbC/QzpACs/hPb06ZtkSy9TLK9Ke3EZmTB7iXU+b1yLHFkkykwI5NWV6hTehCf oy0Ugpwzl4riwOGsnz0FuWjG54SdIgJFYzMIzQ7M9qUzVptI8w9URxTp7frdjsMniumR CtUSdiMUq2343uGghNadBnBorA4l3in4Zb9SItqoWQtYpDDCoqS3TYmw2RGWlHNFWIRJ 6RW2gGqvDxHvQssn+7qkhlqR3GeCre88x7j4Obq5GEACZp/s/d6SR13keyuBcsekhoDG LBFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=3sCEy9rd; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si2280376pgw.545.2019.03.27.02.41.51; Wed, 27 Mar 2019 02:42:07 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=3sCEy9rd; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732815AbfC0Jjf (ORCPT + 99 others); Wed, 27 Mar 2019 05:39:35 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:47050 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726241AbfC0Jje (ORCPT ); Wed, 27 Mar 2019 05:39:34 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2R9TYA6013736; Wed, 27 Mar 2019 09:39:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : references : cc : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=T6FxGEX8wZ0ucXVUO/6cQUUaT4yt29W6rySXrN49bns=; b=3sCEy9rdHI94R5ngXBhqLAX6GelYck557nol2RjoqSWNy7P+Op3poxrdF1r6IWfDGGp3 MJjpvKYcAWownJJp8qyKXPZeSQn8NoXtLWjJ+DW2dPaJvmdFjQcbBCadM/CA75RR0QOR OhYZMNVsWwzMr1X1diKU9o8TFn9rvag3cKVhcm2d8sOTLeHsghLPkMfaLHEm3BiaDTim uCioLjqMrD1R16fVKballXL7/6ouXybsC7LLTTtFK+5GlVHgrkt32/KhSoZKf/EVwHR7 5vh11GHUT4o58bN2d5lSkrI7JuTCo1QQgoq0v04EBrDWdbThNMsjDKU0qNiUT2SYbQHg cw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2re6djfg74-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Mar 2019 09:39:23 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x2R9dM35011189 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Mar 2019 09:39:22 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x2R9dLUD006899; Wed, 27 Mar 2019 09:39:21 GMT Received: from [192.168.2.8] (/106.39.150.192) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 27 Mar 2019 02:39:21 -0700 Subject: Re: [PATCH] make blk_mq_map_queues more friendly for cpu topology To: luferry References: <20190325152640.48120-1-luferry@163.com> <20190326073954.GD21617@lst.de> <48ca2186.fc76.169b8fef63a.Coremail.luferry@163.com> <20190327081619.GG20525@lst.de> <764f3c.12445.169be70834b.Coremail.luferry@163.com> Cc: Christoph Hellwig , Jens Axboe , Ming Lei , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org From: Dongli Zhang Message-ID: <8e02b730-b504-50a2-64e6-72817b07e93d@oracle.com> Date: Wed, 27 Mar 2019 17:39:16 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <764f3c.12445.169be70834b.Coremail.luferry@163.com> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9207 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=675 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903270069 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/27/2019 05:17 PM, luferry wrote: > > > > Actually, I just bought one vm from public cloud provider and run into this problem. > after reading code and compare pci device info, I reproduce this scenario. There is lack of vector issue when number of queues is more than maxcpus as well. https://lore.kernel.org/lkml/e4afe4c5-0262-4500-aeec-60f30734b4fc@default I was going to send out patch to fix that specific case on virtio side. BTW, is your VM's virtio mmio based or pci based? As mentioned in previous email, when I was playing with firecracker by amazon, the virtio-blk is mmio based. Not sure if that would lead to the lack of vector issue. Dongli Zhang