Page MenuHomePhabricator

Try out gnirehtet for reverse tethering
Closed, ResolvedPublic

Description

One of the problems we have today is to try out running you phone from your local computer with a set connectivity. For the server version we will use WebPageReplay and a dedicated wifi but we should also have a way of testing it locally.

https://github.com/Genymobile/gnirehtet should make it possible to use the connectivity from the computer instead and then we can limit it much easier.

Event Timeline

I tried this today from my Mac. The rust version didn't work for me (I got https://github.com/Genymobile/gnirehtet/issues/136). Switching to the Java version worked fine.

I've tested by desktop -> usb -> phone, disabling the wifi on my phone, using Throttle to try out different connectivity. I could then see that I got different firstPaint by having different connectivity. I think the metrics was quite unstable though, but let me try a couple of runs using the same script as T215489 and see if this is good enough to spot difference between logged in vs hot cache users.

Tried and it was at least so stable so we can measure difference between a logged in user vs a user with a cold cache. I could confirm on a real phone that on a slow connection up:768 down:1600 rtt:150 the first paint happens faster for a logged in user than for a user with a cold cache.