Network Bandwidth Fine Tuning

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I ran the speedtest on my VPS which gave the results below: root$ speedtest-cli Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from ProServe B.V. (81.4.111.251)... Selecting best server based on latency... Hosted by NFOrce Entertainment B.V. (Amsterdam) [0.00 km]: 4.817 ms Testing download speed........................................ Download: 711.10 Mbit/s Testing upload speed.................................................. Upload: 449.12 Mbit/s My Bandwidth results are averaging around 1.5mbs to 3.0mbs via the Tor Globe Stats page. Can someone tell me how to increase my network bandwidth based on what I am capable of uploading and downloading. I am allocated 2TB of bandwidth per month from my VPS Right now the Advertised Bandwidth is 1.7MB/s and when I scroll down further on the page in the Bandwidth section my "mean written bytes" are 226.15 kb/s and my "mean read bytes" are 227.1 kbs/s I see several sites averaging 50MB/s-60MB/s on the Top Ten Relays list -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (MingW32) iQIcBAEBAgAGBQJW0iFwAAoJEH1gNwhiMDZuT60P/jt6YmdvtjR48zhe/fQ2sx4z Uw76B+vjonWqKOaCqyJFBM/buFoXUixTJJ6ksj/KjiVVEdTU4/7WhbwwYTUWGYyc tYhB7nWCxdCNKPy4YMNUG3r+pIaMp1gF+k6wfnHHU+Pqq0H9tTMPNS0Ey44fM0bN BaX2NjuDYpOXDkmKO8xAzKv+KQr9a6pR/DBgC73LniqiZejV3iyMvof7/hypvltq h3QJoFZ8DYjCgk+W0qEWhjCky5RFze1f8ihFsVaM7U8WH6hGcULgXAYZl8Q/MAmN 4jlSogFDSh/e/+0DqVyrkgpyxIPZ43/4y2sn2WYfR8egeocVi6NO9VHtiiygUtcn jOAzaGROGtW6oXNQtGvfeJRwAEsoPmfHF09TJANRB++/KjjSm+cM/ALT1O4b3t5U ZMC5rkoJOUX2jyo3kZpBpobLOW012BnnbGyVV5KNM/BpVkM1sIxOnFhoSfYWij5c QziOvk5wtDXFta2ow12lgruW9wT2moier1WxAxib6u9V05jxckXrpmb3V9yvWBOz SzXh05lh7pEuAfPb2RQXKjGjmkqCweOI2cGhu4B3vDFNKRBhjdXYFZP7/aFe4DRh +J4su48cYVWcnav0c14/27oHxeoYUD8NQV2gBcs7/dCSa1iWHV+PORjBSe+l+IGG R2qL40EDeIgC9TVJqriD =c73J -----END PGP SIGNATURE-----

On 28 Feb 2016, at 02:14, stealth@nym.mixmin.net wrote:
Signed PGP part I ran the speedtest on my VPS which gave the results below:
root$ speedtest-cli Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from ProServe B.V. (81.4.111.251)... Selecting best server based on latency... Hosted by NFOrce Entertainment B.V. (Amsterdam) [0.00 km]: 4.817 ms Testing download speed........................................ Download: 711.10 Mbit/s Testing upload speed.................................................. Upload: 449.12 Mbit/s
My Bandwidth results are averaging around 1.5mbs to 3.0mbs via the Tor Globe Stats page.
Can someone tell me how to increase my network bandwidth based on what I am capable of uploading and downloading. I am allocated 2TB of bandwidth per month from my VPS
What processor is on your VPS? How fast is it? Does it have AES-NI? Is your OpenSSL compiled optimised for your processor and for the encryption that Tor uses? How much RAM does your VPS have? Have you read the torservers.net Tor tuning advice? (And similar articles?) Tim Tim Wilson-Brown (teor) teor2345 at gmail dot com PGP 968F094B teor at blah dot im OTR CAD08081 9755866D 89E2A06F E3558B7F B5A9D14F

I ran the speedtest on my VPS which gave the results below: [...] My Bandwidth results are averaging around 1.5mbs to 3.0mbs via the Tor Globe Stats page.
Can someone tell me how to increase my network bandwidth based on what I am capable of uploading and downloading. I am allocated 2TB of bandwidth per month from my VPS
According to https://atlas.torproject.org/#details/A290A9E71ADFC2FB1C80E64EF851A4B9054501... , the relay has only been around for some short time and is still building up speed; it is currently at 4.5 MByte/s advertised bandwidth. It can take up to roughly a month before a new relay reaches its 'final' throughput levels. See https://blog.torproject.org/blog/lifecycle-of-a-new-relay for details. 4.5 MByte/s per direction means that it will reach 2TB within less than three days. You don't want that; you should actually throttle your relay to be around for some more days. I would suggest something like 800 KB/s and a cap on total amount of data per month, which means it will be pushing data for ~15 days per month. RelayBandwidthRate 800KB AccountingMax 2000GB AccountingRule sum -- Moritz Bartl https://www.torservers.net/

Am 29.02.2016 um 00:15 schrieb Moritz Bartl:
It can take up to roughly a month before a new relay reaches its 'final' throughput levels. See https://blog.torproject.org/blog/lifecycle-of-a-new-relay for details.
I am surprised as well because my middle relay has quite a low traffic, at least not as much a I expect. https://atlas.torproject.org/#details/7A32C9519D80CA458FC8B034A28F5F6815649A... Advertised Bandwidth: 7.74 MB/s but it should do more It is quite a small box but always has free memory left: niehaus@rocket:~$ vmstat procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 185600 93328 4112 73220 0 1 11 12 61 21 5 4 91 0 0 The highes percentage of CPU use in top I have seen is about 15%, there is quite a lot idle time left. AES is supported in hardware, network speed is okay; niehaus@rocket:~$ bin/speedtest-cli Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from arsys.es (82.223.21.74)... Selecting best server based on latency... Hosted by Vodafone Spain (Madrid) [0.00 km]: 7.529 ms Testing download speed........................................ Download: 385.85 Mbit/s Testing upload speed.................................................. Upload: 242.09 Mbit/s niehaus@rocket:~$ Anything I can do to donate more bandwith? Any more information you need? -- Sebastian Niehaus Am Freibad West 80 38440 Wolfsburg

Maybe this article from the Tor FAQ will help: http://archives.seul.org/or/relays/Aug-2010/msg00034.html According to the article, Tor can only get 100Mbps per CPU core, and Tor doesn't use any more than 2 cores because it's not fully multithreaded. You can only run 2 instances of Tor on the same IP address, which means a maximum of 800Mbps, if you do it right. The answer from this link is pretty straightforward on how to run multiple instances: https://stackoverflow.com/questions/14321214/how-to-run-multiple-tor-process... Just make sure you correctly set the MyFamily option in torrc, otherwise a client could (unlikely but possibly) use both of your instances in the same circuit. On Mar 2, 2016 7:56 AM, "Sebastian Niehaus" <niehaus@web.de> wrote:
Am 29.02.2016 um 00:15 schrieb Moritz Bartl:
It can take up to roughly a month before a new relay reaches its 'final' throughput levels. See https://blog.torproject.org/blog/lifecycle-of-a-new-relay for details.
I am surprised as well because my middle relay has quite a low traffic, at least not as much a I expect.
https://atlas.torproject.org/#details/7A32C9519D80CA458FC8B034A28F5F6815649A...
Advertised Bandwidth: 7.74 MB/s but it should do more
It is quite a small box but always has free memory left:
niehaus@rocket:~$ vmstat procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 185600 93328 4112 73220 0 1 11 12 61 21 5 4 91 0 0
The highes percentage of CPU use in top I have seen is about 15%, there is quite a lot idle time left. AES is supported in hardware, network speed is okay;
niehaus@rocket:~$ bin/speedtest-cli Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from arsys.es (82.223.21.74)... Selecting best server based on latency... Hosted by Vodafone Spain (Madrid) [0.00 km]: 7.529 ms Testing download speed........................................ Download: 385.85 Mbit/s Testing upload speed.................................................. Upload: 242.09 Mbit/s niehaus@rocket:~$
Anything I can do to donate more bandwith? Any more information you need?
-- Sebastian Niehaus Am Freibad West 80 38440 Wolfsburg
_______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays

Am 02.03.2016 um 15:25 schrieb Tristan:
Maybe this article from the Tor FAQ will help: http://archives.seul.org/or/relays/Aug-2010/msg00034.html
Thanks.
According to the article, Tor can only get 100Mbps per CPU core, and Tor doesn't use any more than 2 cores because it's not fully multithreaded.
I only have one core (on a vmware virtual server) but I am far from 100 Mbps: niehaus@rocket:~$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz stepping : 0 microcode : 0x2b cpu MHz : 1997.686 cache size : 35840 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm ida arat epb pln pts dtherm fsgsbase smep bogomips : 3995.37 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
You can only run 2 instances of Tor on the same IP address, which means a maximum of 800Mbps, if you do it right.
I have only one instance but with one core it probably is pointless to run more instances ... Sebastian

On 2 Mar 2016, at 15:25, Tristan <supersluether@gmail.com> wrote:
Just make sure you correctly set the MyFamily option in torrc, otherwise a client could (unlikely but possibly) use both of your instances in the same circuit.
Clients also check to see if the IP addresses of the nodes in a circuit are on different /16s. (But it's still good to set MyFamily so it's clear which relays are controlled by the same person.) Tim Tim Wilson-Brown (teor) teor2345 at gmail dot com PGP 968F094B teor at blah dot im OTR CAD08081 9755866D 89E2A06F E3558B7F B5A9D14F

My Bandwidth results are averaging around 1.5mbs to 3.0mbs via the Tor Globe Stats page.
Can someone tell me how to increase my network bandwidth based on what I am capable of uploading and downloading. I am allocated 2TB of bandwidth per month from my VPS
Right now the Advertised Bandwidth is 1.7MB/s and when I scroll down further on the page in the Bandwidth section my "mean written bytes" are 226.15 kb/s and my "mean read bytes" are 227.1 kbs/s
I see several sites averaging 50MB/s-60MB/s on the Top Ten Relays list
If your VPS is only allowed to do 2TB/month, than you won't need any tuning if you are already doing 1.7MB/s.

nusenu:
My Bandwidth results are averaging around 1.5mbs to 3.0mbs via the Tor Globe Stats page.
Can someone tell me how to increase my network bandwidth based on what I am capable of uploading and downloading. I am allocated 2TB of bandwidth per month from my VPS
Right now the Advertised Bandwidth is 1.7MB/s and when I scroll down further on the page in the Bandwidth section my "mean written bytes" are 226.15 kb/s and my "mean read bytes" are 227.1 kbs/s
I see several sites averaging 50MB/s-60MB/s on the Top Ten Relays list
If your VPS is only allowed to do 2TB/month, than you won't need any tuning if you are already doing 1.7MB/s.
Sorry I did not read carefully enough (1.7 *advertised* bw).
participants (6)
-
Moritz Bartl
-
nusenu
-
Sebastian Niehaus
-
stealth@nym.mixmin.net
-
Tim Wilson-Brown - teor
-
Tristan