owserver is multithreaded -- might separate threads appear as separate
processes in uclinux?

Paul Alfille

On 5/1/07, Lorenz Drack <[EMAIL PROTECTED]> wrote:

 Hi Rob

Your message prompted me to check the processes on my slug.

PS looks a bit scarier than yours.

Why aren't old processes dying I wonder

Maybe more importantly why are new ones starting?

I 'm polling it every min to get data but I don't see why that would start
processes. Not using owread, just "cat filesystem > myfile"



  471         root       6992   S   owserver -P /opt/var/run/owserver.pid
-u -p

  484         root       6992   S   owserver -P /opt/var/run/owserver.pid
-u -p

  485         root       6992   S   owserver -P /opt/var/run/owserver.pid
-u -p

  487         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/

  489         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/

  491         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/

  497         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s
3002 -

  500         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s
3002 -

  501         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s
3002 -

  502         root       5912   S   owftpd -P /opt/var/run/owftpd.pid -s
3002 -

  508         root       3832   S   owhttpd -P /opt/var/run/owhttpd.pid -s
3002

  512         root       3832   S   owhttpd -P /opt/var/run/owhttpd.pid -s
3002

  513         root       3832   S   owhttpd -P /opt/var/run/owhttpd.pid -s
3002

1400         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/

 1401         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/

 1402         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/

 1403         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/

 1404         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/

 1573         root       6992   S   owserver -P /opt/var/run/owserver.pid
-u -p

 1878         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/

 1881         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/

 1882         root      21932   S   owfs -P /opt/var/run/owfs.pid -s 3002
/tmp/





*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Rob Conway
*Sent:* Tuesday, 1 May 2007 10:43 PM
*To:* [email protected]
*Subject:* [Owfs-developers] why are there 3 x owservers running on my
SLUG (NSLU2)



I have noticed using "top" that owserver takes 16% of my little slugs
memory when idle and 29% when my owread script kicks in..  This has led me
to wonder why I have three owservers running on my slug.



The only owfs services script remaining is the S70owserver script.  The
other startup scripts (S80owfs, S80owftpd, S80owhttpd) I have moved out of
/opt/etc/init.d so they do not startup.  I only have one data gathering
script which continuously runs and polls 1wire data every 90 seconds.  This
script uses owwrite owread commands.



I have used the standard ipkg install process..   Anybody know why I have
three owservers running ?



*PS OUTPUT*

 371 root       1928 S   /usr/sbin/CheckResetButton
  373 root       1196 S   /usr/sbin/CheckPowerButton
  375 root       1196 S   /usr/sbin/do_umount
  430 root       3208 S   /opt/sbin/sshd
  438 root       4912 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  442 website    2168 S   /usr/sbin/thttpd -C /etc/thttpd-website.conf
  448 root       4912 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  449 root       4912 S   owserver -P /opt/var/run/owserver.pid -u -p 3002
  450 root       2084 S   /bin/bash /public/aquaread
15546 root       5900 R   sshd: [EMAIL PROTECTED]
15548 root       1932 S   -sh
15742 root       1908 S   sleep 90
15751 root       2220 R   ps

*TOP COMMAND *

Mem: 28108K used, 2416K free, 0K shrd, 12612K buff, 8516K cached
Load average: 1.01 1.11 1.19
  PID USER     STATUS   VSZ  PPID %CPU %MEM COMMAND
16106 root     R       2232 15548  0.5  7.3 top
15546 root     S       5900   430  0.3 19.3 sshd
  318 root     S       6152     1  0.0 20.1 smbd
  335 root     S       6152   318  0.0 20.1 smbd
  448 root     S       4912   438  0.0 *16.0 owserver*      (This does
peak to 29% for maybe 2 seconds when my script kicks in and reads data)
  449 root     S       4912   448  0.0 *16.0 owserver*
  438 root     S       4912     1  0.0 *16.0 owserver*
  320 root     S       4824     1  0.0 15.7 nmbd
  430 root     S       3208     1  0.0 10.4 sshd
  442 website  S       2168     1  0.0  7.0 thttpd
  294 root     S       2136     1  0.0  6.9 thttpd













-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to