Stability issues with XBian (sporadic hangs)
|
22nd Sep, 2013, 08:15 AM
Post: #7
|
|||
|
|||
RE: Stability issues with XBian (sporadic hangs)
(21st Sep, 2013 09:19 PM)mk01 Wrote: when the full setup was running, what memory utilization could be at the peak, including swaps ? Hi, The Pi I have always before used was a model B with 256MB of memory, so I'm sure "my stuff" runs on 256MB. When I tried XBian I tried it first on the 512MB model B, although it didn't seem to make any difference which Pi I used. Anyway, over time I've always checked memory usage, but it is very hard to get exact numbers, as the amount of memory fluctuates due to variations in the web server, the SVN server, and others, and I don't know which of these ever combined to create an abnormal peak. What I've always used as an indicator that RAM is never exhausted is the fact that the 100MB swap never gets used. Anyway, I just checked these numbers: Terminal pi@Rilhas-SRV ~ $ free -h total used free shared buffers cached Mem: 374M 363M 11M 0B 106M 189M -/+ buffers/cache: 67M 306M Swap: 99M 0B 99M This is a typical process list when everything is running (but NFMC is not playing anything): Terminal pi@Rilhas-SRV ~ $ ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.1 2144 728 ? Ss 00:15 0:05 init [2] root 2 0.0 0.0 0 0 ? S 00:15 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S 00:15 0:15 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S< 00:15 0:00 [kworker/0:0H] root 6 0.0 0.0 0 0 ? S 00:15 0:09 [kworker/u:0] root 7 0.0 0.0 0 0 ? S< 00:15 0:00 [kworker/u:0H] root 8 0.0 0.0 0 0 ? S< 00:15 0:00 [khelper] root 9 0.0 0.0 0 0 ? S 00:15 0:00 [kdevtmpfs] root 10 0.0 0.0 0 0 ? S< 00:15 0:00 [netns] root 12 0.0 0.0 0 0 ? S 00:15 0:00 [bdi-default] root 13 0.0 0.0 0 0 ? S< 00:15 0:00 [kblockd] root 14 0.0 0.0 0 0 ? S 00:15 0:00 [khubd] root 15 0.0 0.0 0 0 ? S< 00:15 0:00 [rpciod] root 16 0.0 0.0 0 0 ? S 00:15 0:00 [khungtaskd] root 17 0.0 0.0 0 0 ? S 00:15 0:01 [kswapd0] root 18 0.0 0.0 0 0 ? S 00:15 0:00 [fsnotify_mark] root 19 0.0 0.0 0 0 ? S< 00:15 0:00 [nfsiod] root 20 0.0 0.0 0 0 ? S< 00:15 0:00 [crypto] root 27 0.0 0.0 0 0 ? S< 00:15 0:00 [kthrotld] root 28 0.0 0.0 0 0 ? S< 00:15 0:00 [VCHIQ-0] root 29 0.0 0.0 0 0 ? S< 00:15 0:00 [VCHIQr-0] root 30 0.0 0.0 0 0 ? S< 00:15 0:00 [VCHIQs-0] root 31 0.0 0.0 0 0 ? S< 00:15 0:00 [iscsi_eh] root 32 0.0 0.0 0 0 ? S< 00:15 0:00 [dwc_otg] root 33 0.0 0.0 0 0 ? S< 00:15 0:00 [DWC Notificatio] root 35 0.0 0.0 0 0 ? S 00:15 0:14 [mmcqd/0] root 36 0.0 0.0 0 0 ? S< 00:15 0:00 [deferwq] root 37 0.0 0.0 0 0 ? S 00:15 0:02 [kworker/u:2] root 38 0.0 0.0 0 0 ? S 00:15 0:00 [scsi_eh_0] root 39 0.0 0.0 0 0 ? S 00:15 0:23 [usb-storage] root 40 0.0 0.0 0 0 ? S 00:15 0:00 [jbd2/mmcblk0p6-] root 41 0.0 0.0 0 0 ? S< 00:15 0:00 [ext4-dio-unwrit] root 157 0.0 0.3 2880 1272 ? Ss 00:15 0:00 udevd --daemon root 288 0.0 0.2 2876 1004 ? S 00:15 0:00 udevd --daemon root 301 0.0 0.2 2876 996 ? S 00:15 0:00 udevd --daemon root 335 0.0 0.0 0 0 ? S 00:15 0:00 [scsi_eh_3] root 336 0.0 0.0 0 0 ? S 00:15 0:00 [usb-storage] root 1294 0.0 0.0 0 0 ? S 00:15 0:17 [jbd2/sda1-8] root 1298 0.0 0.0 0 0 ? S< 00:15 0:00 [ext4-dio-unwrit] root 1616 0.0 0.1 1744 504 ? S 00:15 0:15 /usr/sbin/ifplugd -i lo -q -f -u0 -d10 -w -I root 1639 0.0 0.1 1744 512 ? S 00:15 0:48 /usr/sbin/ifplugd -i eth0 -q -f -u0 -d10 -w -I root 1775 0.0 0.0 0 0 ? S 00:15 0:03 [flush-8:0] root 1877 0.0 0.4 27968 1632 ? Sl 00:15 0:11 /usr/sbin/rsyslogd -c5 nobody 1931 0.0 0.1 2012 636 ? Ss 00:15 0:01 /usr/sbin/thd --daemon --triggers /etc/triggerhappy/triggers.d/ --socket /var/run/thd.socket --pidfile /var/run/thd.pid --user nobody /dev/input/event* root 1967 0.0 0.2 3792 792 ? Ss 00:15 0:00 /usr/sbin/cron 104 1984 0.0 0.2 3176 1052 ? Ss 00:15 0:00 /usr/bin/dbus-daemon --system root 2005 0.0 0.3 4256 1232 ? S 00:15 0:00 /bin/bash ./HTTP_Relay.sh root 2025 0.2 0.7 137720 2892 ? Sl 00:15 2:45 ./HTTP_Relay_RPI_CON.exe ntp 2058 0.0 0.4 5508 1716 ? Ss 00:15 0:16 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 102:104 root 2082 0.0 0.3 4264 1248 ? S 00:15 0:00 /bin/bash ./HTML_Server.sh root 2093 1.6 3.7 118060 14456 ? Sl 00:15 21:44 ./HTML_Server_RPI_CON.exe root 2094 0.0 0.2 6208 1072 ? Ss 00:15 0:03 /usr/sbin/sshd root 2136 0.0 0.3 4264 1248 ? S 00:15 0:00 /bin/bash ./RDOMUS.sh root 2145 0.0 0.4 5116 1596 ? S 00:15 0:00 sudo nice -n 10 ./RDOMUS_RemoteControl_Server_CON_RPI.exe root 2146 43.8 1.2 149724 4672 ? SNl 00:15 593:52 ./RDOMUS_RemoteControl_Server_CON_RPI.exe root 2160 0.0 0.3 4264 1248 ? S 00:15 0:00 /bin/bash ./NFMC.sh root 2187 0.2 0.6 30404 2404 ? Sl 00:15 4:01 ./NFMC_RPI_CON.exe root 2204 0.0 0.4 1732 1672 ? SLs 00:15 0:42 /usr/sbin/watchdog root 2222 0.0 0.2 11620 1040 ? Ss 00:15 0:00 svnserve -d -r /RILHAS-SRV/svnrepo root 2226 0.0 0.2 3740 804 tty1 Ss+ 00:15 0:00 /sbin/getty --noclear 38400 tty1 root 2227 0.0 0.2 3740 804 tty2 Ss+ 00:15 0:00 /sbin/getty 38400 tty2 root 2228 0.0 0.2 3740 804 tty3 Ss+ 00:15 0:00 /sbin/getty 38400 tty3 root 2229 0.0 0.2 3740 804 tty4 Ss+ 00:15 0:00 /sbin/getty 38400 tty4 root 2230 0.0 0.2 3740 804 tty5 Ss+ 00:15 0:00 /sbin/getty 38400 tty5 root 2231 0.0 0.2 3740 804 tty6 Ss+ 00:15 0:00 /sbin/getty 38400 tty6 root 2232 0.0 0.1 2060 732 ? Ss+ 00:15 0:00 /sbin/getty -L ttyAMA0 115200 vt100 root 2317 0.0 0.9 27544 3728 ? Sl 01:09 0:00 /usr/sbin/console-kit-daemon --no-daemon root 2384 0.0 0.7 22284 2920 ? Sl 01:09 0:00 /usr/lib/policykit-1/polkitd --no-debug root 3567 0.0 0.0 0 0 ? S< 07:01 0:00 [kworker/0:1H] root 4314 0.0 0.8 9804 3164 ? Ss 16:16 0:01 sshd: pi [priv] pi 4321 0.0 0.4 9804 1744 ? S 16:16 0:01 sshd: pi@notty pi 4322 0.0 0.2 2196 800 ? Ss 16:16 0:00 /usr/lib/openssh/sftp-server root 8039 0.0 0.8 9804 3164 ? Ss 18:38 0:01 sshd: pi [priv] pi 8050 0.0 0.4 10008 1884 ? S 18:39 0:14 sshd: pi@notty pi 8051 0.0 0.2 2380 1024 ? Ss 18:39 0:01 /usr/lib/openssh/sftp-server root 9088 0.0 0.0 0 0 ? S 21:27 0:00 [kworker/0:1] root 9170 0.1 0.8 9804 3188 ? Ss 22:38 0:00 sshd: pi [priv] pi 9177 0.0 0.4 9804 1628 ? S 22:38 0:00 sshd: pi@pts/0 pi 9178 0.3 0.9 6720 3792 pts/0 Ss 22:38 0:02 -bash root 9188 0.0 0.0 0 0 ? S 22:38 0:00 [kworker/0:2] root 9197 0.0 0.0 0 0 ? S 22:44 0:00 [kworker/0:0] pi 9207 0.0 0.2 4452 1124 pts/0 R+ 22:48 0:00 ps aux pi@Rilhas-SRV ~ $ Next is a typical "top" result, with the domotics server always using about 40% of the CPU (the culprit is the FTDI driver for the USB chip), hence a niceness of 10 for the process: Terminal pi@Rilhas-SRV ~ $ top top - 22:50:38 up 22:35, 1 user, load average: 0.76, 0.83, 0.77 Tasks: 82 total, 1 running, 81 sleeping, 0 stopped, 0 zombie %Cpu(s): 2.1 us, 30.0 sy, 16.6 ni, 48.8 id, 0.1 wa, 0.0 hi, 2.4 si, 0.0 st KiB Mem: 383712 total, 370964 used, 12748 free, 109336 buffers KiB Swap: 102396 total, 0 used, 102396 free, 191908 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2146 root 30 10 146m 4672 2532 S 34.3 1.2 594:46.48 RDOMUS_RemoteCo 9209 pi 20 0 4672 1384 956 R 19.0 0.4 0:00.13 top 1 root 20 0 2144 728 620 S 0.0 0.2 0:05.51 init 2 root 20 0 0 0 0 S 0.0 0.0 0:00.05 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:15.02 ksoftirqd/0 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 6 root 20 0 0 0 0 S 0.0 0.0 0:09.66 kworker/u:0 7 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/u:0H 8 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper 9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 10 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns 12 root 20 0 0 0 0 S 0.0 0.0 0:00.02 bdi-default 13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd 14 root 20 0 0 0 0 S 0.0 0.0 0:00.60 khubd 15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 rpciod 16 root 20 0 0 0 0 S 0.0 0.0 0:00.09 khungtaskd 17 root 20 0 0 0 0 S 0.0 0.0 0:01.24 kswapd0 18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 fsnotify_mark 19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 nfsiod 20 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto 27 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kthrotld 28 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 VCHIQ-0 29 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 VCHIQr-0 30 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 VCHIQs-0 31 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 iscsi_eh 32 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 dwc_otg 33 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 DWC Notificatio 35 root 20 0 0 0 0 S 0.0 0.0 0:14.47 mmcqd/0 36 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 deferwq 37 root 20 0 0 0 0 S 0.0 0.0 0:02.69 kworker/u:2 38 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 39 root 20 0 0 0 0 S 0.0 0.0 0:23.97 usb-storage 40 root 20 0 0 0 0 S 0.0 0.0 0:00.91 jbd2/mmcblk0p6- 41 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-dio-unwrit 157 root 20 0 2880 1272 740 S 0.0 0.3 0:00.51 udevd 288 root 20 0 2876 1004 464 S 0.0 0.3 0:00.01 udevd 301 root 20 0 2876 996 456 S 0.0 0.3 0:00.00 udevd 335 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_3 336 root 20 0 0 0 0 S 0.0 0.0 0:00.00 usb-storage 1294 root 20 0 0 0 0 S 0.0 0.0 0:17.83 jbd2/sda1-8 1298 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-dio-unwrit 1616 root 20 0 1744 504 420 S 0.0 0.1 0:15.34 ifplugd 1639 root 20 0 1744 512 420 S 0.0 0.1 0:48.10 ifplugd 1775 root 20 0 0 0 0 S 0.0 0.0 0:03.27 flush-8:0 1877 root 20 0 27968 1632 1156 S 0.0 0.4 0:11.96 rsyslogd 1931 nobody 20 0 2012 636 516 S 0.0 0.2 0:01.61 thd 1967 root 20 0 3792 792 620 S 0.0 0.2 0:00.40 cron 1984 messageb 20 0 3176 1052 764 S 0.0 0.3 0:00.13 dbus-daemon 2005 root 20 0 4256 1232 1080 S 0.0 0.3 0:00.02 HTTP_Relay.sh 2025 root 20 0 134m 2892 1264 S 0.0 0.8 2:45.30 HTTP_Relay_RPI_ 2058 ntp 20 0 5508 1716 1336 S 0.0 0.4 0:16.80 ntpd 2082 root 20 0 4264 1248 1088 S 0.0 0.3 0:00.02 HTML_Server.sh 2093 root 20 0 115m 14m 3792 S 0.0 3.8 21:45.72 HTML_Server_RPI 2094 root 20 0 6208 1072 648 S 0.0 0.3 0:03.42 sshd 2136 root 20 0 4264 1248 1088 S 0.0 0.3 0:00.03 RDOMUS.sh 2145 root 20 0 5116 1596 1284 S 0.0 0.4 0:00.05 sudo 2160 root 20 0 4264 1248 1088 S 0.0 0.3 0:00.02 NFMC.sh 2187 root 20 0 30404 2404 1368 S 0.0 0.6 4:01.97 NFMC_RPI_CON.ex 2204 root -2 0 1732 1672 1352 S 0.0 0.4 0:42.48 watchdog 2222 root 20 0 11620 1040 496 S 0.0 0.3 0:00.01 svnserve 2226 root 20 0 3740 804 676 S 0.0 0.2 0:00.03 getty 2227 root 20 0 3740 804 676 S 0.0 0.2 0:00.01 getty 2228 root 20 0 3740 804 676 S 0.0 0.2 0:00.01 getty Here is the "split" result: Terminal Does this give you any idea of what the problem might be? |
|||
« Next Oldest | Next Newest »
|