6

My Raspberry Pi B+ has started to freeze randomly for a few seconds only to continue as if nothing has happened.

I'm connecting over SSH only (no keyboard/monitor) and at least once a minute it will freeze for about 10-60 seconds.

I already have

  • reinstalled the OS (now Linux raspy 3.18.13+)
  • disconnected everything (only power/ethernet remain)
  • changed the power adapter
  • downgraded/upgraded the firmware

Is there anything else that could be the problem?


Update:

  • Ping sometimes times out while it is unresponsive
  • No messages in /var/log/syslog and dmesg

  • trying different firmwares (with rpi-update) had no effect.
laktak
  • 181
  • 1
  • 7

3 Answers3

1

Your I/O could do such things. For example, if your SD card is slow and you start to do some writes, then your Linux session may be slow to process commands. You will still be able to type commands, but execution may be delayed for several seconds during heavy writes.

In this case, if you have a slow SD card (Class 4 or slower), then I would try to upgrade to Class 10 and see if that will help.

nochkin
  • 461
  • 2
  • 6
1

If it's a fresh install (without any firewall) check if you are not victim of a brut force attack by typing :

sudo tail -f /var/log/auth.log

If you see something like

May 10 06:25:12 raspberrypi sshd[26518]: Failed password for root from XX.XX.XX.XX port XXXX ssh2

then you should consider configure iptables and fail2ban...

jeje
  • 221
  • 1
  • 6
1

I discovered I actually had two issues:

  • slow when connecting to the Pi, this was solved by adding UseDNS no to /etc/ssh/sshd_config

  • freeze during ssh - I had less issues after reinstalling the OS but after upgrading to jessie the freezes disappeared completely

laktak
  • 181
  • 1
  • 7