[tor-relays] big spike in cpu usage

2013-04-05 Thread Owen Gunden
I have been running a non-exit tor relay for a few months now. It's on a metered VPS, so after some experimenting I found that I can afford about this much bandwidth: RelayBandwidthRate 250 KB RelayBandwidthBurst 500 KB This worked fine until recently. However, just today I noticed the machin

Re: [tor-relays] big spike in cpu usage

2013-04-06 Thread Moritz Bartl
On 05.04.2013 19:50, Owen Gunden wrote: > Digging deeper, I've seen these messages pop up from time to time over > the last 30 days or so, but not consistently, and I've never noticed the > cpu pegged (but it could have happened, I don't use the machine that often). In most cases, Tor spits out th

Re: [tor-relays] big spike in cpu usage

2013-04-06 Thread mick
On Fri, 5 Apr 2013 13:50:29 -0400 Owen Gunden allegedly wrote: > I have been running a non-exit tor relay for a few months now. It's > on a metered VPS, so after some experimenting I found that I can > afford about this much bandwidth: > > RelayBandwidthRate 250 KB > RelayBandwidthBurst 500

Re: [tor-relays] big spike in cpu usage

2013-04-06 Thread Roman Mamedov
On Fri, 5 Apr 2013 13:50:29 -0400 Owen Gunden wrote: > This worked fine until recently. However, just today I noticed the machine > was sluggish, and sure enough tor was using 99% cpu and dumping these > messages to syslog: You can check if your host has throttled/limited your total CPU usage.

Re: [tor-relays] big spike in cpu usage

2013-04-06 Thread N Owen Gunden
On Sat, Apr 06, 2013 at 09:33:11PM +0600, Roman Mamedov wrote: > You can check if your host has throttled/limited your total CPU usage. > > I like this completely unscientific quick test that doesn't require > installing any extra software: > > dd if=/dev/zero bs=1M count=1024 | md5sum > > Sho

Re: [tor-relays] big spike in cpu usage

2013-04-06 Thread N Owen Gunden
On Sun, Apr 07, 2013 at 02:12:22AM -0400, N Owen Gunden wrote: > [...] Also: # egrep -v "^#|^$" /etc/tor/torrc SocksPort 0 # what port to open for local application connections SocksListenAddress 127.0.0.1 # accept connections only from localhost Log notice syslog ORPort 9001 Address X Ni

Re: [tor-relays] big spike in cpu usage

2013-04-07 Thread Miłosz Gaczkowski
On 07/04/2013 08:12, N Owen Gunden wrote: Does tor traffic generally fluctuate a lot with time of day? I'm pretty new to tor, but in my experience it does fluctuate quite a lot. With my settings of: RelayBandwidthRate 1536 KB RelayBandwidthBurst 2048 KB it tends to switch between two "modes

Re: [tor-relays] big spike in cpu usage

2013-04-07 Thread Andreas Krey
On Sun, 07 Apr 2013 12:47:05 +, Mi??osz Gaczkowski wrote: > On 07/04/2013 08:12, N Owen Gunden wrote: > >Does tor traffic generally fluctuate a lot with time of day? > > I'm pretty new to tor, but in my experience it does fluctuate quite a > lot. With my settings of: > > RelayBandwidthRate 1

Re: [tor-relays] big spike in cpu usage

2013-04-07 Thread Moritz Bartl
On 07.04.2013 19:08, Andreas Krey wrote: > I use 'RelayBandwidthBurst 1000 MB', as the point of my RelayBandwidthRate > is to keep below the traffic limit of my VPS. I have no problem of > accumulating lots of unused bandwith for later bursts (which then can > go over the BandwithRate for some time

Re: [tor-relays] big spike in cpu usage

2013-04-07 Thread Andreas Krey
On Sun, 07 Apr 2013 19:42:25 +, Moritz Bartl wrote: ... > 1000 MB (per second!) is not a useful setting. No, its not 'per second'. It is the amount of allowed traffic that can be saved up while not hitting the BandwidthRate to be used up when the BandwidthRate is exceeded. Using up that saving

Re: [tor-relays] big spike in cpu usage

2013-04-07 Thread Miłosz Gaczkowski
On 07/04/2013 20:25, Andreas Krey wrote: No, its not 'per second'. [...] Oh, wow, looks like I completely misunderstood what RelayBandwidthBurst does. I assumed it's a burst rate that would be occasionally allowed in peak times, not a "credit limit". If you're sure your description is correct,

Re: [tor-relays] big spike in cpu usage

2013-04-07 Thread mick
On Sun, 07 Apr 2013 21:35:36 +0200 Miłosz Gaczkowski allegedly wrote: > On 07/04/2013 20:25, Andreas Krey wrote: > > No, its not 'per second'. [...] > Oh, wow, looks like I completely misunderstood what > RelayBandwidthBurst does. I assumed it's a burst rate that would be > occasionally allowed i

Re: [tor-relays] big spike in cpu usage

2013-04-07 Thread Moritz Bartl
On 07.04.2013 20:25, Andreas Krey wrote: > No, its not 'per second'. It is the amount of allowed traffic that can > be saved up while not hitting the BandwidthRate to be used up when the > BandwidthRate is exceeded. Wow. Thanks. All these years I completely misunderstood Tor's Burst settings. Sad

Re: [tor-relays] big spike in cpu usage

2013-04-08 Thread Sebastian Hahn
On Apr 8, 2013, at 7:52 AM, Moritz Bartl wrote: > On 07.04.2013 20:25, Andreas Krey wrote: >> No, its not 'per second'. It is the amount of allowed traffic that can >> be saved up while not hitting the BandwidthRate to be used up when the >> BandwidthRate is exceeded. > > Wow. Thanks. All these

Re: [tor-relays] big spike in cpu usage

2013-04-08 Thread Andreas Krey
On Mon, 08 Apr 2013 08:47:56 +, Sebastian Hahn wrote: > ... > Now, it's entirely possible I'm missing something big here; or that the > code changed and now does something different; or that it used to do > something different, etc. Andreas, can you please explain more? At least the original

Re: [tor-relays] big spike in cpu usage

2013-04-12 Thread Matt Joyce
On 08/04/13 18:41, Andreas Krey wrote: > On Mon, 08 Apr 2013 08:47:56 +, Sebastian Hahn wrote: > ... >> Now, it's entirely possible I'm missing something big here; or that the >> code changed and now does something different; or that it used to do >> something different, etc. Andreas, can you p