From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29320 invoked from network); 30 Dec 2020 06:20:47 -0000 Received: from tb-ob20.topicbox.com (173.228.157.66) by inbox.vuxu.org with ESMTPUTF8; 30 Dec 2020 06:20:47 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob20.topicbox.com (Postfix) with ESMTP id C10551C2A8 for ; Wed, 30 Dec 2020 01:20:44 -0500 (EST) (envelope-from bounce.mM7768691deb99f4bd060052c8.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 872DBF0F0F6; Wed, 30 Dec 2020 01:20:44 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=icebubble.org; spf=pass smtp.mailfrom=cigar562hfsp952fans@icebubble.org smtp.helo=icebubble.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=from:to:date:message-id:mime-version :content-type:list-help:list-id:list-post:list-subscribe :reply-to:subject:content-transfer-encoding:list-unsubscribe; s= sysmsg-1; t=1609309244; bh=mT9lGIqC3ZJMHKOwvQuDpqe/qt4BEZ6gPrlPu bzFt6s=; b=fkcSxqBXMN2Pi/FgA+TtqyZP/iR8yU6iDeFneuIrrjSJ3EViXH7ri E5cN0gLjNv4QwScwrXlDN64OKJlnoMp4CbD1Jf1EXnsz7s75ScRdXx//oQB0/tnx f/CcyEZScYdRubxvzpsjQp91ps0YAzZsjx1vG6+gfviDZfEz/PJ85E= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1609309244; b=CVDwen7BjOExG+jXH4FH0AoM9WGL17Cnu1DPYmf87fAKLDXRyZ wFglMOymTUeSusj6LfHOLPD8pzI3r7fUJHM6qxHRPx0x+Q9Jz3FYg6Tkg1Mpk/w5 iIE69XsQvb90kcBXhvjWTSH1EGEx7VpHFRt6Jc3hXc+yuGOF28iaDBsj0= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=icebubble.org; spf=pass smtp.mailfrom=cigar562hfsp952fans@icebubble.org smtp.helo=icebubble.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC none); dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=icebubble.org; iprev=pass smtp.remote-ip=174.136.103.210 (smtp.icebubble.org); spf=pass smtp.mailfrom=cigar562hfsp952fans@icebubble.org smtp.helo=icebubble.org; x-aligned-from=pass (Address match); x-ptr=fail smtp.helo=icebubble.org policy.ptr=smtp.icebubble.org; x-return-mx=pass header.domain=icebubble.org policy.is_org=yes (MX Records found: icebubble.org,icebubble.org); x-return-mx=pass smtp.domain=icebubble.org policy.is_org=yes (MX Records found: icebubble.org,icebubble.org); x-tls=pass smtp.version=TLSv1 smtp.cipher=DHE-RSA-AES256-SHA smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :date:message-id:mime-version:content-type:list-help:list-id :list-post:list-subscribe:reply-to:subject :content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=jTCRO6 7OwEBd1WzJPaOMnnWnmNW9tLOrtPTVoUmrsz4=; b=nQKVNwGRg6jVk4ghtvHFs1 K5vJvXc2xzod9YdAZtxK1sRTVcb2JHEIQRGNrhqoWQ18Hz9xhfhHwKf8fZqdrTdN wmdtBalFsScM9EKva58zSOMrd5SZZVCDfgFEDTMvl2WPegnpbLatMtkg2pF4K+UI BEorQi6L+xKIzc+fxdxSI= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 9435AF99409 for <9fans@9fans.net>; Wed, 30 Dec 2020 01:20:35 -0500 (EST) (envelope-from cigar562hfsp952fans@icebubble.org) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 9F970CFAAAC; Wed, 30 Dec 2020 01:20:35 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1609309235; b=SVmQLGmp4noWcr7aqlI5rLUDlfPQEQogd/HztPGLVKPLr5KbFU tdLlsjWmqe6x4phaVik6Rtqe8vOs8lh8wy/4b2bN2qQYuLKH+i0AZCIdQ7ioiOSY /KNjWy3RVLwhIzqxFXGG/j5QbBG18SGBY7G2a0Dgeu7HxaI2pHawuVQ1RLy0ydGU /HyAgk66EHiMlHq4c9AcQ+GKWszLkexxRuP7bdPa60xjq9t0HLWS8jLYVpXv37NO 0050Eipjxho5ehxWx0lJPlLBkiVUbDFVGcxWdvAOzQn758KNcomNHX2Dwr2ww3BC meNXv1kIHbw1t5FfPj3ZTLkaojt4hsm67MMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=from:to:subject:date:message-id:mime-version :content-type; s=arcseal; t=1609309235; bh=4iTLepND1MhBtBOpH7ub3 oQZ7SZjstvRv4j113oz0fY=; b=An0yZjRSrkVm1w16ilAF0xApwCG8Q05wQsI/l +8AnEQ+CjxC6+zXVM49jkojyY2bA4fyUkm2pjL/fIDB0OAwRs1f2yQ1hPnxp+V/y MtxqWIR/kSyaPh5f73UWUqQVPjJLIQw+TP/4m0pf4i4vF5TXety1T4Lj4HXcIhUQ t3pKdz2pevyO7Oz0Q0k2B6zU1vNhqPqlhqBz+RhU+B0ZPZzqVhuDN/yOntEQpJh6 I53/Y424LHfHvF7Z+luv53rYE2KapY0bcw65yZVR2xgPttfnZnChv/Wt03gHVpQF WgSGbRF/hkN1/uSPv9OafmjyEPqLbAtMXlUQEm1FPZb1bRVHQ== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC none); dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=icebubble.org; iprev=pass smtp.remote-ip=174.136.103.210 (smtp.icebubble.org); spf=pass smtp.mailfrom=cigar562hfsp952fans@icebubble.org smtp.helo=icebubble.org; x-aligned-from=pass (Address match); x-ptr=fail smtp.helo=icebubble.org policy.ptr=smtp.icebubble.org; x-return-mx=pass header.domain=icebubble.org policy.is_org=yes (MX Records found: icebubble.org,icebubble.org); x-return-mx=pass smtp.domain=icebubble.org policy.is_org=yes (MX Records found: icebubble.org,icebubble.org); x-tls=pass smtp.version=TLSv1 smtp.cipher=DHE-RSA-AES256-SHA smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedujedrvddvvddgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuff fkgggtsehttddttddttddvnecuhfhrohhmpegtihhgrghrheeivdhhfhhsphelhedvfhgr nhhssehitggvsghusggslhgvrdhorhhgnecuggftrfgrthhtvghrnhepvedvheejgfefle egtdegieeuueduteegkeeujefgvddtgedvveehvdffleduffefnecukfhppedujeegrddu feeirddutdefrddvuddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinh gvthepudejgedrudefiedruddtfedrvddutddphhgvlhhopehitggvsghusggslhgvrdho rhhgpdhmrghilhhfrhhomhepoegtihhgrghrheeivdhhfhhsphelhedvfhgrnhhssehitg gvsghusggslhgvrdhorhhgqecuuffkkgfgpeegjeejtd X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (icebubble.org: 174.136.103.210 is authorized to use 'cigar562hfsp952fans@icebubble.org' in 'mfrom' identity (mechanism 'a' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="cigar562hfsp952fans@icebubble.org"; helo=icebubble.org; client-ip=174.136.103.210 Received: from icebubble.org (smtp.icebubble.org [174.136.103.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 30 Dec 2020 01:20:34 -0500 (EST) (envelope-from cigar562hfsp952fans@icebubble.org) Received: from petunia by icebubble.org with local-bsmtp (Exim 4.76) (envelope-from ) id 1kuUw4-0007oN-At for 9fans@9fans.net; Wed, 30 Dec 2020 06:26:16 +0000 Received: from rusat by cmarib.ramside with local (Exim 4.72) (envelope-from ) id 1kuOlb-0002Rj-NM for 9fans@9fans.net; Tue, 29 Dec 2020 23:51:03 +0000 From: cigar562hfsp952fans@icebubble.org To: 9fans <9fans@9fans.net> Date: Tue, 29 Dec 2020 23:50:53 +0000 Message-ID: <86tus46ujm.fsf@cmarib.ramside> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 23af5ef8-4a67-11eb-b15e-a78c702fc8c1 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZTY5YmIwZmNlMGYwZmZhZi1NNzc2ODY5MWRlYjk5ZjRiZDA2MDA1?= =?UTF-8?B?MmM4Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] Dual dialing/forking sessions to increase 9P throughput Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M7768691deb99f4bd060052c8:1:9eLmfUVYDr-CYO2dyXzT7rFS62nMiWC_rF7EJd4NBcY It's well-known that 9P has trouble transferring large files (high volume/high bandwith) over high-latency networks, such as the Internet. While sleeping, one night last week, I got an idea which might improve throughput: #define PSEUDOCODE ("this is psuedocode, not actual C") #define OJUMBO 1< IOUNIT) ? chan.bulksrv : chan.srv; return write_9p(srv.conn, buf, len); } main() { fd =3D open(filename, ORD|OWR|OJUMBO); read(fd, buf, n); write(fd, buf, n); celebrate_newfound_speed(); } The idea, basically, is to use an open flag (OJUMBO) to signal that two connections to the same server should be attempted. If a second connection can be established, it is used for normal 9P transactions, while the first connection is used for large ("jumbo") writes. Of course, this approach will only work if the server forks and accepts multiple connections. If the second connection cannot be established, open() falls back to its customary behavior (with, perhaps, a larger iosize, depending on the setting of OJUMBO). There is, however, a very simple reason why this approach won't really work: the fids for a file opened on one connection won't be recognized by the server on the other connection. I guess those are the kinds of details you miss when you engineer software in your sleep. :) The qids would probably still be the same, assuming the same server answers both connections. But even that can't be guaranteed. If it were possible to fork a 9P session off, onto another connection, something like this could work. But that introduces the possibility that messages could arrive at the server or client out-of-order, which would violate the 9P protocol. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te69bb0fce0f0ffaf-M77686= 91deb99f4bd060052c8 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription