Difference between revisions of "PartKeepr on Raspberry Pi"

From PartKeepr Wiki
Jump to: navigation, search
Line 1: Line 1:
[[User:Felicitus]] finally received his Raspberry Pi.
+
PartKeepr can run on a Raspberry Pi.
  
Experiences:
+
== Raspberry Pi ==
* Initial test without APC was very slow, resulted in request timeouts
 
* The kernel crashed twice while installing, so probably there are a few kernel bugs to iron out (not a PartKeepr fault)
 
* Second test with APC installed resulted in much better response times, but still very slow.
 
* Memory usage is OK (100M/200M used)
 
  
I will take the opportunity to use the Raspberry Pi to optimize PartKeepr, hopefully I can make it more speedy.
+
 
 +
== Raspberry Pi 2 ==
 +
 
 +
PartKeepr 0.76 was tested on a Raspberry Pi 2 running on Apache and mod_php 5.6. It's not very fast, but usable.
 +
 
 +
Initial login to PartKeepr may take a while. As soon as data is cached, logins should become faster.
 +
 
 +
In order to achieve best performance, you should ensure that:
 +
* Ensure your [http://php.net/manual/en/info.configuration.php max_execution_time] is set to 120 seconds or higher, this is required for the setup.
 +
* [http://php.net/manual/en/opcache.configuration.php#ini.opcache.enable Opcache] enabled
 +
* PHP-APCu installed and enabled with both [https://github.com/partkeepr/PartKeepr/blob/master/app/config/parameters.php.dist#L122 cache.dunglas] and [https://github.com/partkeepr/PartKeepr/blob/master/app/config/parameters.php.dist#L132 cache.doctrine]
 +
* Ensure you don't have [http://xdebug.org/ xdebug] installed - it slows down PHP and is only used for debugging.
 +
* Using a fast SD card (Class 10 or better)
 +
 
 +
Loading a page with 50 parts takes about 3-4 seconds. Without opcache and APC, load times for a page with 50 parts takes about 9 seconds.

Revision as of 13:24, 13 December 2015

PartKeepr can run on a Raspberry Pi.

Raspberry Pi

Raspberry Pi 2

PartKeepr 0.76 was tested on a Raspberry Pi 2 running on Apache and mod_php 5.6. It's not very fast, but usable.

Initial login to PartKeepr may take a while. As soon as data is cached, logins should become faster.

In order to achieve best performance, you should ensure that:

  • Ensure your max_execution_time is set to 120 seconds or higher, this is required for the setup.
  • Opcache enabled
  • PHP-APCu installed and enabled with both cache.dunglas and cache.doctrine
  • Ensure you don't have xdebug installed - it slows down PHP and is only used for debugging.
  • Using a fast SD card (Class 10 or better)

Loading a page with 50 parts takes about 3-4 seconds. Without opcache and APC, load times for a page with 50 parts takes about 9 seconds.