From bae3bb7d4e73ed9b0f9c6be9ec3fbeda9e0abc92 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 7 Jan 2013 13:14:02 -0500 Subject: [PATCH] possible pid fix --- bin/innodb/backfill_threaded.php | 2 +- bin/innodb/lib/PowerProcess.class.php | 8 ++++---- bin/innodb/update_binaries_threaded.php | 2 +- bin/myisam/PowerProcess.class.php | 8 ++++---- bin/myisam/backfill_threaded.php | 2 +- bin/myisam/update_binaries_threaded.php | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/innodb/backfill_threaded.php b/bin/innodb/backfill_threaded.php index 83ab46387..eeca1755f 100755 --- a/bin/innodb/backfill_threaded.php +++ b/bin/innodb/backfill_threaded.php @@ -10,7 +10,7 @@ unset($groups); $ps = new PowerProcess; $ps->RegisterCallback('psUpdateComplete'); -$ps->SetMaxThreads = 6; +$ps->SetMaxThreads = 10; $ps->SetThreadTimeLimit = 0; // Disable child timeout echo "Starting threaded backfill process\n"; diff --git a/bin/innodb/lib/PowerProcess.class.php b/bin/innodb/lib/PowerProcess.class.php index 0cb446edc..c9591335e 100755 --- a/bin/innodb/lib/PowerProcess.class.php +++ b/bin/innodb/lib/PowerProcess.class.php @@ -129,7 +129,7 @@ class PowerProcess { * * @var integer */ - private $tickCount = 300000; + private $tickCount = 200000; /** * Whether to add a timestamp to log output @@ -269,7 +269,7 @@ class PowerProcess { * * @return object Instanced PowerProcess object */ - public function __construct($maxThreads = 10, $threadTimeLimit = 300, $daemon = false, $logTo = false, $debugLogging = false) { + public function __construct($maxThreads = 20, $threadTimeLimit = 0, $daemon = false, $logTo = false, $debugLogging = false) { if (function_exists('pcntl_fork') && function_exists('posix_getpid')) { // Set the current thread name $this->currentThread = 'CONTROL'; @@ -494,7 +494,7 @@ class PowerProcess { * * @param integer $maxThreads The max number of threads to run concurrently */ - public function SetMaxThreads($maxThreads = 10) { + public function SetMaxThreads($maxThreads = 20) { $this->maxThreads = $maxThreads; } @@ -503,7 +503,7 @@ class PowerProcess { * * @param integer $threadTimeLimit The max number of seconds a thread can run */ - public function SetThreadTimeLimit($threadTimeLimit = 300) { + public function SetThreadTimeLimit($threadTimeLimit = 0) { $this->threadTimeLimit = $threadTimeLimit; } diff --git a/bin/innodb/update_binaries_threaded.php b/bin/innodb/update_binaries_threaded.php index 35af4ce9d..9f550df29 100755 --- a/bin/innodb/update_binaries_threaded.php +++ b/bin/innodb/update_binaries_threaded.php @@ -11,7 +11,7 @@ unset($groups); $ps = new PowerProcess; $ps->RegisterCallback('psUpdateComplete'); -$ps->SetMaxThreads = 6; +$ps->SetMaxThreads = 10; $ps->SetThreadTimeLimit = 0; // Disable child timeout echo "Starting threaded binary update process\n"; diff --git a/bin/myisam/PowerProcess.class.php b/bin/myisam/PowerProcess.class.php index 0cb446edc..32e0e1f3d 100755 --- a/bin/myisam/PowerProcess.class.php +++ b/bin/myisam/PowerProcess.class.php @@ -129,7 +129,7 @@ class PowerProcess { * * @var integer */ - private $tickCount = 300000; + private $tickCount = 200000; /** * Whether to add a timestamp to log output @@ -269,7 +269,7 @@ class PowerProcess { * * @return object Instanced PowerProcess object */ - public function __construct($maxThreads = 10, $threadTimeLimit = 300, $daemon = false, $logTo = false, $debugLogging = false) { + public function __construct($maxThreads = 20, $threadTimeLimit = 0, $daemon = false, $logTo = false, $debugLogging = false) { if (function_exists('pcntl_fork') && function_exists('posix_getpid')) { // Set the current thread name $this->currentThread = 'CONTROL'; @@ -494,7 +494,7 @@ class PowerProcess { * * @param integer $maxThreads The max number of threads to run concurrently */ - public function SetMaxThreads($maxThreads = 10) { + public function SetMaxThreads($maxThreads = 0) { $this->maxThreads = $maxThreads; } @@ -503,7 +503,7 @@ class PowerProcess { * * @param integer $threadTimeLimit The max number of seconds a thread can run */ - public function SetThreadTimeLimit($threadTimeLimit = 300) { + public function SetThreadTimeLimit($threadTimeLimit = 0) { $this->threadTimeLimit = $threadTimeLimit; } diff --git a/bin/myisam/backfill_threaded.php b/bin/myisam/backfill_threaded.php index f6910957f..b38acffc7 100755 --- a/bin/myisam/backfill_threaded.php +++ b/bin/myisam/backfill_threaded.php @@ -12,7 +12,7 @@ unset($groups); $ps = new PowerProcess; $ps->RegisterCallback('psUpdateComplete'); -$ps->SetMaxThreads = 6; +$ps->SetMaxThreads = 10; $ps->SetThreadTimeLimit = 0; // Disable child timeout echo "Starting threaded backfill process\n"; diff --git a/bin/myisam/update_binaries_threaded.php b/bin/myisam/update_binaries_threaded.php index 1924ad320..2110df70c 100755 --- a/bin/myisam/update_binaries_threaded.php +++ b/bin/myisam/update_binaries_threaded.php @@ -11,7 +11,7 @@ unset($groups); $ps = new PowerProcess; $ps->RegisterCallback('psUpdateComplete'); -$ps->SetMaxThreads = 6; +$ps->SetMaxThreads = 10; $ps->SetThreadTimeLimit = 0; // Disable child timeout echo "Starting threaded binary update process\n";