Re: [tor-relays] relays with dynamic IP - here Rasp2

2016-12-07 Thread Roman Mamedov
On Wed, 7 Dec 2016 11:13:54 +0200
"Rana"  wrote:

> But is it possible to tell Tor on which cores to run? I mean, install a 2nd
> instance of Tor and tell it to run on the two cores not used by the first
> instance?

The Linux kernel will sort it out automatically. Deciding optimally which
programs get to run on which cores is the kernel's job.

It's also possible to pin programs to specific cores using "schedtool", but
that's more of an advanced tuning trick: not something you should need as the
first thing you do, but you could look into that if you get to the point when
both of them use 100% CPU, and you want to micro-optimize things a bit further.

-- 
With respect,
Roman
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] relays with dynamic IP - here Rasp2

2016-12-07 Thread Roman Mamedov
On Wed, 7 Dec 2016 11:02:59 +0200
"Rana"  wrote:

> >> Wow nice bandwidth you are pushing through Paul! You mean two Raspi 2's 
> >> sharing an Internet connection, each relaying 27 Gbytes per day at 5.4 
> >> Mbit/s on the average?? Total 10.8 Mbit/s?? Or 2.7 Mbit/s each?
> > 
> > It is just 1 single Rasp2 - running 2 tor instances on 1 IP, details 
> > here 
> > https://gitweb.torproject.org/debian/tor.git/tree/debian/tor-instance-create.8.txt
> 
> Any specific reason you have for running 2 instances of Tor on the same Raspi 
> instead of one?

It has 4 cores, and a single instance of Tor cannot utilize all of them. It
only uses one core and maybe 20-30% at most of another.

Ideally you would run 3-4 Tor instances on a 4-core machine (if RAM allows),
but the maximum allowed by the Tor authority servers is 2 per IPv4.

-- 
With respect,
Roman
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] relays with dynamic IP - here Rasp2

2016-12-07 Thread Rana
>> Wow nice bandwidth you are pushing through Paul! You mean two Raspi 2's 
>> sharing an Internet connection, each relaying 27 Gbytes per day at 5.4 
>> Mbit/s on the average?? Total 10.8 Mbit/s?? Or 2.7 Mbit/s each?
> 
> It is just 1 single Rasp2 - running 2 tor instances on 1 IP, details 
> here 
> https://gitweb.torproject.org/debian/tor.git/tree/debian/tor-instance-create.8.txt

Any specific reason you have for running 2 instances of Tor on the same Raspi 
instead of one?

___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] relays with dynamic IP - here Rasp2

2016-12-06 Thread diffusae
Hi!

That's from today:

rx  | tx  |total|   avg. rate
 +-+-+---
 today  6,26 GiB |5,21 GiB |   11,47 GiB |  1,27 Mbit/s


It's just a "low" bandwidth, but this depends on the ISP. It's a RPi-B
plus and it can't handle more than around 2000 TCP connections
simultaneously unless you are not using the normal CPU speed (700 MHz).

If there would be more bandwidth, than it should be higher.

Regards,


On 06.12.2016 19:25, pa011 wrote:
> 
> 
> Am 06.12.2016 um 18:16 schrieb Rana:
>> -Original Message-
>> From: tor-relays [mailto:tor-relays-boun...@lists.torproject.org] On Behalf 
>> Of pa011
>> Sent: Tuesday, December 06, 2016 1:24 AM
>> To: tor-relays@lists.torproject.org
>> Subject: Re: [tor-relays] Unwarranted discrimination of relays with dynamic 
>> IP
>>
>>  
>>> I would like to hear about ONE Raspi Tor operator who was allowed by 
>>> DirAuths (or bwauths or whatever)  to come even near 1 mbit/s bandwidth 
>>> utilization
>>>
>>
>> let me tell: 
>> https://atlas.torproject.org/#details/AA44C4BE3C90DCAAC09E5CD26150710AAA80D58B
>> https://atlas.torproject.org/#details/CA9A5D5C4688F04EEC1AF810B0FD348109FA17FB
>>
>> are sharing the same dynamic IP on a Rasp2 -cut every 24 hours
>>
>>  day rx  | tx  |total|   avg. rate
>>  +-+-+---
>>  05.12.201627,20 GiB |   28,39 GiB |   55,59 GiB |5,40 Mbit/s
>>
>>
>> that is slight above 1 Mbit/s  :-)
>>
>>
>> Best regards
>>
>> Paul
>> 
>>
>> Wow nice bandwidth you are pushing through Paul! You mean two Raspi 2's 
>> sharing an Internet connection, each relaying 27 Gbytes per day at 5.4 
>> Mbit/s on the average?? Total 10.8 Mbit/s?? Or 2.7 Mbit/s each?
> 
> It is just 1 single Rasp2 - running 2 tor instances on 1 IP, details here 
> https://gitweb.torproject.org/debian/tor.git/tree/debian/tor-instance-create.8.txt
>>
>> Definitely refutes the previously claimed 1 Mbit/s Tor limit on Raspi, and 
>> means that Raspi has nothing to do with the ridiculously low utilization of 
>> my relay, just as I thought. As a matter of fact this means that whoever is 
>> NOT running a relay on a Raspi  (or two, or four of them) is wasting money, 
>> unless he has a computer lying about with nothing better to do.
>>
>> Also, what's the max memory and CPU utilization on your Raspi (I have read 
>> somewhere that Tor is only capable of utilizing 2 of the 4 CPU cores), and 
>> what kind of Internet connection do you have?
> 
> The Rasp2 is fairly unused, in memory and CPU - running on a German DSL - 
> giving tested max. 7Mbit/s upload
> 
> 
> top - 19:15:15 up 47 days,  1:11,  2 users,  load average: 0,37, 0,26, 0,24
> Tasks: 118 total,   2 running, 116 sleeping,   0 stopped,   0 zombie
> %Cpu(s): 10,3 us,  1,9 sy,  0,0 ni, 86,4 id,  0,0 wa,  0,0 hi,  1,4 si,  0,0 
> st
> KiB Mem:947756 total,   831368 used,   116388 free,   147964 buffers
> KiB Swap:   102396 total,0 used,   102396 free.   426736 cached Mem
> 
> 
> 
>>  BTW the $35 Raspi 3 has 33% more CPU power than your Raspi 2 and the same 
>> amount of memory.
> 
> There is no need for a Rasp3 under given condition - not even the Rasp2 is 
> getting warm :-)
>>
>> Rana
> 
>  
> ___
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
> 
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] relays with dynamic IP - here Rasp2

2016-12-06 Thread pa011


Am 06.12.2016 um 18:16 schrieb Rana:
> -Original Message-
> From: tor-relays [mailto:tor-relays-boun...@lists.torproject.org] On Behalf 
> Of pa011
> Sent: Tuesday, December 06, 2016 1:24 AM
> To: tor-relays@lists.torproject.org
> Subject: Re: [tor-relays] Unwarranted discrimination of relays with dynamic IP
> 
>  
>> I would like to hear about ONE Raspi Tor operator who was allowed by 
>> DirAuths (or bwauths or whatever)  to come even near 1 mbit/s bandwidth 
>> utilization
>>
> 
> let me tell: 
> https://atlas.torproject.org/#details/AA44C4BE3C90DCAAC09E5CD26150710AAA80D58B
> https://atlas.torproject.org/#details/CA9A5D5C4688F04EEC1AF810B0FD348109FA17FB
> 
> are sharing the same dynamic IP on a Rasp2 -cut every 24 hours
> 
>  day rx  | tx  |total|   avg. rate
>  +-+-+---
>  05.12.201627,20 GiB |   28,39 GiB |   55,59 GiB |5,40 Mbit/s
> 
> 
> that is slight above 1 Mbit/s  :-)
> 
> 
> Best regards
> 
> Paul
> 
> 
> Wow nice bandwidth you are pushing through Paul! You mean two Raspi 2's 
> sharing an Internet connection, each relaying 27 Gbytes per day at 5.4 Mbit/s 
> on the average?? Total 10.8 Mbit/s?? Or 2.7 Mbit/s each?

It is just 1 single Rasp2 - running 2 tor instances on 1 IP, details here 
https://gitweb.torproject.org/debian/tor.git/tree/debian/tor-instance-create.8.txt
> 
> Definitely refutes the previously claimed 1 Mbit/s Tor limit on Raspi, and 
> means that Raspi has nothing to do with the ridiculously low utilization of 
> my relay, just as I thought. As a matter of fact this means that whoever is 
> NOT running a relay on a Raspi  (or two, or four of them) is wasting money, 
> unless he has a computer lying about with nothing better to do.
> 
> Also, what's the max memory and CPU utilization on your Raspi (I have read 
> somewhere that Tor is only capable of utilizing 2 of the 4 CPU cores), and 
> what kind of Internet connection do you have?

The Rasp2 is fairly unused, in memory and CPU - running on a German DSL - 
giving tested max. 7Mbit/s upload


top - 19:15:15 up 47 days,  1:11,  2 users,  load average: 0,37, 0,26, 0,24
Tasks: 118 total,   2 running, 116 sleeping,   0 stopped,   0 zombie
%Cpu(s): 10,3 us,  1,9 sy,  0,0 ni, 86,4 id,  0,0 wa,  0,0 hi,  1,4 si,  0,0 st
KiB Mem:947756 total,   831368 used,   116388 free,   147964 buffers
KiB Swap:   102396 total,0 used,   102396 free.   426736 cached Mem



>  BTW the $35 Raspi 3 has 33% more CPU power than your Raspi 2 and the same 
> amount of memory.

There is no need for a Rasp3 under given condition - not even the Rasp2 is 
getting warm :-)
> 
> Rana

 
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays