Hi.
I have some accounts of my PCs running and syncing with Nextcloud client from Windows and MacOS, everything seems to work fine, but I don’t know if it can work better.
My hardware is a dedicated PC for Nextcloud with a modern 12-thread CPU, 64GB RAM and 40TB RAID-5 storage.
I have version 25.0.4 installed and working correctly on Ubuntu 22.04.2 LTS with all the updates applied.
On my PCs I have yet to synchronize more data that I am rearranging within their respective Nextcloud folders. The data load will be constant as I keep reordering my files.
After the installation process I followed the performance improvement guides, and apparently everything works OK. However, every 4 or 5 days I see in the Overview of my admin user, that the message appears saying that the opcache is not correctly configured:
“The OPcache buffer is nearly full. To assure that all scripts can be hold in cache, it is recommended to apply opcache.memory_consumption
to your PHP configuration with a value higher than 8
.”
I have made the indicated modifications to the /etc/php/8.1/fpm/php.ini file and I have been increasing the opcache.memory_consumption, but the message still appears days later.
I understand that the values are in Megabytes, so now I have 8 GB allocated for that parameter, but it seems to be of no use:
[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=8192
opcache.save_comments=1
opcache.revalidate_freq=60
The only way to temporarily avoid the appearance of this message in the system check is to change the value that I indicate, and restart php8.1-fpm and apache2. But the message keeps popping up days later.
I’m not worried about having that amount of memory allocated, but I don’t know if it’s done correctly, or if I should modify more parameters to fix this problem.
Am I editing the correct ini file?
Are there also other ways to allocate cache to improve the performance of my dedicated computer?
If I have 64GB of RAM, could I allocate for example 48GB for caches?
Maybe a RAM-drive for cache?
Thanx in advance.