Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6927381ybi; Mon, 22 Jul 2019 04:09:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqy791LkRC4dVsZgxisZCUcJJuwR79WmN3VQPShUHUiVS1jeo6H0IgjBDyM6PEE3ILED/Y39 X-Received: by 2002:a17:90b:d82:: with SMTP id bg2mr33723499pjb.87.1563793796002; Mon, 22 Jul 2019 04:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563793795; cv=none; d=google.com; s=arc-20160816; b=ZPByioCSzVeU5WnX2GMfppkYdWws+cJQxTIaMzW3AhmlcwIQh9e99o8DAY9BxNwZkw N9GWtFgRZ3dTpplBUeDN1x7wQ57ruGhR9tAjgZ0GYfebpIdYJOOCrMjJw6lOBqnQFuQD m9tdQRrkMTYMvyPCv558ctRaG0u7+KEEWxFgBLJP93ng3pMzjCL1hBGkMr9kKurALbd2 SKFPrCRx0r99bCEZjBjcorJa+RiRQujCQfU5BTt5X+kExxbdtC570uqdacouNX1npMNe PVGLYcQzEqF9+IBb1yEGTc24y06bid1AovzJZpMxm9EDwzPusN2Fy+Gczf7dadaVXB6R 2MsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=buyBwragh/MiAtoP/qWU/+3wC1FPeSO8mS8xKGZe0WM=; b=crbSf0JPyoJiMRvSLIc4Hn4GLqIJcAGTYxVnTluIB6llpAU9EoxVqPcWwKzQMnGJEC TWK4QJ1+NRLbxDD740zTKif/JZyxY2QtP5/ndmhbh83h7rnFM10WdWJuq5n/BKFaeh0O sJy2ElbDHFp7EqJdchC4vVuoJtQUqmuTaybXbvWxBf8BfHYxY00vQtOkoeMn27dPrbWs KSe5Cx8ugJRTh8o5g6aK7KknSdHOGrKR67lJHWUc186JFlFj+Hqce6A741YYNCcEtuxj 6j7Dpj0bzxjDLqcVy3VQnixaia92pL8RqXtuj3y+XPDzvKFDojzuATIY4Oxt0Q6ud3It QSnQ== 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 z62si11559105pgd.472.2019.07.22.04.09.40; Mon, 22 Jul 2019 04:09:55 -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 S1728894AbfGVJOj (ORCPT + 99 others); Mon, 22 Jul 2019 05:14:39 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:56082 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728888AbfGVJOj (ORCPT ); Mon, 22 Jul 2019 05:14:39 -0400 Received: by mail-wm1-f66.google.com with SMTP id a15so34348156wmj.5 for ; Mon, 22 Jul 2019 02:14:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=buyBwragh/MiAtoP/qWU/+3wC1FPeSO8mS8xKGZe0WM=; b=QmXTfzoHNX+/35OflC4y97FKWY+u3nhBPCZkBbwvW7IF3K+tUVNEqXyfH2HpeN1O1T xk3RfUGlnx2Rleh4OU1/y0HvWw+HWsZouhdU+sWdTKs/l0/OAaGUbofR0CHvz7pOHKGK tafpzZF6xS9M62dTQX2xFhz2KhLB2tWsJ4LqAor9JP3vbcYiLBmEl+VGGA68emiCYJG/ vQqk7/XxZDyaMCR0IneP4dwWUm0zCuR7bOFkqsJdtla2whl5h664TxDmM7VcLTWqpTH+ 6W2nLmmw3iSXGOf+K12g/AH3cohbCw7f7pIw9eVGZ/MzFJVaU2/kWMkXsdtz316M39os tzXQ== X-Gm-Message-State: APjAAAXqbQ5518P2VIniUJMO2+HCAH+I6R1ezve2ZvA7pKD7IG7xF0Zq X1qGcNT02PB7xPqRRhEoBaXdtw== X-Received: by 2002:a1c:5f87:: with SMTP id t129mr66150883wmb.150.1563786877819; Mon, 22 Jul 2019 02:14:37 -0700 (PDT) Received: from steredhat (host122-201-dynamic.13-79-r.retail.telecomitalia.it. [79.13.201.122]) by smtp.gmail.com with ESMTPSA id 18sm35831732wmg.43.2019.07.22.02.14.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Jul 2019 02:14:37 -0700 (PDT) Date: Mon, 22 Jul 2019 11:14:34 +0200 From: Stefano Garzarella To: Stefan Hajnoczi Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , virtualization@lists.linux-foundation.org, Jason Wang , kvm@vger.kernel.org, "Michael S. Tsirkin" Subject: Re: [PATCH v4 0/5] vsock/virtio: optimizations to increase the throughput Message-ID: <20190722091434.tzf7lxw3tvrs5w5v@steredhat> References: <20190717113030.163499-1-sgarzare@redhat.com> <20190722090835.GF24934@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190722090835.GF24934@stefanha-x1.localdomain> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 22, 2019 at 10:08:35AM +0100, Stefan Hajnoczi wrote: > On Wed, Jul 17, 2019 at 01:30:25PM +0200, Stefano Garzarella wrote: > > This series tries to increase the throughput of virtio-vsock with slight > > changes. > > While I was testing the v2 of this series I discovered an huge use of memory, > > so I added patch 1 to mitigate this issue. I put it in this series in order > > to better track the performance trends. > > > > v4: > > - rebased all patches on current master (conflicts is Patch 4) > > - Patch 1: added Stefan's R-b > > - Patch 3: removed lock when buf_alloc is written [David]; > > moved this patch after "vsock/virtio: reduce credit update messages" > > to make it clearer > > - Patch 4: vhost_exceeds_weight() is recently introduced, so I've solved some > > conflicts > > Stefano: Do you want to continue experimenting before we merge this > patch series? The code looks functionally correct and the performance > increases, so I'm happy for it to be merged. I think we can merge this series. I'll continue to do other experiments (e.g. removing TX workers, allocating pages, etc.) but I think these changes are prerequisites for the other patches, so we can merge them. Thank you very much for the reviews! Stefano