Speed up archive.php?

Are there any ways to speed the archive.php process?

My setup:

I’m running it via ssh with around 2,5 mio PIs a day on an Amazon EC2 instance ( M1 Large Instance 7.5 GiB of memory, 4 EC2 Compute Units (2 virtual cores with 2 EC2 Compute Units each), 850 GB of local instance storage, 64-bit platform - PHP/APC/max_memory 3GB + MySQL on the same server, only reporting, no tracking )

CPU usage is in avg 25% but archive.php still needs couple of hours to process all reports. ( Archived website id = 7, period = day, Time elapsed: 2565.983s …)

What can I do to decrease the runtime of archive.php?

Thanks already for this great software!

Cheers
Malte

Check out: Optimize and Scale Piwik - Analytics Platform - Matomo