mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +01:00
Partially removed DeadThreadsCollection parameter from firebird.conf.
Concerning complete removal of it I wait for response on my letter to devel list.
This commit is contained in:
parent
04ab0c3629
commit
a808403767
@ -447,25 +447,6 @@
|
||||
#
|
||||
#PrioritySwitchDelay = 100
|
||||
|
||||
#
|
||||
# Number of cycles of the scheduler (PrioritySwitchDelay ms) before
|
||||
# thread are destroyed/closed. Rather than immediately destroy/closed
|
||||
# worker threads (which would require a semaphore and blocking call --
|
||||
# significant overhead), the thread scheduler maintains a pool of the
|
||||
# threads. When a thread has completed it's task/work, it is marked as
|
||||
# idle. The idle thread is destroyed/closed after X iterations of the
|
||||
# scheduler loop.
|
||||
#
|
||||
# For a server with a very large number of connections (presumably more
|
||||
# than several hundred) the setting value should be increased.
|
||||
#
|
||||
# The setting represents the number of loop iterations to be made before
|
||||
# the thread is destroyed/closed.
|
||||
#
|
||||
# Type: integer
|
||||
#
|
||||
#DeadThreadsCollection = 50
|
||||
|
||||
#
|
||||
# Number of additional 'intervals' given to a 'High' priority thread.
|
||||
#
|
||||
|
@ -373,14 +373,6 @@ int Config::getPrioritySwitchDelay()
|
||||
return rc;
|
||||
}
|
||||
|
||||
int Config::getDeadThreadsCollection()
|
||||
{
|
||||
int rc = (int) sysConfig.values[KEY_DEAD_THREADS_COLLECTION];
|
||||
if (rc < 1)
|
||||
rc = 1;
|
||||
return rc;
|
||||
}
|
||||
|
||||
int Config::getPriorityBoost()
|
||||
{
|
||||
int rc = (int) sysConfig.values[KEY_PRIORITY_BOOST];
|
||||
|
@ -229,11 +229,6 @@ public:
|
||||
*/
|
||||
static int getPrioritySwitchDelay();
|
||||
|
||||
/*
|
||||
Dead threads collection
|
||||
*/
|
||||
static int getDeadThreadsCollection();
|
||||
|
||||
/*
|
||||
Priority boost
|
||||
*/
|
||||
|
@ -37,7 +37,6 @@
|
||||
|
||||
// configurable parameters
|
||||
#define THPS_TIME (Config::getPrioritySwitchDelay()) // ms between rescheds
|
||||
//#define THPS_TICKS (Config::getDeadThreadsCollection()) // sched loops before thread killing
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
Loading…
Reference in New Issue
Block a user