Resource Usage
Fortunately Tor's hardware requirements are modest. An old ASUS EeePC 1101HA netbook with an Intel Atom CPU Z520 @ 1.33GHz and 1GB of RAM was used for the Tor node and found to be sufficient. The node was used in conjunction with a simple cable internet connection (10Mbit/s downstream; 1Mbit/s upstream). Amazingly and despite the cheap hardware, the system worked stable and no system crashes occurred.Tor's memory usage is about 210MB and the memory usage of the entire system is only about 250MB.
The bandwidth usage was around 100kBytes/s on average and a little more than 1GByte/day was up- and downloaded. The bandwidth is mostly consumed in bursts since Tor is designed to reduce latency and then the system goes idle to not exceed the bandwidth limit. The relay was also used to mirror directory information.
The temperature of the CPU was around 27°C, which is not so much above ambient temperature. This conveniently reduces aging and noise from the fan.
Power Consumption
An attempt was made to reduce power consumption by- uninstalling unnecessary services (eg. CUPS)
- configuring DPMS to turn off the screen quickly eg. turning off the screen after 10s: $> xset dpms 10 0 0
- alternatively it is possible to turn off the screen using vbetool dpms off , if no X server is present. Strangely the screen will automatically turn itself back on after some time and a cron job is required to keep it turned off permanently.
- shutting down Wifi and Bluetooth (Fn+... on the keyboard)
- using powertop for further optimizations
Configuration
The configuration was pretty usual. Some minor things to be mentioned here:To be able to use the tor relay from the local network, eg.
SocksPort 192.168.178.42:910
SocksPolicy accept 192.168.178.0/16
It seems Tor will not start automatically after reboot, if these lines are in the config file.
To view connection information (eg. open circuits) from arm:
DisableDebuggerAttachment 0
To fix the exit node to a specific country:
ExitNodes de
Software
Not much software was required:- Debian 7 (Wheezy) was used as OS.
- wicd-curses was used as a network manager for convenient configuration of the network interface
- Tor was installed from the Debian repositories.
- X was necessary for DPMS (energy management); alternatively vbetool is sufficient to turn the screen off.
- OpenBox was used as a resource friendly window manager and for convenience
- The hardware clock of the EeePC seems to be drifting considerably. Therefore it was necessary to install ntpd to keep system clock in sync.
- some other optional tools (arm, htop, powertop, sensors, unattended-upgrades)
arm needs to be started as the user running tor eg.
$> sudo -u yourusername-tor arm
No comments:
Post a Comment