mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
1919. [bug] The cache memory context array was too small to
have the desired performance characteristics. [RT #15454] stop.pl Increase amount of time allowed for named to stop before aborting the server.
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -1,3 +1,7 @@
|
|||||||
|
1919. [bug] The cache memory context array was too small to
|
||||||
|
have the desired performance characteristics.
|
||||||
|
[RT #15454]
|
||||||
|
|
||||||
1919. [placeholder] rt15441
|
1919. [placeholder] rt15441
|
||||||
|
|
||||||
1918. [bug] Memory leak when checking acls. [RT #15391]
|
1918. [bug] Memory leak when checking acls. [RT #15391]
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
# $Id: stop.pl,v 1.6 2004/03/05 04:59:13 marka Exp $
|
# $Id: stop.pl,v 1.7 2005/09/28 04:36:05 marka Exp $
|
||||||
|
|
||||||
# Framework for stopping test servers
|
# Framework for stopping test servers
|
||||||
# Based on the type of server specified, signal the server to stop, wait
|
# Based on the type of server specified, signal the server to stop, wait
|
||||||
@@ -80,7 +80,7 @@ if ($use_rndc) {
|
|||||||
stop_rndc($server);
|
stop_rndc($server);
|
||||||
}
|
}
|
||||||
|
|
||||||
wait_for_servers(5, grep /^ns/, @servers);
|
wait_for_servers(30, grep /^ns/, @servers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -88,8 +88,8 @@ if ($use_rndc) {
|
|||||||
foreach my $server (@servers) {
|
foreach my $server (@servers) {
|
||||||
stop_signal($server, "TERM");
|
stop_signal($server, "TERM");
|
||||||
}
|
}
|
||||||
wait_for_servers(5, @servers);
|
|
||||||
|
|
||||||
|
wait_for_servers(60, @servers);
|
||||||
|
|
||||||
# Pass 3: SIGABRT
|
# Pass 3: SIGABRT
|
||||||
foreach my $server (@servers) {
|
foreach my $server (@servers) {
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: rbtdb.c,v 1.217 2005/09/20 04:22:45 marka Exp $ */
|
/* $Id: rbtdb.c,v 1.218 2005/09/28 04:36:06 marka Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@@ -280,7 +280,8 @@ struct acachectl {
|
|||||||
#define NXDOMAIN(header) \
|
#define NXDOMAIN(header) \
|
||||||
(((header)->attributes & RDATASET_ATTR_NXDOMAIN) != 0)
|
(((header)->attributes & RDATASET_ATTR_NXDOMAIN) != 0)
|
||||||
|
|
||||||
#define DEFAULT_NODE_LOCK_COUNT 7 /*%< Should be prime. */
|
#define DEFAULT_NODE_LOCK_COUNT 7 /*%< Should be prime. */
|
||||||
|
#define DEFAULT_CACHE_NODE_LOCK_COUNT 1009 /*%< Should be prime. */
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
nodelock_t lock;
|
nodelock_t lock;
|
||||||
@@ -594,7 +595,7 @@ adjust_quantum(unsigned int old, isc_time_t *start) {
|
|||||||
new = (new + old * 3) / 4;
|
new = (new + old * 3) / 4;
|
||||||
|
|
||||||
isc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE, DNS_LOGMODULE_CACHE,
|
isc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE, DNS_LOGMODULE_CACHE,
|
||||||
ISC_LOG_INFO, "adjust_quantum -> %d\n", new);
|
ISC_LOG_INFO, "adjust_quantum -> %d", new);
|
||||||
|
|
||||||
return (new);
|
return (new);
|
||||||
}
|
}
|
||||||
@@ -5535,10 +5536,13 @@ dns_rbtdb_create
|
|||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
goto cleanup_lock;
|
goto cleanup_lock;
|
||||||
|
|
||||||
|
if (rbtdb->node_lock_count == 0) {
|
||||||
|
if (IS_CACHE(rbtdb))
|
||||||
|
rbtdb->node_lock_count = DEFAULT_CACHE_NODE_LOCK_COUNT;
|
||||||
|
else
|
||||||
|
rbtdb->node_lock_count = DEFAULT_NODE_LOCK_COUNT;
|
||||||
|
}
|
||||||
INSIST(rbtdb->node_lock_count < (1 << DNS_RBT_LOCKLENGTH));
|
INSIST(rbtdb->node_lock_count < (1 << DNS_RBT_LOCKLENGTH));
|
||||||
|
|
||||||
if (rbtdb->node_lock_count == 0)
|
|
||||||
rbtdb->node_lock_count = DEFAULT_NODE_LOCK_COUNT;
|
|
||||||
rbtdb->node_locks = isc_mem_get(mctx, rbtdb->node_lock_count *
|
rbtdb->node_locks = isc_mem_get(mctx, rbtdb->node_lock_count *
|
||||||
sizeof(rbtdb_nodelock_t));
|
sizeof(rbtdb_nodelock_t));
|
||||||
if (rbtdb->node_locks == NULL) {
|
if (rbtdb->node_locks == NULL) {
|
||||||
|
Reference in New Issue
Block a user