WAN speed testing

  • SNBForums will be unavailable for about 2 hours TODAY 23 January starting around 2PM EDT for a server changeover.

    All accounts and posts will be preserved.
  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

Marko Polo

Senior Member
Hi,
is there any builtin speed testing tool in Merlin? I need strong evidences in my struggle with ISP.
Or my only choice is Entware and iperf?
 
Last edited:

JDB

Very Senior Member

JDB

Very Senior Member
It has a flag which makes it not pre-load the RAM with upload data. Just run it and see what the options are, it should be obvious.


Sent from my iPhone using Tapatalk
 

joegreat

Very Senior Member
what do you mean?
This command line option:
--no-pre-allocate Do not pre allocate upload data. Pre allocation is
enabled by default to improve upload performance. To
support systems with insufficient memory, use this
option to avoid a MemoryError
 

Marko Polo

Senior Member
This command line option:
Even with this option I get "memory insufficient error":

Code:
[email protected]:/tmp/home/root# speedtest-cli --no-pre-allocate
Retrieving speedtest.net configuration...
Testing from XXXXXXXXXX (XX.XXX.XXX.XXX)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
XXXXXXXXXXXXXXXXXX [0.52 km]: 5.4080000000000004 ms
Testing download speed................................................................................
Download: 47.58 Mbit/s
Testing upload speed.............................................................................Exception in thread Thread-85:

Traceback (most recent call last):
  File "/opt/lib/python3.6/site-packages/speedtest.py", line 766, in pre_allocate
    (chars * multiplier)[0:int(self.length) - 9]
MemoryError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/threading.py", line 916, in _bootstrap_inner
  File "/opt/lib/python3.6/site-packages/speedtest.py", line 823, in run
    f = self._opener(request)
  File "/request.py", line 526, in open
  File "/request.py", line 544, in _open
  File "/request.py", line 504, in _call_chain
  File "/opt/lib/python3.6/site-packages/speedtest.py", line 464, in http_open
    req
  File "/request.py", line 1318, in do_open
  File "/client.py", line 1239, in request
  File "/client.py", line 1285, in _send_request
  File "/client.py", line 1234, in endheaders
  File "/client.py", line 1055, in _send_output
  File "/client.py", line 1010, in _read_readable
  File "/opt/lib/python3.6/site-packages/speedtest.py", line 784, in read
    chunk = self.data.read(n)
  File "/opt/lib/python3.6/site-packages/speedtest.py", line 778, in data
    self.pre_allocate()
  File "/opt/lib/python3.6/site-packages/speedtest.py", line 771, in pre_allocate
    'Insufficient memory to pre-allocate upload data. Please '
speedtest.SpeedtestCLIError: Insufficient memory to pre-allocate upload data. Please use --no-pre-allocate
 

JDB

Very Senior Member
Looks like it’s not recognising the option you passed in, not sure why.


Sent from my iPhone using Tapatalk
 

jpclarke

Regular Contributor
Hi, I combine the speedtest cli with Fresh_JR’s qos script to regularly update the manual bandwidth figures regularly and get the best of my broadband speed.

I run the speedtest script on a raspberry pi which logs the speeds to a text file on the router, a script then picks these values up and updates the nvram values.

Thanks
 

RMerlin

Asuswrt-Merlin dev
There used to be one in the Broadcom SDK that Asus kept disabled by default, but they eventually removed it because it was proprietary and not GPL.
 

Adamm

Part of the Furniture
A pretty generic way to test download speeds is downloading a test file from a CDN provider;

Code:
wget -O /dev/null http://cachefly.cachefly.net/100mb.test
 

Sinner

Senior Member
I was trying to get that speedtest cli into notepad++ but didn't seem like I was copying it correctly. will keep trying id like to see how that works
 

Squirrel_UK

New Around Here
I've just got my new RT-AC86U and am trying to use speedtest-cli and am also getting the same error, even with the--no-pre-allocate command line argument.

Code:
[email protected]:/tmp/home/root# speedtest --no-pre-allocate
Retrieving speedtest.net configuration...
Testing from XXXXXXXXXXXXX (XXX.XXX.XXX.XXX)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by XXXXXXXXXXXXX [44.67 km]: 29.283 ms
Testing download speed................................................................................
Download: 36.45 Mbit/s
Testing upload speed.............................Exception in thread Thread-62:
Traceback (most recent call last):
  File "/opt/lib/python2.7/threading.py", line 801, in __bootstrap_inner
  File "/opt/lib/python2.7/site-packages/speedtest.py", line 823, in run
    f = self._opener(request)
  File "/opt/lib/python2.7/urllib2.py", line 429, in open
  File "/opt/lib/python2.7/urllib2.py", line 447, in _open
  File "/opt/lib/python2.7/urllib2.py", line 407, in _call_chain
  File "/opt/lib/python2.7/site-packages/speedtest.py", line 464, in http_open
    req
  File "/opt/lib/python2.7/urllib2.py", line 1195, in do_open
  File "/opt/lib/python2.7/httplib.py", line 1042, in request
  File "/opt/lib/python2.7/httplib.py", line 1082, in _send_request
  File "/opt/lib/python2.7/httplib.py", line 1038, in endheaders
  File "/opt/lib/python2.7/httplib.py", line 886, in _send_output
  File "/opt/lib/python2.7/httplib.py", line 853, in send
  File "/opt/lib/python2.7/site-packages/speedtest.py", line 784, in read
    chunk = self.data.read(n)
  File "/opt/lib/python2.7/site-packages/speedtest.py", line 778, in data
    self.pre_allocate()
  File "/opt/lib/python2.7/site-packages/speedtest.py", line 771, in pre_allocate
    'Insufficient memory to pre-allocate upload data. Please '
SpeedtestCLIError: Insufficient memory to pre-allocate upload data. Please use --no-pre-allocate
There's a whole load more thread exceptions and finally there's this:

Code:
Traceback (most recent call last):
  File "/opt/bin/speedtest", line 11, in <module>
    sys.exit(main())
  File "/opt/lib/python2.7/site-packages/speedtest.py", line 1832, in main
    shell()
  File "/opt/lib/python2.7/site-packages/speedtest.py", line 1802, in shell
    speedtest.upload(callback=callback, pre_allocate=args.pre_allocate)
  File "/opt/lib/python2.7/site-packages/speedtest.py", line 1523, in upload
    self.results.bytes_sent = sum(finished)
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
Has anyone got any ideas on how I can get it to work?

Cheers!
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top