[tahoe-dev] how to find the tahoe process in your process table

Aleksandr Milewski zandr at allmydata.com
Sat Feb 9 17:44:05 PST 2008


argv $0 isn't the problem, it's basedir. Witness:

amduser at prodtahoe1:~$ ps -uamduser -f
UID        PID  PPID  C STIME TTY          TIME CMD
amduser  14068 14066  0 Feb08 ?        00:00:00 sshd: amduser at pts/0
amduser  14069 14068  0 Feb08 pts/0    00:00:00 -bash
amduser  14344     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14350     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-introducer.tac --logfile logs/twistd.log
amduser  14361     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14367     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14373     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14379     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14385     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14581     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14586     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14591     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14596     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14601     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14606     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14611     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14616     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14621     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14626     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14631     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14636     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14641     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14646     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14651     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  14656     1  0 Feb08 ?        00:00:00 /usr/bin/python /usr/ 
bin/twistd -y tahoe-client.tac --logfile logs/twistd.log
amduser  16097 16095  0 17:41 ?        00:00:00 sshd: amduser at pts/1
amduser  16098 16097  0 17:41 pts/1    00:00:00 -bash
amduser  16118 16098  0 17:42 pts/1    00:00:00 ps -uamduser -f

Now, it's admittedly a bit strange to be running so many nodes, the  
point stands.



On Feb 9, 2008, at 4:26 PM, Nathan wrote:

> The common util pgrep is a handy substitute for ps|grep.
>
> When running multiple nodes, I often wish the process commandline
> included the --basedir option, but the twistd command lines do not.
>
>
> On Feb 9, 2008 12:43 PM, Zooko O'Whielacronx <zooko at zooko.com> wrote:
>> Folks:
>>
>> Zandr observed that it isn't obvious which process is the Tahoe
>> process.  There is a ticket about this issue:
>>
>> http://allmydata.org/trac/tahoe/ticket/174# "make argv $0 be 'tahoe',
>> not 'twistd'"
>>
>> Does "ps ax | grep tahoe" show you the right process(es)?
>>
>> Regards,
>>
>> Zooko
>>
>> _______________________________________________
>> tahoe-dev mailing list
>> tahoe-dev at allmydata.org
>> http://allmydata.org/cgi-bin/mailman/listinfo/tahoe-dev
>>
> _______________________________________________
> tahoe-dev mailing list
> tahoe-dev at allmydata.org
> http://allmydata.org/cgi-bin/mailman/listinfo/tahoe-dev



More information about the tahoe-dev mailing list