8 Stack Exchange questions are "solved" by accepting an Answer
source | link

SOLVED: How can iI see which process hangs my Banana-pi for few seconds every couple of minutes?

answer: I'll post the answer before the problem. I fixed my "freezes" by turning autoneg of (ethtool -s eth0 duplex full autoneg off). how i found this: every time after a freeze, monitoring disk I/O with the help of the post below I saw that rsynclogd was writing to disk after freezes. I then checked /var/log for the last changes. Saw that kern.log had link up / link down messages after freezes. So I figured it might be the network card which is turning off & on, which looks like freezes if you're SSH'd in or trying to access your web server.

Answer

original problem: I've got a bananapi with Xubuntu on it: I fixed my "freezes" by turning autoneg of (ethtool -s eth0 duplex full autoneg off).

How I found this

Every time after a freeze, monitoring disk I/O with the help of the post below, I saw that rsynclogd was writing to disk after freezes. I then checked /var/log for the last changes and saw that kern.log had link up / link down messages after freezes. So I figured it might be the network card which is turning off & on, which looks like freezes if you're SSH'd in or trying to access your web server.

Original problem

I've got a bananapi with Xubuntu on it:

How can I find out which process is doing this? I said it happens every few minutes, but as far as I can tell it's quite random. Sometimes I won't notice it for a while.., but then again, I'm not typing on it continuously.

I tried running top as I said,said; it seems to be updating the list every few seconds when I"mI'm staring at it, then it'll pause for longer and it'll "catch up" and refresh 20x in 1 second then continue as normal.

Also I'm also running apachethe Apache webserver on it,it; sometimes the pages take ages to load.. -- then I know it's hanging again, it'll. It'll take anywhere from 5-30 seconds or so and it'll work fine again for a while.

I ran posted commands in the answers below. I kept only seeing apache2 with 4096B write, 3.5% CPU but no hangs. Then it hung suddenly for about 10 seconds and the only thing that was off was rsyslogd: 0 0 |iotop 4507 40k 511B5.0%|jbd2/sda1-8 55 0 32k 0% 0 0 |iotop 4507 36k 570B 11%|| 0 0 |iotop 4507 40k 719B 11%||11%| 0 0 |iotop 4507 39k 582B 11%||rsyslogd 285 0 8192B0.5% 0 0 |iotop 4507 31k 0 12%|11%| 0 0 |iotop 4507 8653B 600B1.0%|11%| 0 0 |iotop 4507 36k 479B 11%||11%| 0 0 |iotop 4507 42k 534B 11%||11%| 0 0 |iotop 4507 37k 404B 11%||jbd2/sda1-8 55 0 8192B 0% 0 0 |iotop 4507 40k 745B 11%||11%| 0 0 |sshd: bananapi@pts/4 4549 206B 280B 0%|11%| 0 0 |iotop 4507 37k 639B7.5%|11%| 0 0 |iotop 4507 40k 533B 11%||11%| 0 0 |iotop 4507 37k 385B 11%||11%| 0 0 |iotop 4507 41k 511B 11%||11%| 0 0 |iotop 4507 7520B 0 10%|11%| 0 0 |iotop 4507 29k 555B2.5%|11%| 0 0 |iotop 4507 40k 704B 11%||rsyslogd 285 0 8192B 0% ... however not much CPU usage or disk IO from this process...

SOLVED: How can i see which process hangs my Banana-pi for few seconds every couple of minutes?

answer: I'll post the answer before the problem. I fixed my "freezes" by turning autoneg of (ethtool -s eth0 duplex full autoneg off). how i found this: every time after a freeze, monitoring disk I/O with the help of the post below I saw that rsynclogd was writing to disk after freezes. I then checked /var/log for the last changes. Saw that kern.log had link up / link down messages after freezes. So I figured it might be the network card which is turning off & on, which looks like freezes if you're SSH'd in or trying to access your web server.

original problem: I've got a bananapi with Xubuntu on it:

How can I find out which process is doing this? I said it happens every few minutes, but as far as I can tell it's quite random. Sometimes I won't notice it for a while.. but then again I'm not typing on it continuously.

I tried running top as I said, it seems to be updating the list every few seconds when I"m staring at it, then it'll pause for longer and it'll "catch up" and refresh 20x in 1 second then continue as normal.

Also I'm running apache webserver on it, sometimes the pages take ages to load.. then I know it's hanging again, it'll take anywhere from 5-30 seconds or so and it'll work fine again for a while.

I ran posted commands in the answers below. I kept only seeing apache2 with 4096B write, 3.5% CPU but no hangs. Then it hung suddenly for about 10 seconds and the only thing that was off was rsyslogd: 0 0 |iotop 4507 40k 511B5.0%|jbd2/sda1-8 55 0 32k 0% 0 0 |iotop 4507 36k 570B 11%|| 0 0 |iotop 4507 40k 719B 11%||11%| 0 0 |iotop 4507 39k 582B 11%||rsyslogd 285 0 8192B0.5% 0 0 |iotop 4507 31k 0 12%|11%| 0 0 |iotop 4507 8653B 600B1.0%|11%| 0 0 |iotop 4507 36k 479B 11%||11%| 0 0 |iotop 4507 42k 534B 11%||11%| 0 0 |iotop 4507 37k 404B 11%||jbd2/sda1-8 55 0 8192B 0% 0 0 |iotop 4507 40k 745B 11%||11%| 0 0 |sshd: bananapi@pts/4 4549 206B 280B 0%|11%| 0 0 |iotop 4507 37k 639B7.5%|11%| 0 0 |iotop 4507 40k 533B 11%||11%| 0 0 |iotop 4507 37k 385B 11%||11%| 0 0 |iotop 4507 41k 511B 11%||11%| 0 0 |iotop 4507 7520B 0 10%|11%| 0 0 |iotop 4507 29k 555B2.5%|11%| 0 0 |iotop 4507 40k 704B 11%||rsyslogd 285 0 8192B 0% however not much CPU usage or disk IO from this process...

How can I see which process hangs my Banana-pi for few seconds every couple of minutes?

Answer

I fixed my "freezes" by turning autoneg of (ethtool -s eth0 duplex full autoneg off).

How I found this

Every time after a freeze, monitoring disk I/O with the help of the post below, I saw that rsynclogd was writing to disk after freezes. I then checked /var/log for the last changes and saw that kern.log had link up / link down messages after freezes. So I figured it might be the network card which is turning off & on, which looks like freezes if you're SSH'd in or trying to access your web server.

Original problem

I've got a bananapi with Xubuntu on it:

How can I find out which process is doing this? I said it happens every few minutes, but as far as I can tell it's quite random. Sometimes I won't notice it for a while, but then again, I'm not typing on it continuously.

I tried running top as I said; it seems to be updating the list every few seconds when I'm staring at it, then it'll pause for longer and it'll "catch up" and refresh 20x in 1 second then continue as normal.

I'm also running the Apache webserver on it; sometimes the pages take ages to load -- then I know it's hanging again. It'll take anywhere from 5-30 seconds or so and it'll work fine again for a while.

I ran posted commands in the answers below. I kept only seeing apache2 with 4096B write, 3.5% CPU but no hangs. Then it hung suddenly for about 10 seconds and the only thing that was off was rsyslogd: 0 0 |iotop 4507 40k 511B5.0%|jbd2/sda1-8 55 0 32k 0% 0 0 |iotop 4507 36k 570B 11%|| 0 0 |iotop 4507 40k 719B 11%||11%| 0 0 |iotop 4507 39k 582B 11%||rsyslogd 285 0 8192B0.5% 0 0 |iotop 4507 31k 0 12%|11%| 0 0 |iotop 4507 8653B 600B1.0%|11%| 0 0 |iotop 4507 36k 479B 11%||11%| 0 0 |iotop 4507 42k 534B 11%||11%| 0 0 |iotop 4507 37k 404B 11%||jbd2/sda1-8 55 0 8192B 0% 0 0 |iotop 4507 40k 745B 11%||11%| 0 0 |sshd: bananapi@pts/4 4549 206B 280B 0%|11%| 0 0 |iotop 4507 37k 639B7.5%|11%| 0 0 |iotop 4507 40k 533B 11%||11%| 0 0 |iotop 4507 37k 385B 11%||11%| 0 0 |iotop 4507 41k 511B 11%||11%| 0 0 |iotop 4507 7520B 0 10%|11%| 0 0 |iotop 4507 29k 555B2.5%|11%| 0 0 |iotop 4507 40k 704B 11%||rsyslogd 285 0 8192B 0% ... however not much CPU usage or disk IO from this process.

7 added 586 characters in body; edited title
source | link

SOLVED: How can i see which process hangs my Banana-pi for few seconds every couple of minutes?

I'veanswer: I'll post the answer before the problem. I fixed my "freezes" by turning autoneg of (ethtool -s eth0 duplex full autoneg off). how i found this: every time after a freeze, monitoring disk I/O with the help of the post below I saw that rsynclogd was writing to disk after freezes. I then checked /var/log for the last changes. Saw that kern.log had link up / link down messages after freezes. So I figured it might be the network card which is turning off & on, which looks like freezes if you're SSH'd in or trying to access your web server.

original problem: I've got a bananapi with Xubuntu on it:

How can i see which process hangs my Banana-pi for few seconds every couple of minutes?

I've got a bananapi with Xubuntu on it:

SOLVED: How can i see which process hangs my Banana-pi for few seconds every couple of minutes?

answer: I'll post the answer before the problem. I fixed my "freezes" by turning autoneg of (ethtool -s eth0 duplex full autoneg off). how i found this: every time after a freeze, monitoring disk I/O with the help of the post below I saw that rsynclogd was writing to disk after freezes. I then checked /var/log for the last changes. Saw that kern.log had link up / link down messages after freezes. So I figured it might be the network card which is turning off & on, which looks like freezes if you're SSH'd in or trying to access your web server.

original problem: I've got a bananapi with Xubuntu on it:

6 deleted 1762 characters in body
source | link

update: ok it just hung again after the 2 apache2 on the right: 0 0 |iotop 4507 40k 525B 11%||11%| 0 0 |iotop 4507 36k 427B 11%||apache2 2601 0 8192B 10% 0 0 |iotop 4507 42k 649B 11%||11%| 0 0 |iotop 4507 37k 646B 12%|11%| 0 0 |sshd: bananapi@pts/4 4549 206B 280B 0%|11%| 0 0 |iotop 4507 39k 619B 11%||11%| 0 0 |iotop 4507 37k 546B 11%||apache2 2601 0 4096B4.5% 0 0 |iotop 4507 40k 731B 11%||11%| 0 0 |iotop 4507 38k 601B 11%||rsyslogd 285 0 8192B 0% 0 0 |sshd: bananapi@pts/4 4549 249B 328B 0%|11%| 0 0 |iotop 4507 42k 654B5.5%|11%| 0 0 |iotop 4507 37k 476B 11%||11%| 0 0 |iotop 4507 39k 605B 11%||11%| 0 0 |iotop 4507 38k 406B 11%||jbd2/sda1-8 55 0 8192B 0% 0 0 |iotop 4507 40k 649B 12%|11%| 0 0 |sshd: bananapi@pts/1 3785 649B 692B 0%|11%| 0 0 |iotop 4507 36k 551B 11%||11%| 0 0 |iotop 4507 42k 534B 11%||11%| 0 0 |iotop 4507 37k 521B 11%||11%| 0 0 |iotop 4507 39k 605B 11%||11%| 0 0 |sshd: bananapi@pts/4 4549 206B 280B 0%|11%| 0 0 |iotop 4507 37k 431B5.5%|11%| 0 0 |iotop 4507 40k 533B 11%||11%| 0 0 |iotop 4507 37k 385B 11%||rsyslogd 285 0 8192B 0% 0 0 |iotop 4507 42k 524B 11%||11%| 0 0 |iotop 4507 16k 0 11%||apache2 2666 0 4096B 10% 0 0 |iotop 4507 21k 513B2.0%|11%| 0 0 |iotop 4507 39k 608B 12%|11%| 0 0 |iotop 4507 38k 406B 11%||jbd2/sda1-8 55 0 32k 0% 0 0 |iotop 4507 40k 650B 11%||11%| 0 0 |iotop 4507 36k 552B 12%|11%| again it seems like RSYSLOG did the job. At leastagain the only times RSYSLOG are posted arething that's different after a hangit freezes is it shows rsynclogd in the I/O log.

I reainstalled rsynclog, even disabled it. It still freezes like before. I think rsysnclog is just logging something when it freezes, but it's not the problem. As in correlation does not equal causation .

I think the problem might just be the link is up/link is down, since i notice the "Freezes" while logged in trough SSH or connecting my web server. This might make it seem like it's frozen, while it's just the network link.

update: ok it just hung again after the 2 apache2 on the right: 0 0 |iotop 4507 40k 525B 11%||11%| 0 0 |iotop 4507 36k 427B 11%||apache2 2601 0 8192B 10% 0 0 |iotop 4507 42k 649B 11%||11%| 0 0 |iotop 4507 37k 646B 12%|11%| 0 0 |sshd: bananapi@pts/4 4549 206B 280B 0%|11%| 0 0 |iotop 4507 39k 619B 11%||11%| 0 0 |iotop 4507 37k 546B 11%||apache2 2601 0 4096B4.5% 0 0 |iotop 4507 40k 731B 11%||11%| 0 0 |iotop 4507 38k 601B 11%||rsyslogd 285 0 8192B 0% 0 0 |sshd: bananapi@pts/4 4549 249B 328B 0%|11%| 0 0 |iotop 4507 42k 654B5.5%|11%| 0 0 |iotop 4507 37k 476B 11%||11%| 0 0 |iotop 4507 39k 605B 11%||11%| 0 0 |iotop 4507 38k 406B 11%||jbd2/sda1-8 55 0 8192B 0% 0 0 |iotop 4507 40k 649B 12%|11%| 0 0 |sshd: bananapi@pts/1 3785 649B 692B 0%|11%| 0 0 |iotop 4507 36k 551B 11%||11%| 0 0 |iotop 4507 42k 534B 11%||11%| 0 0 |iotop 4507 37k 521B 11%||11%| 0 0 |iotop 4507 39k 605B 11%||11%| 0 0 |sshd: bananapi@pts/4 4549 206B 280B 0%|11%| 0 0 |iotop 4507 37k 431B5.5%|11%| 0 0 |iotop 4507 40k 533B 11%||11%| 0 0 |iotop 4507 37k 385B 11%||rsyslogd 285 0 8192B 0% 0 0 |iotop 4507 42k 524B 11%||11%| 0 0 |iotop 4507 16k 0 11%||apache2 2666 0 4096B 10% 0 0 |iotop 4507 21k 513B2.0%|11%| 0 0 |iotop 4507 39k 608B 12%|11%| 0 0 |iotop 4507 38k 406B 11%||jbd2/sda1-8 55 0 32k 0% 0 0 |iotop 4507 40k 650B 11%||11%| 0 0 |iotop 4507 36k 552B 12%|11%| again it seems like RSYSLOG did the job. At least the only times RSYSLOG are posted are after a hang.

update: again the only thing that's different after it freezes is it shows rsynclogd in the I/O log.

I reainstalled rsynclog, even disabled it. It still freezes like before. I think rsysnclog is just logging something when it freezes, but it's not the problem. As in correlation does not equal causation .

I think the problem might just be the link is up/link is down, since i notice the "Freezes" while logged in trough SSH or connecting my web server. This might make it seem like it's frozen, while it's just the network link.

    Tweeted twitter.com/StackUnix/status/655882547449221120
5 added 1204 characters in body
source | link
4 added 910 characters in body
source | link
3 added 3826 characters in body
source | link
2 added 66 characters in body; edited tags; edited title
source | link
1
source | link