[tor-bugs] #3374 [Torouter]: Torouter OS and configuration

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Jun 22 00:16:21 UTC 2011


#3374: Torouter OS and configuration
----------------------+-----------------------------------------------------
 Reporter:  runa      |          Owner:  runa
     Type:  task      |         Status:  new 
 Priority:  normal    |      Milestone:      
Component:  Torouter  |        Version:      
 Keywords:            |         Parent:      
   Points:            |   Actualpoints:      
----------------------+-----------------------------------------------------

Comment(by ioerror):

 Here's a list of all the processes running in the above mentioned
 configuration:
 {{{
 root at torouter:~# ps auxwwww
 USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
 root         1  0.0  0.1   2016   696 ?        Ss   Jun21   0:01 init [2]
 root         2  0.0  0.0      0     0 ?        S    Jun21   0:00
 [kthreadd]
 root         3  0.0  0.0      0     0 ?        S    Jun21   0:00
 [ksoftirqd/0]
 root         4  0.0  0.0      0     0 ?        S    Jun21   0:00
 [watchdog/0]
 root         5  0.0  0.0      0     0 ?        S    Jun21   0:00
 [events/0]
 root         6  0.0  0.0      0     0 ?        S    Jun21   0:00 [khelper]
 root         9  0.0  0.0      0     0 ?        S    Jun21   0:00
 [async/mgr]
 root       132  0.0  0.0      0     0 ?        S    Jun21   0:00
 [sync_supers]
 root       134  0.0  0.0      0     0 ?        S    Jun21   0:00 [bdi-
 default]
 root       136  0.0  0.0      0     0 ?        S    Jun21   0:00
 [kblockd/0]
 root       142  0.0  0.0      0     0 ?        S    Jun21   0:00 [ata/0]
 root       143  0.0  0.0      0     0 ?        S    Jun21   0:00 [ata_aux]
 root       147  0.0  0.0      0     0 ?        S    Jun21   0:00
 [ksuspend_usbd]
 root       152  0.0  0.0      0     0 ?        S    Jun21   0:00 [khubd]
 root       155  0.0  0.0      0     0 ?        S    Jun21   0:00 [kseriod]
 root       158  0.0  0.0      0     0 ?        S    Jun21   0:00 [kmmcd]
 root       168  0.0  0.0      0     0 ?        S    Jun21   0:00
 [cfg80211]
 root       179  0.0  0.0      0     0 ?        S    Jun21   0:00
 [rpciod/0]
 root       187  0.0  0.0      0     0 ?        S    Jun21   0:00
 [khungtaskd]
 root       188  0.0  0.0      0     0 ?        S    Jun21   0:00 [kswapd0]
 root       233  0.0  0.0      0     0 ?        S    Jun21   0:00 [aio/0]
 root       246  0.0  0.0      0     0 ?        S    Jun21   0:00 [nfsiod]
 root       254  0.0  0.0      0     0 ?        S    Jun21   0:00 [jfsIO]
 root       255  0.0  0.0      0     0 ?        S    Jun21   0:00
 [jfsCommit]
 root       256  0.0  0.0      0     0 ?        S    Jun21   0:00 [jfsSync]
 root       257  0.0  0.0      0     0 ?        S    Jun21   0:00
 [crypto/0]
 root       432  0.0  0.0      0     0 ?        S    Jun21   0:00
 [mtdblockd]
 root       439  0.0  0.0      0     0 ?        S    Jun21   0:00
 [orion_spi]
 root       529  0.0  0.0      0     0 ?        S    Jun21   0:00
 [usbhid_resumer]
 root       544  0.0  0.0      0     0 ?        S    Jun21   0:00
 [scsi_eh_0]
 root       545  0.0  0.0      0     0 ?        S    Jun21   0:00 [usb-
 storage]
 root       577  0.0  0.0      0     0 ?        S    Jun21   0:00
 [flush-8:0]
 root       578  0.0  0.0      0     0 ?        S    Jun21   0:00
 [kjournald]
 root       619  0.0  0.1   2300   692 ?        S<s  Jun21   0:00 udevd
 --daemon
 root       653  0.0  0.0      0     0 ?        S    Jun21   0:00
 [mv_crypto]
 root       701  0.0  0.1   2296   628 ?        S<   Jun21   0:00 udevd
 --daemon
 root       710  0.0  0.1   2296   616 ?        S<   Jun21   0:00 udevd
 --daemon
 root       724  0.0  0.0      0     0 ?        S    Jun21   0:00
 [scsi_eh_1]
 root       738  0.0  0.0      0     0 ?        S    Jun21   0:00
 [bluetooth]
 root       759  0.0  0.0      0     0 ?        S    Jun21   0:00
 [uap_main_servic]
 root       760  0.0  0.0      0     0 ?        S    Jun21   0:00
 [ksdioirqd/mmc0]
 root       962  0.0  0.1   1924   604 ?        Ss   Jun21   0:00 pump -i
 eth0
 root      1016  0.0  0.0   2736   480 ?        Ss   Jun21   0:00
 /usr/sbin/udhcpd
 daemon    1109  0.0  0.0   2260   424 ?        Ss   Jun21   0:00
 /usr/sbin/atd
 root      1153  0.0  0.1   2416   872 ?        Ss   Jun21   0:00
 /usr/sbin/cron
 105       1158  0.0  0.1   2776   980 ?        Ss   Jun21   0:00 /usr/bin
 /dbus-daemon --system
 102       1405  0.0  0.1   7268   948 ?        Ss   Jun21   0:00
 /usr/sbin/exim4 -bd -q30m
 ntp       1421  0.0  0.3   5368  1948 ?        Ss   Jun21   0:03
 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106
 103       1436  0.2  7.2  48956 37308 ?        Sl   Jun21   2:35
 /usr/local/bin/tor
 root      1447  0.0  0.1   1640   528 tty1     Ss+  Jun21   0:00
 /sbin/getty 38400 tty1
 root      1448  0.0  0.1   1640   528 tty2     Ss+  Jun21   0:00
 /sbin/getty 38400 tty2
 root      1449  0.0  0.1   1640   528 tty3     Ss+  Jun21   0:00
 /sbin/getty 38400 tty3
 root      1450  0.0  0.1   1640   528 tty4     Ss+  Jun21   0:00
 /sbin/getty 38400 tty4
 root      1451  0.0  0.1   1640   528 tty5     Ss+  Jun21   0:00
 /sbin/getty 38400 tty5
 root      1452  0.0  0.1   1640   528 tty6     Ss+  Jun21   0:00
 /sbin/getty 38400 tty6
 root      1453  0.0  0.2   3096  1268 ttyS0    Ss   Jun21   0:00
 /bin/login --
 root      1454  0.0  0.3   3228  1820 ttyS0    S+   Jun21   0:00 -bash
 root      1460  0.0  0.5   8968  2792 ?        Ss   Jun21   0:00 sshd:
 root at pts/0
 root      1462  0.0  0.3   3152  1708 pts/0    Ss   Jun21   0:00 -bash
 root      1549  0.0  0.5   8968  2792 ?        Ss   Jun21   0:00 sshd:
 root at pts/1
 root      1551  0.0  0.3   3144  1704 pts/1    Ss+  Jun21   0:00 -bash
 root      1971  0.0  0.1   5820   976 ?        Ss   Jun21   0:00
 /usr/sbin/sshd
 dnsmasq   2318  0.0  0.1   2748   872 ?        S    Jun21   0:00
 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -7
 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new
 }}}

 I suspect we can lower a lot of overhead with simple things such as re-
 configuring '''getty''' to only listen on the tty devices we actually use,
 removing '''dbus''' if we don't need it, removing '''exim4''' and likely
 by choosing a single dhcp server, rather than running two. I think that
 http://code.google.com/p/staticdhcpd/ is probably a good bet...

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3374#comment:43>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list