com presentations: HP slide: etsy15.html slides/intro/php7_ perf.xml
| From: | Rasmus Lerdorf | Date: | Wed, 11 Nov 2015 07:03:13 +0000 |
| Subject: | com presentations: HP slide: etsy15.html slides/intro/php7_ perf.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-2141@lists.php.net to get a copy of this message | ||
Commit: 85ff02a2ab02f1b799ddbabf832f03e43dc6137e
Author: Rasmus Lerdorf <rasmus@php.net> Tue, 10 Nov 2015 23:03:13 -0800
Parents: 7773455e9ee9ff06acad16348627e0c130543b09
Branches: master
Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=85ff02a2ab02f1b799ddbabf832f03e43dc6137e
Log:
HP slide
Changed paths:
M etsy15.html
M slides/intro/php7_perf.xml
Diff:
diff --git a/etsy15.html b/etsy15.html
index f61f33c..f51b675 100644
--- a/etsy15..html
+++ b/etsy15.html
@@ -590,7 +590,21 @@ echo memory_get_usage(true);
<li style="font-size: 1em;list-style-type: none;">plus hundreds of
micro-optimizations</li>
</ul>
</section>
-<section id="php7detail3">
+<section id="php7perfdetail3">
+ <p class="p" style="font-size:1.1em;">HugePage support in
Opcache</p>
+ <pre><code class="shell nohighlight" data-trim
style="font-size:1..1em;">./configure --enable-huge-code-pages</code></pre>
+ <pre><code class="ini" data-trim
style="font-size:1.1em;">opcache.memory_consumption=256
+opcache.huge_code_pages=1</code></pre>
+ <pre><code class="shell nohighlight" data-trim
style="font-size:1.1em;">% sysctl -w vm.nr_hugepages=256
+% service php-fpm start
+% cat /proc/meminfo | grep Huge
+HugePages_Total: 256
+HugePages_Free: 231
+HugePages_Rsvd: 119
+HugePages_Surp: 0
+Hugepagesize: 2048 kB</code></pre>
+ </section>
+<section id="php7detail4">
<h1 style="text-align:center;">JIT?</h1>
</section> </section>
<section>
diff --git a/slides/intro/php7_perf.xml b/slides/intro/php7_perf.xml
index aa60ebe..5b50f80 100644
--- a/slides/intro/php7_perf.xml
+++ b/slides/intro/php7_perf.xml
@@ -30,6 +30,29 @@ echo memory_get_usage(true);
<bullet fontsize="1em" type="none">plus hundreds of
micro-optimizations</bullet>
</list>
-<break lines="1" section="php7detail3"/>
+<break lines="1" section="php7perfdetail3"/>
+<blurb fontsize="1.1em">HugePage support in Opcache</blurb>
+
+<example fontsize="1.1em" result='0' type="shell
nohighlight"><![CDATA[
+./configure --enable-huge-code-pages
+]]></example>
+
+<example fontsize="1.1em" result='0' type="ini"><![CDATA[
+opcache.memory_consumption=256
+opcache.huge_code_pages=1
+]]></example>
+
+<example fontsize="1.1em" result='0' type="shell
nohighlight"><![CDATA[
+% sysctl -w vm.nr_hugepages=256
+% service php-fpm start
+% cat /proc/meminfo | grep Huge
+HugePages_Total: 256
+HugePages_Free: 231
+HugePages_Rsvd: 119
+HugePages_Surp: 0
+Hugepagesize: 2048 kB
+]]></example>
+
+<break lines="1" section="php7detail4"/>
<blurb fontsize="20em" align="center">JIT?</blurb>
</slide>