/[smecontribs]/rpms/smeserver-nextcloud/contribs10/smeserver-nextcloud-1.2.0-bz12299-opcache.patch
ViewVC logotype

Annotation of /rpms/smeserver-nextcloud/contribs10/smeserver-nextcloud-1.2.0-bz12299-opcache.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Jan 10 05:58:49 2023 UTC (21 months, 3 weeks ago) by jpp
Branch: MAIN
CVS Tags: smeserver-nextcloud-1_2_0-29_el7_sme, smeserver-nextcloud-1_2_0-22_el7_sme, smeserver-nextcloud-1_2_0-26_el7_sme, smeserver-nextcloud-1_2_0-27_el7_sme, smeserver-nextcloud-1_2_0-31_el7_sme, smeserver-nextcloud-1_2_0-24_el7_sme, smeserver-nextcloud-1_2_0-30_el7_sme, smeserver-nextcloud-1_2_0-25_el7_sme, smeserver-nextcloud-1_2_0-23_el7_sme, smeserver-nextcloud-1_2_0-21_el7_sme, smeserver-nextcloud-1_2_0-28_el7_sme, HEAD
Changes since 1.1: +1 -1 lines
* Mon Jan 09 2023 Jean-Philippe Pialasse <tests@pialasse.com> 1.2.0-21.sme
- update disabled_fucntions list [SME: 12277]
- allow customization of opcache for Nextcloud see wiki [SME: 12299]
- actions scripts update

1 jpp 1.1 diff -Nur --no-dereference smeserver-nextcloud-1.2.0.old/root/etc/e-smith/templates/etc/opt/remi/php74/php.d/20-opcache.ini/10base smeserver-nextcloud-1.2.0/root/etc/e-smith/templates/etc/opt/remi/php74/php.d/20-opcache.ini/10base
2     --- smeserver-nextcloud-1.2.0.old/root/etc/e-smith/templates/etc/opt/remi/php74/php.d/20-opcache.ini/10base 2020-11-08 15:18:40.000000000 -0500
3     +++ smeserver-nextcloud-1.2.0/root/etc/e-smith/templates/etc/opt/remi/php74/php.d/20-opcache.ini/10base 2023-01-09 23:02:44.565000000 -0500
4     @@ -1,7 +1,9 @@
5     opcache.enable=1
6     -opcache.enable_cli=1
7     -opcache.interned_strings_buffer=8
8     -opcache.max_accelerated_files=10000
9     -opcache.memory_consumption=128
10     -opcache.save_comments=1
11     -opcache.revalidate_freq=1
12     +opcache.file_cache= /var/opt/remi/php74/lib/php/opcache
13     +opcache.enable_cli= 1
14     +opcache.interned_strings_buffer= {$nextcloud{'opcache.interned_strings_buffer'} || 16;}
15     +opcache.max_accelerated_files= 10000
16     +opcache.memory_consumption= {$nextcloud{'opcache.memory_consumption'} || 128;}
17     +opcache.save_comments= 1
18     +opcache.revalidate_freq= 1
19     +
20     diff -Nur --no-dereference smeserver-nextcloud-1.2.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud smeserver-nextcloud-1.2.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud
21     --- smeserver-nextcloud-1.2.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud 2023-01-09 22:51:30.781000000 -0500
22     +++ smeserver-nextcloud-1.2.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud 2023-01-09 23:03:13.633000000 -0500
23     @@ -14,6 +14,8 @@
24     my $start_servers = $nextcloud{'PHPstartServers'} || 6;
25     my $max_spare_servers = $nextcloud{'PHPmaxServers'} || 8;
26     my $max_requests = $nextcloud{'PHPmaxRequests'} || 1000;
27     + my $opcacheBuff = $nextcloud{'opcache.interned_strings_buffer'} || 16;
28     + my $opcacheMem = $nextcloud{'opcache.memory_consumption'} || 128;
29     $min_spare_servers = ( $min_spare_servers > $max_spare_servers ) ? printf("%.0f",$max_spare_servers/2) : $min_spare_servers;
30     $start_servers = ( $start_servers > $max_spare_servers ) ? printf("%.0f", $max_spare_servers /2 + $min_spare_servers/2 ) : $start_servers;
31    
32     @@ -35,7 +37,6 @@
33     php_admin_value[sys_temp_dir] = /var/lib/php/$id/tmp
34     php_admin_value[session.save_path] = /var/lib/php/$id/session
35     php_admin_value[session.gc_maxlifetime] = 86400
36     -php_admin_value[opcache.file_cache] = /var/lib/php/$id/opcache
37     php_admin_value[upload_tmp_dir] = /var/lib/php/$id/tmp
38     php_admin_value[error_log] = /var/log/php/$id/error.log
39     slowlog = /var/log/php/nextcloud/slow.log
40     @@ -56,6 +57,16 @@
41     php_admin_value[session.save_handler] = files
42     php_admin_flag[output_buffering] = off
43    
44     +; Set opcache settings
45 jpp 1.2 +;php_value[opcache.enable]=1 ;if already set in php.d/20-opcache.ini will issue warning
46 jpp 1.1 +php_value[opcache.file_cache] = /var/lib/php/$id/opcache
47     +php_value[opcache.enable_cli] = 1
48     +php_value[opcache.interned_strings_buffer] = $opcacheBuff
49     +php_value[opcache.max_accelerated_files] = 10000
50     +php_value[opcache.memory_consumption] = $opcacheMem
51     +php_value[opcache.save_comments] = 1
52     +php_value[opcache.revalidate_freq] = 1
53     +
54     _EOF
55    
56     }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed