Re: [9fans] USB3 1Gb ethernet card working on 9legacy (rpi 4)

2022-08-03 Thread adr

On Wed, 3 Aug 2022, Richard Miller wrote:

9legacy should always have up to date patches for the Raspberry Pi, and
the 9legacy SD card image will usually be fresher than the 9pi.img.gz
image in contrib/miller. The only value now in the 9pi image is for
historians: I've tried to conserve the metadata so it's possible to see
when source files were most recently changed. On 9legacy, patches are
re-applied when a distribution image is made, so mtime information is
less informative.

I will also continue to maintain the Pi kernel source in contrib/miller/9/bcm,
where a more complete history can be seen:


Ok, thanks Richard.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T668643d11149fab4-M92fb37694c2857c72317a3f2
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] USB3 1Gb ethernet card working on 9legacy (rpi 4)

2022-08-03 Thread adr

On Wed, 3 Aug 2022, Richard Miller wrote:

That was a typo, is almost five times slower (~80% slower). Just
to be clear, it is really worst!


Unless your "small arm linux machine" is a raspberry pi, you are changing
too many variables to make a meaningful comparison.  Benchmarking i/o across
the internet will also introduce enough variation to suggest an experimental
sample size of more than one attempt.

An interesting set of experiments might be to run both linux and plan 9 on
the pi4, try the built-in ether adapter and the usb dongle, and try fetching
both from http:// and https:// (to see how much of the variation is due to
tls decode speed).


Reading my mail it seems like this was something I suddenly was
aware of. It is not, I've been trying to understand what is wrong
for some time now. The pi4 saturates my fiber in linux, there is
no problem with the hardware. But note that the linux machine is
sending and receiving packages through the plan9 machine. If there
was a hardware problem in the pi4 (or the usb adapter), the linux
machine's connection would be affected.

And yes, I have made tests with different sites. As I said before
the archlinux servers usually let me saturate my bandwidth, so they
have become a good target for me.

The thing this setting is telling me is that the usb and ethernet
drivers are working reasonably good (again, at least for my
bandwidth).

I don't know any reliable server with good bandwidth serving without
tls, I could set an http server on the linux machine and make tests,
but I modified the example at

https://golangdocs.com/golang-download-files

and there is no real difference between the native and go tls implementations:

; time ./gget -o /dev/null 
https://arch.mirror.constant.com/images/v20220801.71902/Arch-Linux-x86_64-basic-20220801.71902.qcow2
Downloaded a file /dev/null with size 513671168
2.25u 1.45s 65.51r   ./gget -o /dev/null 
https://arch.mirror.constant.com/images/v20220801.71902/Arch-Linux-x86_64-basic-20220801.71902.qcow2

; time hget -o /dev/null 
https://arch.mirror.constant.com/images/v20220801.71902/Arch-Linux-x86_64-basic-20220801.71902.qcow2
couldn't set mtime: permission denied
9.27u 35.02s 64.62r  hget -o /dev/null 
https://arch.mirror.constant.com/images/v20220801.71902/Arch-Linux-x86_64-basic-20220801.71902.qcow2

With linux (again, through the plan9 machine) I get:
$ time ./gget -o /dev/null 
https://arch.mirror.constant.com/images/v20220801.71902/Arch-Linux-x86_64-basic-20220801.71902.qcow2
Downloaded a file /dev/null with size 513671168

real0m48.624s
user0m14.265s
sys 0m21.648s

So now It is only about 25% slower in plan9, so yes, the factors are variable.

I found this thread in the list's archives:

https://marc.info/?t=14557952507=1=2

Maybe is related.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T668643d11149fab4-Mf2898ed1a403f2159dda8d9a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] USB3 1Gb ethernet card working on 9legacy (rpi 4)

2022-08-03 Thread Richard Miller
> By the way Richard, should I take the last rpi image at 9legacy as
> the more recent with your work? Are you going to abandon
> https://plan9.io/sources/contrib/miller/?

9legacy should always have up to date patches for the Raspberry Pi, and
the 9legacy SD card image will usually be fresher than the 9pi.img.gz
image in contrib/miller. The only value now in the 9pi image is for
historians: I've tried to conserve the metadata so it's possible to see
when source files were most recently changed. On 9legacy, patches are
re-applied when a distribution image is made, so mtime information is
less informative.

I will also continue to maintain the Pi kernel source in contrib/miller/9/bcm,
where a more complete history can be seen:

term% srv -n 9p.io sources
post...
term% history /n/sources/contrib/miller/9/bcm/etherusb.c
Aug  3 13:16:49 BST 2022 /n/sources/contrib/miller/9/bcm/etherusb.c 8872 
[miller]
Jul 18 13:26:35 BST 2019 
/n/sourcesdump/2022/0803/contrib/miller/9/bcm/etherusb.c  [miller]
Apr  4 17:04:17 BST 2018 
/n/sourcesdump/2019/0718/contrib/miller/9/bcm/etherusb.c 8837 [bootes]
Mar  4 21:18:17 GMT 2016 
/n/sourcesdump/2018/0404/contrib/miller/9/bcm/etherusb.c 7878 [bootes]
Jul  2 09:00:28 BST 2015 
/n/sourcesdump/2016/0304/contrib/miller/9/bcm/etherusb.c 7838 [bootes]


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T668643d11149fab4-M67bb6396df945caf4d9c54df
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] USB3 1Gb ethernet card working on 9legacy (rpi 4)

2022-08-03 Thread Richard Miller
>> See the difference? That's a little more than 19Mb/s, some 2MiB/s almost 50% 
>> slower.
> 
> That was a typo, is almost five times slower (~80% slower). Just
> to be clear, it is really worst!

Unless your "small arm linux machine" is a raspberry pi, you are changing
too many variables to make a meaningful comparison.  Benchmarking i/o across
the internet will also introduce enough variation to suggest an experimental
sample size of more than one attempt.

An interesting set of experiments might be to run both linux and plan 9 on
the pi4, try the built-in ether adapter and the usb dongle, and try fetching
both from http:// and https:// (to see how much of the variation is due to
tls decode speed).


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T668643d11149fab4-M421b620beeed0f3199881e28
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription