Cytat
Steel_Rat napisał(a):
Zobacz przez polecenie top. Może jednak działa Pyload. Dziwne jest to, że u mnie pisał że proces ubity, a dalej był. Zadziałało polecenie "kill -9 `pidof python 2.5`
Ok, po kolei.
Pyload'a mam wpisanego do firewalla, żeby startował po włączeniu routera.
Zaraz po uruchomieniu wygląda to tak:
[root@Netgear root]$ free
total used free shared buffers
Mem: 61980 50688 11292 0 26196
Swap: 72252 104 72148
Total: 134232 50792 83440
[root@Netgear root]$ ps
PID USER VSZ STAT COMMAND
1 root 1284 S /sbin/init noinitrd
2 root 0 SW< [kthreadd]
3 root 0 SWN [ksoftirqd/0]
4 root 0 SW< [events/0]
5 root 0 SW< [khelper]
17 root 0 SW< [kblockd/0]
41 root 0 SW [pdflush]
42 root 0 SW [pdflush]
43 root 0 SW< [kswapd0]
44 root 0 SW< [aio/0]
88 root 0 SW< [mtdblockd]
288 root 752 S hotplug2 --persistent --no-coldplug
328 root 1272 S buttons
329 root 1240 S console
330 root 1728 S /bin/sh
332 root 1716 S syslogd -L -s 50
334 root 1716 S klogd
346 root 0 SW< [khubd]
387 root 736 S p9100d -b -f /dev/usb/lp0 0
435 root 1716 S telnetd -p 23
437 root 0 SW< [scsi_eh_0]
438 root 0 SW< [usb-storage]
447 root 1156 S dropbear -p 22 -a
451 root 1012 S eapd
456 root 1192 S nas
462 root 1728 S crond -l 9
464 root 1028 S rstats
470 root 1344 S httpd
484 root 2512 S nmbd -D
485 root 2456 S nmbd -D
493 nobody 1044 S dnsmasq -c 1500 --log-async
535 root 3352 S N smbd -D
695 root 1732 S udhcpc -i vlan2 -b -s dhcpc-event -H Netgear -m
726 root 1204 S dropbear -p 22 -a
733 root 1732 S -sh
737 root 0 SW< [kjournald]
755 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
758 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
759 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
765 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
766 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
767 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
768 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
769 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
773 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
774 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
775 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
776 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
777 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
778 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
779 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
780 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
781 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
782 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
783 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
784 root 20908 S python /opt/share/pyload/pyLoadCore.py --daemon
788 root 1720 R ps
[root@Netgear root]$ top
Mem: 50856K used, 11124K free, 0K shrd, 15060K buff, 14692K cached
CPU: 0% usr 7% sys 0% nic 84% idle 0% io 0% irq 7% sirq
Load average: 0.05 0.17 0.08 2/57 792
PID PPID USER STAT VSZ %MEM %CPU COMMAND
792 733 root R 1720 3% 8% top
755 1 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
769 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
768 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
759 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
767 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
774 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
776 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
766 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
778 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
775 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
780 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
773 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
782 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
783 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
784 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
777 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
781 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
765 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
779 758 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
758 755 root S 20908 34% 0% python /opt/share/pyload/pyLoadCore.py --daemon
535 1 root S N 3352 5% 0% smbd -D
484 1 root S 2512 4% 0% nmbd -D
485 484 root S 2456 4% 0% nmbd -D
733 726 root S 1732 3% 0% -sh
695 1 root S 1732 3% 0% udhcpc -i vlan2 -b -s dhcpc-event -H Netgear -m
330 329 root S 1728 3% 0% /bin/sh
462 1 root S 1728 3% 0% crond -l 9
332 1 root S 1716 3% 0% syslogd -L -s 50
435 1 root S 1716 3% 0% telnetd -p 23
334 1 root S 1716 3% 0% klogd
470 1 root S 1344 2% 0% httpd
1 0 root S 1284 2% 0% /sbin/init noinitrd
328 1 root S 1272 2% 0% buttons
329 1 root S 1240 2% 0% console
726 447 root S 1204 2% 0% dropbear -p 22 -a
456 1 root S 1192 2% 0% nas
447 1 root S 1156 2% 0% dropbear -p 22 -a
493 1 nobody S 1044 2% 0% dnsmasq -c 1500 --log-async
464 1 root S 1028 2% 0% rstats
Czyli wszystko ok, zżera pamięc bo musi.
Po zabiciu Pyload wygląda następująco:
[root@Netgear root]$ /opt/etc/init.d/pyload stop
pyLoad 0.4.6: try to kill myself
pyLoad 0.4.6: successfully stopped
[root@Netgear root]$ free
total used free shared buffers
Mem: 61980 36916 25064 0 11420
Swap: 72252 112 72140
Total: 134232 37028 97204
[root@Netgear root]$ ps
PID USER VSZ STAT COMMAND
1 root 1284 S /sbin/init noinitrd
2 root 0 SW< [kthreadd]
3 root 0 SWN [ksoftirqd/0]
4 root 0 SW< [events/0]
5 root 0 SW< [khelper]
17 root 0 SW< [kblockd/0]
41 root 0 SW [pdflush]
42 root 0 SW [pdflush]
43 root 0 SW< [kswapd0]
44 root 0 SW< [aio/0]
88 root 0 SW< [mtdblockd]
288 root 752 S hotplug2 --persistent --no-coldplug
328 root 1272 S buttons
329 root 1240 S console
330 root 1728 S /bin/sh
332 root 1716 S syslogd -L -s 50
334 root 1716 S klogd
346 root 0 SW< [khubd]
387 root 736 S p9100d -b -f /dev/usb/lp0 0
435 root 1716 S telnetd -p 23
437 root 0 SW< [scsi_eh_0]
438 root 0 SW< [usb-storage]
447 root 1156 S dropbear -p 22 -a
451 root 1012 S eapd
456 root 1192 S nas
462 root 1728 S crond -l 9
464 root 1028 S rstats
470 root 1344 S httpd
484 root 2512 S nmbd -D
485 root 2456 S nmbd -D
493 nobody 1044 S dnsmasq -c 1500 --log-async
535 root 3352 S N smbd -D
695 root 1732 S udhcpc -i vlan2 -b -s dhcpc-event -H Netgear -m
726 root 1204 S dropbear -p 22 -a
733 root 1732 S -sh
737 root 0 SW< [kjournald]
822 root 1720 R ps
[root@Netgear root]$ top
Mem: 36928K used, 25052K free, 0K shrd, 11420K buff, 14128K cached
CPU: 0% usr 0% sys 0% nic 100% idle 0% io 0% irq 0% sirq
Load average: 0.06 0.11 0.08 2/37 825
PID PPID USER STAT VSZ %MEM %CPU COMMAND
535 1 root S N 3352 5% 0% smbd -D
484 1 root S 2512 4% 0% nmbd -D
485 484 root S 2456 4% 0% nmbd -D
733 726 root S 1732 3% 0% -sh
695 1 root S 1732 3% 0% udhcpc -i vlan2 -b -s dhcpc-event -H Netgear -m
330 329 root S 1728 3% 0% /bin/sh
462 1 root S 1728 3% 0% crond -l 9
825 733 root R 1720 3% 0% top
332 1 root S 1716 3% 0% syslogd -L -s 50
334 1 root S 1716 3% 0% klogd
435 1 root S 1716 3% 0% telnetd -p 23
470 1 root S 1344 2% 0% httpd
1 0 root S 1284 2% 0% /sbin/init noinitrd
328 1 root S 1272 2% 0% buttons
329 1 root S 1240 2% 0% console
726 447 root S 1204 2% 0% dropbear -p 22 -a
456 1 root S 1192 2% 0% nas
447 1 root S 1156 2% 0% dropbear -p 22 -a
493 1 nobody S 1044 2% 0% dnsmasq -c 1500 --log-async
464 1 root S 1028 2% 0% rstats
451 1 root S 1012 2% 0% eapd
288 1 root S 752 1% 0% hotplug2 --persistent --no-coldplug
387 1 root S 736 1% 0% p9100d -b -f /dev/usb/lp0 0
88 2 root SW< 0 0% 0% [mtdblockd]
438 2 root SW< 0 0% 0% [usb-storage]
3 2 root SWN 0 0% 0% [ksoftirqd/0]
5 2 root SW< 0 0% 0% [khelper]
43 2 root SW< 0 0% 0% [kswapd0]
2 0 root SW< 0 0% 0% [kthreadd]
4 2 root SW< 0 0% 0% [events/0]
44 2 root SW< 0 0% 0% [aio/0]
17 2 root SW< 0 0% 0% [kblockd/0]
42 2 root SW 0 0% 0% [pdflush]
437 2 root SW< 0 0% 0% [scsi_eh_0]
346 2 root SW< 0 0% 0% [khubd]
737 2 root SW< 0 0% 0% [kjournald]
41 2 root SW 0 0% 0% [pdflush]
Wynika z tego, że wszystkie procesy związane z Pyloadem zostały zabite a mimo to pamięci mało.
Żeby było dziwniej, GUI w tomato pokazuje mi tak:
Czas Wed, 22 Jun 2011 00:08:30 +0200
Uruchomiony od 0 dni, 01:47:32
Obciązenie CPU
(1 / 5 / 15 minut) 0.19 / 0.15 / 0.21
Całkowita / Wolna pamięć 60.53 MB / 38.28 MB (63.24%)
Całkowity / Wolny swap 70.56 MB / 70.40 MB (99.77%)
Czyli nie aż tak źle ale dlaczego jest taka rozbieżność między tym co pokazuje status pamięci wywołany z konsoli a tym co pokazuje tomato?