WRT54G

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

WRT54G

Christian Magnusson

There are definitely some kind of memory leak in owserver now which has
to be found. After one week of uptime owserver consumes 4.1Mb resident
memory. When starting up owserver the size is about 540kb.

Just wanted to warn you about this... I will try my very best to find
the problem as soon as possible.

When the router is out of memory, there are some cronjob or other
process which tries to kill the biggest process. You will see this
in the log-file (dmesg) if it happens. The router never seem to die
though. I haven't experienced it at least.

/Christian




ewrt ~# ps -ef
  PID  Uid     VmSize Stat Command
    1 root        580 S   init noinitrd
    2 root            SW  [keventd]
    3 root            RWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    7 root            SW  [mtdblockd]
   21 root            SWN [jffs2_gcd_mtd4]
   25 root        448 S   resetbutton
   47 root        312 S   udhcpd /tmp/udhcpd.conf
   52 root        284 S   dnsmasq -h -i br0 -r /tmp/resolv.conf
   55 root        228 S   igmprt -f -i vlan1
   58 root        516 S   process_monitor
   68 root        384 S   upnp -D -L br0 -W vlan1
   70 root        308 S   cron
   77 root        328 S   syslogd -s 100 -b 2
   82 root        292 S   klogd
   84 root        292 S   tftpd -s /tmp -c -l
   87 root        504 S   httpd
   92 root        312 S   udhcpd /tmp/udhcpd.conf
  100 root        308 S   dropbear -r /tmp/.ssh/ssh_host_rsa_key -p 22
  205 root        336 S   httpd2 -p 8000 -h /var/www
  212 root       4104 S   owserver -P /var/run/owserver.pid -
d /dev/tts/1 -p 30
  213 root       4104 S   owserver -P /var/run/owserver.pid -
d /dev/tts/1 -p 30
  223 root        440 S   owhttpd -P /var/run/owhttpd.pid -s 3002 -p
3001
  224 root        440 S   owhttpd -P /var/run/owhttpd.pid -s 3002 -p
3001
  227 root        440 S   owhttpd -P /var/run/owhttpd.pid -s 3002 -p
3001
  236 root        704 S   owfs -P /var/run/owfs.pid -s
3002 /tmp/var/1wire
  242 root        704 S   owfs -P /var/run/owfs.pid -s
3002 /tmp/var/1wire
  243 root        704 S   owfs -P /var/run/owfs.pid -s
3002 /tmp/var/1wire
  254 root        300 S   temploggerd -c /opt/temploggerd.conf -
P /var/run/temp
32200 root        704 S   owfs -P /var/run/owfs.pid -s
3002 /tmp/var/1wire
24471 root       4104 S   owserver -P /var/run/owserver.pid -
d /dev/tts/1 -p 30
24472 root        692 S   dropbear -r /tmp/.ssh/ssh_host_rsa_key -p 22
24473 root        452 S   -sh
24476 root        332 R   ps -ef
ewrt ~# cat /proc/212/status
Name:   owserver
State:  S (sleeping)
Tgid:   212
Pid:    212
PPid:   1
TracerPid:      0
Uid:    0       0       0       0
Gid:    0       0       0       0
FDSize: 32
Groups:
VmSize:     5128 kB
VmLck:         0 kB
VmRSS:      4104 kB
VmData:     4368 kB
VmStk:        28 kB
VmExe:        12 kB
VmLib:       640 kB
SigPnd: 00000000000000000000000000000000
SigBlk: 00000000000000000000000000000000
SigIgn: 00000000000000000000000004001000
SigCgt: 00000000000000000000000380004403
CapInh: 0000000000000000
CapPrm: 00000000fffffeff
CapEff: 00000000fffffeff

ewrt ~# cat /proc/236/status
Name:   owfs
State:  S (sleeping)
Tgid:   236
Pid:    236
PPid:   1
TracerPid:      0
Uid:    0       0       0       0
Gid:    0       0       0       0
FDSize: 32
Groups:
VmSize:     2036 kB
VmLck:         0 kB
VmRSS:       704 kB
VmData:     1216 kB
VmStk:        44 kB
VmExe:         8 kB
VmLib:       684 kB
SigPnd: 00000000000000000000000000000000
SigBlk: 00000000000000000000000080000000
SigIgn: 00000000000000000000000004001000
SigCgt: 00000000000000000000000380004403
CapInh: 0000000000000000
CapPrm: 00000000fffffeff
CapEff: 00000000fffffeff

ewrt ~# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  14786560 14307328   479232        0   282624  3203072
Swap:        0        0        0
MemTotal:        14440 kB
MemFree:           468 kB
MemShared:           0 kB
Buffers:           276 kB
Cached:           3128 kB
SwapCached:          0 kB
Active:           5824 kB
Inactive:         3996 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        14440 kB
LowFree:           468 kB
SwapTotal:           0 kB
SwapFree:            0 kB




--
Christian Magnusson <[hidden email]>



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Owfs-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/owfs-developers