owncloud-archive / ubuntu-snap

1 stars 0 forks source link

Network stability #14

Closed WaaromZoMoeilijk closed 8 years ago

WaaromZoMoeilijk commented 8 years ago

Guys where the timeouts only related to MySql?

I have found some stuff we need to remember testing, since this build uses the network quite often.

#Crashes occur with high network load
The USB driver allocates memory from the kernel, and when traffic is very high (e.g. when using torrents/newsgroup downloads) this memory can be exhausted causing crashes/hangs. (Crashes with high network load can also be related to your power supply, try a powered usb hub.) You should have a line like:

`vm.min_free_kbytes = 8192`
in /etc/sysctl.conf. Try increasing that number to 16384. If that doesn't work, try adding to /boot/cmdline.txt

#### `smsc95xx.turbo_mode=N ` ####
which will reduce network throughput, but has improved stability issues for some.

Under special circumstates additional /boot/cmdline.txt options are helpful (for example using RPi as Wifi Access-Point with high Network Traffic):

`dwc_otg.dma_enable=1 dwc_otg.dma_burst_size=256`

If the above fixes do not work, you can prevent the crashes by limiting the bandwidth (This is also working sometimes if the crashes are related to power supply.):

`wondershaper wlan0 1500 1500 `
This bandwidth (~150k/s) is enough to stream video with flvstreamer and omxplayer.

(wondershaper is available in raspian: sudo apt-get install wondershaper. You could also test limiting the bandwidth in advance with wget --limit-rate=150)

http://elinux.org/R-Pi_Troubleshooting#Crashes_occur_with_high_network_load

oparoz commented 8 years ago

@ezraholm50 - Needs to be moved to pi-image so that the boot image can be modified