From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pb-smtp20.pobox.com ([173.228.157.52]) by ewsd; Thu Apr 23 22:58:53 EDT 2020 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id A898CCFA1B for <9front@9front.org>; Thu, 23 Apr 2020 22:58:38 -0400 (EDT) (envelope-from unobe@cpan.org) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date :mime-version:content-type:content-transfer-encoding:subject:to :from:message-id; s=sasl; bh=FiVqXvOVSyIx8i53hd0BOknxD84=; b=Pao aCil5RDzKAMU17Enoyk5pDWnB96s5puu3bBxYa+UImUDbF2t+9GyDAaQQW9SHLNj Cf33n7NBm5e/pvyl+cWNv15ULfG60WZmzHjEPk/Bj1hiE+IUjvJ8cEfrK8508AQW AmzF+4rIC9KSD1ifaos/igQECODRQzboOCSD0TL8= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id A1658CFA1A for <9front@9front.org>; Thu, 23 Apr 2020 22:58:38 -0400 (EDT) (envelope-from unobe@cpan.org) Received: from [10.0.1.31] (unknown [137.25.138.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 11EB2CFA19 for <9front@9front.org>; Thu, 23 Apr 2020 22:58:36 -0400 (EDT) (envelope-from unobe@cpan.org) Date: Fri, 24 Apr 2020 02:58:33 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Slow cp, support for 9P2000.s To: 9front@9front.org From: Romano Message-ID: <2DE413B1-B05D-45EF-A08A-6F9F119FB745@cpan.org> X-Pobox-Relay-ID: 7DA86F26-85D7-11EA-90EE-B0405B776F7B-09620299!pb-smtp20.pobox.com List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: SSL over AJAX out-scaling NoSQL controller On my local wireless network at home between my work laptop and my rpi 4, I= tested using 'cp' while in drawterm=2E I ran drawterm -G on my rpi, and u= sed srvfs to export its file system=2E I ran drawterm on my work laptop, an= d mounted the exported filesystem as /n/pi=2E I then timed a 20MB file fro= m /mnt/term/root/ on my work laptop to the /n/pi: 0=2E20u 0=2E82s 70=2E14r= =2E 70s is atrociously slow for a local copy when compared to http or scp, = so I decided to look to see if this was known and if any work had been done= on this problem for 9p=2E I came across John Floren's thesis from 2010[1]= and his testing showed that increased latency over 9p significantly increa= sed the time files took to transfer=2E He also shows modifications to 'cp' = and 'exportfs' to allow for streams to make 9p have similar speeds as http= =2E=20 So considering Floren's research, I then decided to look at my latency on = my local network, and sure enough, I'm getting the following ping results (= for 144 packets transmitted, with 1 packet lost): round-trip min/avg/max/st= ddev =3D 2=2E273/15=2E264/497=2E869/44=2E018 ms =2E With an average latency= of 15ms, the time it took for 20MB file to transfer over 9p roughly match= es Floren's tests=2E I think that modifying 'cp' and 'exportfs' would resolve this problem and = will look at patching it per Floren's thesis to confirm=2E Would modifying= 'cp' and 'exportfs' to allow for streams be something others would be inte= rested in? Or has this already been discussed and the stream solution been = found wanting for some technical reason? The protocol, as mentioned in the = paper, is called 9P2000=2Es=2E I don't see that flavor listed here: http://= 9p=2Ecat-v=2Eorg/implementations [1] https://pdfs=2Esemanticscholar=2Eorg/9b47/22e251df61b4abbe0da61720e57a= c7b62f61=2Epdf