Open bpalob opened 3 years ago
The current implementation has these sizes hardcoded:
I can make these configurable I guess, but it's not time-based, though it should meet your requirement (extending test time)
Hi Maddie Thanks for fast reply. I think I can work with that. Maybe combined with a time out. It could be complicated for clients with slow connections it the payload is too big.
Just got back home and tried to edit the defs.go increasing the download-Chunks number, then rebuilt... test still takes the same time, like 32-33 seconds.
Sorry, been busy IRL. There might be a timeout somewhere in the code, I'll have to look later.
@bpalob I've pushed a commit dc6eb0f with three new options:
--duration
for setting test duration, it was hardcoded 15s, I think that's why you always get ~30s--chunks
for download chunks--upload-size
for upload payload size in KiBCould you help to see if it meets your need? Thanks.
Hi Maddie,
wow, thanks a lot!!!
After initial testing, it looks as follows:
I do still think though this to be a "work-around", there must be an underlaying cause. Maybe with my line. It´s weird that the rampup takes that long. I do see similar behaviour on the web based interface. I need to dramatically increase the test duration to get to the max speeds.
Observation: The speeds in DL first go up to 3 mpbs pretty fast. Then first they start increasing by approx. 1mbps per second, in the 5 range by 1mbps per 2 seconds. From approx. 580mbps upwards it takes up to 5 seconds per mbps, but it keeps gooing up and up. Above 600mbps it keeps going, but much slower. I made a test with 180 sec duration and get up to 610mbps. The Upload I have the feeling that after 15 seconds it no more uploads anything but keeps the test going, e.g. dropping the DL speeds constantly. It is at 62mbps after 15 seconds, at the End of the 180 seconds it´s down to 5 mbps.This would make sense... in 15 seconds it will upload short over 100MB at 60mbps. 100MB at 5mbps would take about the 180 seconds...
To proof the point, I doubled the duration to 30 seconds and the UL speed dropped from 62 to 31mbps. Same thing if I set the UL size to 500MB (488281 KiB).
./librespeed-cli --local-json server.json --server 1 --duration 30 --upload-size 488281
BTW, I just cloned the repo with "git clone" and ran the built script. Hope I didn´t miss anything ;-)
Thank you Maddie !
Hmm... if the current payload is being uploaded completely, it should just start from the beginning and upload it again (shouldn't hang), or else the default value (1024 KiB) wouldn't work at all since it might just get uploaded in a blink with high-speed connections.
The speed build-up process you've described seems to be a problem with the line, either with your local connection or the server. Not really sure which end though.
Good day,
I have a server which takes apparently longer to ramp up to max speeds. I played with the web interface, and adjusting the max test time and setting auto to false, I get the expected results. While trying to do it now by CLI, I couldn´t find an option to set the test duration. Would it be possible to do so? BTW, the server behaves the same with IPerf. Am not sure why it takes it so long... will also work on that End.
Thanks.