Giuseppe Lavagetto has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/324866

Change subject: mediawiki::hhvm: bump up the number of malloc arenas
......................................................................

mediawiki::hhvm: bump up the number of malloc arenas

Bug: T151702
Change-Id: I6ea03d6a71bdd5bd9e6ebb7ae7803a88f798d01f
---
M modules/mediawiki/manifests/hhvm.pp
1 file changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/66/324866/1

diff --git a/modules/mediawiki/manifests/hhvm.pp 
b/modules/mediawiki/manifests/hhvm.pp
index 0743cd0..2dbdf83 100644
--- a/modules/mediawiki/manifests/hhvm.pp
+++ b/modules/mediawiki/manifests/hhvm.pp
@@ -5,9 +5,6 @@
 class mediawiki::hhvm {
     requires_os('ubuntu >= trusty || Debian >= jessie')
 
-    # Number of malloc arenas to use, see T151702
-    # HHVM defaults to 1
-    $malloc_arenas = hiera('mediawiki::hhvm::malloc_arenas', $::processorcount)
     include ::hhvm::admin
     include ::hhvm::monitoring
     include ::hhvm::debug
@@ -22,6 +19,11 @@
         floor(to_bytes($::memorysize) / to_bytes('120M')),
         $::processorcount*4)
 
+    # Number of malloc arenas to use, see T151702
+    # HHVM defaults to 1
+    # We want to have the same number of arenas as our threads
+    $malloc_arenas = $max_threads
+
     class { '::hhvm':
         # lint:ignore:arrow_alignment
         user          => $::mediawiki::users::web,

-- 
To view, visit https://gerrit.wikimedia.org/r/324866
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6ea03d6a71bdd5bd9e6ebb7ae7803a88f798d01f
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to