Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System is very slow time to time #35

Open
papaiatis opened this issue Mar 24, 2020 · 5 comments
Open

System is very slow time to time #35

papaiatis opened this issue Mar 24, 2020 · 5 comments

Comments

@papaiatis
Copy link

papaiatis commented Mar 24, 2020

Got a banana pi m2 zero and followed the instructions in this repo to flash and install ubuntu onto it.

I noticed that from time to time (well, quite often) the system becomes very slow. Downloading packages from the Internet is very slow (~10-40kB/s), typing characters in SSH terminal appears very slowly, some commands just hang for a while (a couple of minutes, even a single cd some-dir command). But then it all starts working fine again for a while.
I suspect this is some kind of I/O issue. I use a SanDisk ULTRA 8GB Class10 card. I also attached an external antenna to the WiFi chip.

Also, in some rare cases, the system gets totally unreachable.

After fresh system setup I only installed Python 3.7 and OctoPrint (which runs in the background) and enabled UART3 in kernel.
Speaking of kernel, I have 4.17.4-m2z. Should I just simply upgrade it?

Any idea what could be wrong?

I monitored system resources with top for a while and I didn't see high CPU load or low number of available memory.

@avafinger
Copy link
Owner

avafinger commented Mar 24, 2020

Try this:

edit /etc/network/interfaces and uncomment:

Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi)

wireless-mode Managed
wireless-power off  

and reboot

@papaiatis
Copy link
Author

I have these wifi settings already enabled in interfaces file.

@avafinger
Copy link
Owner

avafinger commented Mar 24, 2020

Wifi has BT embedded and i also enabled eth0 (which i use). There is a report it takes a long time to connect to wifi, maybe you disable eth0 interface or blacklist the eth interface and also BT if you are not using it. Let's see if it helps.

Maybe this can help: #33 (comment)

  • move to a new kernel, see the releases for the last kernel or other version.

@papaiatis
Copy link
Author

I do not suspect networking as the root cause of this problem. Rather, I think, it's more like a general I/O problem. Do you know any steps to check I/O performance or issues?

@avafinger
Copy link
Owner

iotop
iostat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants