Delivery-Date: Mon, 12 Jan 2015 02:27:25 -0500
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham
	version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id 77ECF1E087D
	for <archiver@seul.org>; Mon, 12 Jan 2015 02:27:23 -0500 (EST)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 37AA73251D;
	Mon, 12 Jan 2015 07:27:20 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id B2C2532505
 for <tor-talk@lists.torproject.org>; Mon, 12 Jan 2015 07:27:07 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at 
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id WkL-vsXlr6ro for <tor-talk@lists.torproject.org>;
 Mon, 12 Jan 2015 07:27:07 +0000 (UTC)
Received: from mail.ufficyo.com
 (host173-93-static.228-95-b.business.telecomitalia.it [95.228.93.173])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by eugeni.torproject.org (Postfix) with ESMTPS id 72D41322B2
 for <tor-talk@lists.torproject.org>; Mon, 12 Jan 2015 07:27:07 +0000 (UTC)
X-Greylist: delayed 499 seconds by postgrey-1.34 at eugeni;
 Mon, 12 Jan 2015 07:27:07 UTC
Received: from localhost (localhost [127.0.0.1])
 by mail.ufficyo.com (Postfix) with ESMTP id 96A90C01C3
 for <tor-talk@lists.torproject.org>; Mon, 12 Jan 2015 08:18:41 +0100 (CET)
Received: from mail.ufficyo.com ([127.0.0.1])
 by localhost (mail.ufficyo.com [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id YdVZ7OjWSX68 for <tor-talk@lists.torproject.org>;
 Mon, 12 Jan 2015 08:18:36 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by mail.ufficyo.com (Postfix) with ESMTP id 294CEC01BA
 for <tor-talk@lists.torproject.org>; Mon, 12 Jan 2015 08:18:36 +0100 (CET)
DKIM-Filter: OpenDKIM Filter v2.9.2 mail.ufficyo.com 294CEC01BA
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ufficyo.com;
 s=2FCD9AD2-D071-11E3-AE94-997864EB13EF; t=1421047116;
 bh=iB5q2vdhQS7JZTEchkBebMhF7LsM3+mqHYpgDD7WiZo=;
 h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type:
 Content-Transfer-Encoding;
 b=WtE1kIUNVt2piKbu/VxYBRX5YwVnJzwFp/dEgGPE/we5PhnT1ubt2Tp2r/tN2IL1s
 sGqy5EB+ghP3aMu+gorXVhwHDd1JpByr6ssNR0E8O+WTgMJLFP/fEqZ6NY0kwd2DC/
 sco9FtLowmhuEUf+jvbisVDOZg5UEjCFsnAWYJ4U=
X-Virus-Scanned: amavisd-new at mail.ufficyo.com
Received: from mail.ufficyo.com ([127.0.0.1])
 by localhost (mail.ufficyo.com [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id D7oDtbCaOcIB for <tor-talk@lists.torproject.org>;
 Mon, 12 Jan 2015 08:18:34 +0100 (CET)
Received: from mail.ufficyo.com (mail.ufficyo.com [10.22.22.190])
 by mail.ufficyo.com (Postfix) with ESMTP id D28D1C009E
 for <tor-talk@lists.torproject.org>; Mon, 12 Jan 2015 08:18:29 +0100 (CET)
Date: Mon, 12 Jan 2015 08:18:27 +0100 (CET)
From: Lorenzo Milesi <maxxer@ufficyo.com>
To: tor-talk@lists.torproject.org
Message-ID: <586274183.134130.1421047107274.JavaMail.zimbra@yetopen.it>
MIME-Version: 1.0
X-Originating-IP: [10.22.22.190]
X-Mailer: Zimbra 8.6.0_GA_1153 (ZimbraWebClient - GC40 (Linux)/8.6.0_GA_1153)
Thread-Topic: Question about linux-tor-prio.sh
Thread-Index: oS7lE7+LSTsmM6xTDnUxD1OFGdUG2w==
Subject: [tor-talk] Question about linux-tor-prio.sh
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

Hi.
I've recently set up a Tor node but bandwidth is running out quickly :)
Since I don't want to throttle BW using Tor's options (which basically turns it down) I'd like to limit speed, so I found the suggested script above.
I tuned config to fit my needs (my VPS has 1Mb/s speed) this way:

DEV=eth0
TOR_UID=$(id -u debian-tor)
RTT_LATENCY=40
# RATE_UP must be less than your connection's upload capacity in
# kbits/sec. If it is larger, then the bottleneck will be at your
# router's queue, which you do not control. This will cause congestion
# and a revert to normal TCP fairness no matter what the queing
# priority is.
RATE_UP=1000
# RATE_UP_TOR is the minimum speed your Tor connections will have in
# kbits/sec.  They will have at least this much bandwidth for upload.
# In general, you probably shouldn't set this too low, or else Tor
# users who use your node will be completely choked out whenever your
# machine does any other network activity. That is not very fun.
RATE_UP_TOR=500
# RATE_UP_TOR_CEIL is the maximum rate allowed for all Tor trafic in
# kbits/sec.
RATE_UP_TOR_CEIL=900

CHAIN=OUTPUT
MTU=1500
AVG_PKT=900 # should be more like 600 for non-exit nodes


But when I start the script, after some time the Atlas page reports a 125kb/s bandwidth for my node.

Am I configuring it wrong or what?
thanks
-- 
Lorenzo Milesi - lorenzo.milesi@yetopen.it

YetOpen S.r.l. - http://www.yetopen.it/
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

