![]() Raspberry Pi’s are cheap, use little power and are quick enough to run the required web server needed for OwnCloud. Nowadays, home connections are quick enough thanks to fibre and advances and speed gains in ADSL. I’m going to assume you’ve followed my previous tutorial ‘ Create a RAID Volume on Raspberry Pi‘ first, although this is not necessary. To make our OwnCloud installation even more robust, we’re going to use a RAID volume for our storage. OwnCloud allows you to share files through an easy-to-use web interface, similar to OneDrive from Microsoft and Google Drive. Additionally, in normal mode, instability or errors writing to the SD card would suggest a defective power supply.OwnCloud is an all-in-one solution for creating cloud storage, calendar and contacts servers. You always need to consider this in all of the following tuning steps. The Rasp Pi's maximum power draw is approximately 1,100mAh. The power supplied through the micro-USB goes to the CPU, GPU, and all USB components – in particular, to the network chip. These charger power supplies reduce the voltage as the current draw drops, which makes sense for (nearly) charged tablets or smartphones, but it's a problem for the Raspberry Pi. Others have two jacks, which ostensibly deliver 2,100mAh per jack, although the total output of the power supply is only 3,600mAh. However, some USB power adapters deliver 500mAh and thus simulate a PC connection. The Rasp Pi is supplied with power through a micro-USB connector and requires a relatively constant 5 volts and at least 700mAh. The root of all evil in Rasp Pi operations surprisingly turns out to be the power supply. These programs (such as the famous Linpack benchmark for floating point performance, or Bonnie++ for I/O performance) output the readings for a before and after comparison. Alternatively, various benchmark programs can specifically generate load on individual components, such as the CPU or storage, but the results are a little artificial. Ideally, you will choose programs that come close to your application. # ln -s /usr/share/ganglia-webfrontend /var/www/gangliaĪdditionally, you still need programs that generate loads on the system for testing. Setting Up Ganglia on the Pi # apt-get install lighttpd The Sysstat package also contains iostat, with which you can measure the read and write performance of your storage. The sar command displays the results in the terminal. ![]() Sysstat includes a component that collects the measured values in the background. (See the box titled "Installing Ganglia.") If you do not need graphical analysis, install the sysstat package instead of Ganglia. On Raspbian, you only need to set up Ganglia packages the configuration work is minimal. Although Ganglia is suitable for performance monitoring in clusters, it can also handle single computers. Ganglia is a useful monitoring tool for working with the Raspberry Pi. This record saves you from having to keep an eye on the window with the top output during your tests. ![]() Sophisticated monitoring programs, however, regularly record the status of various readings and can thus provide historical data. Top provides important evidence, but only for the current status. CPU load usually isn't a problem, but if you are consistently seeing high values for the %CPU, you actually need a faster CPU.įigure 2: … if you have a high value for "wait," a more powerful CPU would just wait faster for data. A summary at the top displays the overall system load.Īs you can see in Figure 1, the overall %CPU usage is up to 98.1. The top command displays the processes running on the system and the amount of system resources each process is consuming. When beset by performance problems, experienced Linux users will turn to the top utility, which outputs information about the current system load. With performance problems of this kind, regardless of the hardware platform, the best strategy is always: measure, change, and measure again. I knew I needed to find some performance tweaks somewhere. I was able to complete the ownCloud installation, but the response times were intolerable. Recently, I tried to set up my Pi with the private cloud app ownCloud, and the sluggish performance prompted me to investigate the options for performance tuning on the Raspberry Pi. Raspberry Pi is perfectly suited for hosting your own web projects, but more complex applications can make the tiny Pi break a sweat.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |