Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3178251pxb; Wed, 13 Oct 2021 00:05:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxiAOHI28fG4a7cfO/K1bX8uVw+Ut9s2F7hsY7ncMIeLQbZ0Rywo6MgNaX0MBaMVWe7tFv X-Received: by 2002:a17:902:6b49:b0:13e:77b:b97e with SMTP id g9-20020a1709026b4900b0013e077bb97emr34360938plt.68.1634108727847; Wed, 13 Oct 2021 00:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634108727; cv=none; d=google.com; s=arc-20160816; b=Pe/KJIhaE75EfN4GJShMwwmleEfoZnfmmQYlsS/mcLPt2Ik3U2ZksuK2SsLnNHuI0E /IKy3dpu08nrTt0zxmk7Rcml10/BwFfudrPayW2MDHv+FIaRnSJn5TzejKRJ9xB/iaWY eUwRGQR9rx7bP8ypcCTCHf2YRwU41npCnvwEdto321wnGlgVf+2fmjcAkaxGf/nVXC21 IRqr2mpGx7qcCbdMPZweGsGoZrqvemHpxqxiSGurcWwHpM8uOQa65PxALRDT3HZciAo6 YehySUOsgSu5JUliqFk4kam16gZ9GvX5FRroeEoEietT6Op36wkxfoT5NvL8PE3kmgGV BthA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EeX+4tnPLIUi6Ep+QrNONyMhFLK5k1y2tVIfWWgPXzk=; b=DwcSM11OhRsQ7XbIJAsgNQJtpq3zNokitYa8xabHu50Ezg3zjMjJnUJBfApmMlIm5m lmkc8CgvawWrfYdgkKf61bP+J253s8LW9SWkskyg6hyQyfHp5mWjyYd5RLQ9/XfeOigx qnrjPL4Bl+gq37oQFKVgxdMYnSHtu+lUjw2QHPnwGc0oIN7VAdKnkckRHgmjJA+KZxgf 2dfAejU/TXlIXOJquP+rFRkKB0lMzIZtbuAVQBsTb7vtZcKPYXUlkZ86gPlMkxpBuulN zK/+kI1ndR2GQ5CKAhU1wQ8YlHuzE5DQvO5svHx8xzoR9W1/vPRabiLbeE8qUPCjGHur u2gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pAHFnm2F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si18030343pgp.211.2021.10.13.00.05.12; Wed, 13 Oct 2021 00:05:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pAHFnm2F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238290AbhJMHFZ (ORCPT + 99 others); Wed, 13 Oct 2021 03:05:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:45294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232006AbhJMHFY (ORCPT ); Wed, 13 Oct 2021 03:05:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E0F660EDF; Wed, 13 Oct 2021 07:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634108601; bh=WtQf4uvFVelVyj+Fi3La0+7A9K3Xt2zv88Vm2szQP8s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pAHFnm2FPdV8mEaG1hwpaoqbvu0HkRq1jYkctN7rGixAeb6MC6p7GbLOwUQVXgM1a Unj51UuhdA+8csfVeSIwO7ASyQMoa8Uo7ueVucIYPm65eHPerxtI68f5mAn0gKa2Wo Zo1T0YMPuyuA55v5a7zKS6QP8+06ElGLH1jQQVwo= Date: Wed, 13 Oct 2021 09:03:19 +0200 From: Greg Kroah-Hartman To: Long Li Cc: vkuznets , Bart Van Assche , "longli@linuxonhyperv.com" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , Jonathan Corbet , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Bjorn Andersson , Hans de Goede , "Williams, Dan J" , Maximilian Luz , Mike Rapoport , Ben Widawsky , Jiri Slaby , Andra Paraschiv , Siddharth Gupta , Hannes Reinecke Subject: Re: [Patch v5 0/3] Introduce a driver to support host accelerated access to Microsoft Azure Blob for Azure VM Message-ID: References: <87fstb3h6h.fsf@vitty.brq.redhat.com> <87a6jj3asl.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021 at 12:58:55AM +0000, Long Li wrote: > > Subject: RE: [Patch v5 0/3] Introduce a driver to support host accelerated access > > to Microsoft Azure Blob for Azure VM > > > > > Subject: Re: [Patch v5 0/3] Introduce a driver to support host > > > accelerated access to Microsoft Azure Blob for Azure VM > > > > > > Greg Kroah-Hartman writes: > > > > > > > On Fri, Oct 08, 2021 at 01:11:02PM +0200, Vitaly Kuznetsov wrote: > > > >> Greg Kroah-Hartman writes: > > > >> > > > >> ... > > > >> > > > > >> > Not to mention the whole crazy idea of "let's implement our REST > > > >> > api that used to go over a network connection over an ioctl instead!" > > > >> > That's the main problem that you need to push back on here. > > > >> > > > > >> > What is forcing you to put all of this into the kernel in the > > > >> > first place? What's wrong with the userspace network > > > >> > connection/protocol that you have today? > > > >> > > > > >> > Does this mean that we now have to implement all REST apis that > > > >> > people dream up as ioctl interfaces over a hyperv transport? > > > >> > That would be insane. > > > >> > > > >> As far as I understand, the purpose of the driver is to replace a "slow" > > > >> network connection to API endpoint with a "fast" transport over > > > >> Vmbus. > > > > > > > > Given that the network connection is already over vmbus, how is this > > > > "slow" today? I have yet to see any benchmark numbers anywhere :( > > > > > > > >> So what if instead of implementing this new driver we just use > > > >> Hyper-V Vsock and move API endpoint to the host? > > > > > > > > What is running on the host in the hypervisor that is supposed to be > > > > handling these requests? Isn't that really on some other guest? > > > > > > > > > > Long, > > > > > > would it be possible to draw a simple picture for us describing the > > > backend flow of the feature, both with network connection and with > > > this new driver? We're struggling to understand which particular > > > bottleneck the driver is trying to eliminate. > > > > Thank you for this great suggestion. I'm preparing some diagrams for describing > > the problem. I will be sending them soon. > > > > Please find the pictures describing the problem and data flow before and after this driver. > > existing_blob_access.jpg shows the current method of accessing Blob through HTTP. > fastpath_blob_access.jpg shows the access to Blob through this driver. > > This driver enables the Blob application to use the host native network to get access directly to the Data Block server. The host networks are the backbones of Azure. The networks are RDMA capable, but they are not available for use by VMs due to security requirements. Please wrap your lines when responding... Anyway, this shows that you are trying to work around a crazy network design by adding lots of kernel code and a custom user/kernel api. Please just fix your network design instead, put the network that you want this "blob api" on the RDMA network so that you will get the same throughput as this odd one-off ioctl will provide. That way you also get the proper flow control, error handling, encryption, and all the other goodness that a real network connection provides you. Instead of this custom, one-off, fragile, ioctl command that requires custom userspace code to handle and needs to be maintained for the next 40+ years by yourself. Do it right please, do not force the kernel and userspace to do foolish things because your network designers do not want to do the real work here. thanks, greg k-h