diff --git a/CHANGES b/CHANGES index c324af523a..ba1e4e89a8 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,10 @@ +2251. [placeholder] + +2250. [func] New flag 'memstatistics' to state whether the + memory statistics file should be written or not. + Additionally named's -m option will cause the + statistics file to be written. [RT #17113] + 2249. [bug] Only set Authentic Data bit if client requested DNSSEC, per RFC 3655 [RT #17175] diff --git a/bin/named/include/named/globals.h b/bin/named/include/named/globals.h index 0e9f2e11d4..de0c084fb3 100644 --- a/bin/named/include/named/globals.h +++ b/bin/named/include/named/globals.h @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: globals.h,v 1.72 2007/06/19 23:46:59 tbox Exp $ */ +/* $Id: globals.h,v 1.73 2007/09/26 03:22:43 marka Exp $ */ #ifndef NAMED_GLOBALS_H #define NAMED_GLOBALS_H 1 @@ -114,6 +114,7 @@ EXTERN const char * ns_g_username INIT(NULL); EXTERN int ns_g_listen INIT(3); EXTERN isc_time_t ns_g_boottime; +EXTERN isc_boolean_t ns_g_memstatistics INIT(ISC_FALSE); #undef EXTERN #undef INIT diff --git a/bin/named/main.c b/bin/named/main.c index 1ec8b18196..f2a3e74a8c 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: main.c,v 1.157 2007/06/18 23:47:18 tbox Exp $ */ +/* $Id: main.c,v 1.158 2007/09/26 03:22:43 marka Exp $ */ /*! \file */ @@ -912,7 +912,8 @@ main(int argc, char *argv[]) { isc_mem_stats(ns_g_mctx, stdout); isc_mutex_stats(stdout); } - if (memstats != NULL) { + + if (ns_g_memstatistics && memstats != NULL) { FILE *fp = NULL; result = isc_stdio_open(memstats, "w", &fp); if (result == ISC_R_SUCCESS) { diff --git a/bin/named/server.c b/bin/named/server.c index f04f4e21cc..0a934c7ee5 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: server.c,v 1.490 2007/09/12 01:09:07 each Exp $ */ +/* $Id: server.c,v 1.491 2007/09/26 03:22:43 marka Exp $ */ /*! \file */ @@ -3432,8 +3432,17 @@ load_configuration(const char *filename, ns_server_t *server, obj = NULL; if (options != NULL && - cfg_map_get(options, "memstatistics-file", &obj) == ISC_R_SUCCESS) + cfg_map_get(options, "memstatistics", &obj) == ISC_R_SUCCESS) + ns_g_memstatistics = cfg_obj_asboolean(obj); + else + ns_g_memstatistics = + ISC_TF((isc_mem_debugging & ISC_MEM_DEBUGRECORD) != 0); + + obj = NULL; + if (ns_config_get(maps, "memstatistics-file", &obj) == ISC_R_SUCCESS) ns_main_setmemstats(cfg_obj_asstring(obj)); + else if (ns_g_memstatistics) + ns_main_setmemstats("named.memstats"); else ns_main_setmemstats(NULL); diff --git a/bin/tests/system/cacheclean/clean.sh b/bin/tests/system/cacheclean/clean.sh index d56b568242..10388ba0a2 100644 --- a/bin/tests/system/cacheclean/clean.sh +++ b/bin/tests/system/cacheclean/clean.sh @@ -15,11 +15,11 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.5 2007/06/19 23:47:00 tbox Exp $ +# $Id: clean.sh,v 1.6 2007/09/26 03:22:43 marka Exp $ # # Clean up after cache cleaner tests. # rm -f dig.out.ns2 - +rm -f */named.memstats diff --git a/bin/tests/system/checknames/clean.sh b/bin/tests/system/checknames/clean.sh index 7f765da55b..f0c46de9a3 100644 --- a/bin/tests/system/checknames/clean.sh +++ b/bin/tests/system/checknames/clean.sh @@ -14,10 +14,11 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.5 2007/06/19 23:47:01 tbox Exp $ +# $Id: clean.sh,v 1.6 2007/09/26 03:22:43 marka Exp $ rm -f dig.out.ns?.test* rm -f nsupdate.out.test* rm -f ns1/*.example.db rm -f ns1/*.update.db rm -f ns1/*.update.db.jnl +rm -f */named.memstats diff --git a/bin/tests/system/dlv/clean.sh b/bin/tests/system/dlv/clean.sh index 5bc85aae0c..872b14f592 100644 --- a/bin/tests/system/dlv/clean.sh +++ b/bin/tests/system/dlv/clean.sh @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.4 2007/06/19 23:47:02 tbox Exp $ +# $Id: clean.sh,v 1.5 2007/09/26 03:22:43 marka Exp $ rm -f random.data rm -f ns*/named.run @@ -25,3 +25,4 @@ rm -f ns3/dlvset-* rm -f ns3/dsset-* rm -f ns3/keyset-* rm -f ns3/trusted.conf ns5/trusted.conf +rm -f */named.memstats diff --git a/bin/tests/system/dnssec/clean.sh b/bin/tests/system/dnssec/clean.sh index 34c10e1671..903717ea05 100644 --- a/bin/tests/system/dnssec/clean.sh +++ b/bin/tests/system/dnssec/clean.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.19 2007/06/19 23:47:02 tbox Exp $ +# $Id: clean.sh,v 1.20 2007/09/26 03:22:43 marka Exp $ rm -f */K* */keyset-* */dsset-* */dlvset-* */signedkey-* */*.signed */trusted.conf */tmp* rm -f ns1/root.db ns2/example.db ns3/secure.example.db @@ -25,4 +25,4 @@ rm -f ns2/private.secure.example.db rm -f */example.bk rm -f dig.out.* rm -f random.data -rm -f ns2/dlv.db +rm -f */named.memstats diff --git a/bin/tests/system/forward/clean.sh b/bin/tests/system/forward/clean.sh index 1d22983210..b2277453b3 100644 --- a/bin/tests/system/forward/clean.sh +++ b/bin/tests/system/forward/clean.sh @@ -13,9 +13,10 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.5 2007/06/19 23:47:02 tbox Exp $ +# $Id: clean.sh,v 1.6 2007/09/26 03:22:43 marka Exp $ # # Clean up after forward tests. # rm -f dig.out.* +rm -f */named.memstats diff --git a/bin/tests/system/glue/clean.sh b/bin/tests/system/glue/clean.sh index 522a6ea3e3..a3bc740c76 100644 --- a/bin/tests/system/glue/clean.sh +++ b/bin/tests/system/glue/clean.sh @@ -15,10 +15,11 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.8 2007/06/19 23:47:03 tbox Exp $ +# $Id: clean.sh,v 1.9 2007/09/26 03:22:43 marka Exp $ # # Clean up after glue tests. # rm -f dig.out ns1/cache +rm -f */named.memstats diff --git a/bin/tests/system/ixfr/clean.sh b/bin/tests/system/ixfr/clean.sh index 54f89b6351..530f458522 100644 --- a/bin/tests/system/ixfr/clean.sh +++ b/bin/tests/system/ixfr/clean.sh @@ -15,6 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.5 2007/06/19 23:47:03 tbox Exp $ +# $Id: clean.sh,v 1.6 2007/09/26 03:22:43 marka Exp $ rm -f ns1/named.conf ns1/myftp.db +rm -f */named.memstats diff --git a/bin/tests/system/limits/clean.sh b/bin/tests/system/limits/clean.sh index ef42760c53..bf226076c9 100644 --- a/bin/tests/system/limits/clean.sh +++ b/bin/tests/system/limits/clean.sh @@ -15,10 +15,10 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.10 2007/06/19 23:47:03 tbox Exp $ +# $Id: clean.sh,v 1.11 2007/09/26 03:22:44 marka Exp $ # # Clean up after limits tests. # rm -f dig.out.* - +rm -f */named.memstats diff --git a/bin/tests/system/masterfile/clean.sh b/bin/tests/system/masterfile/clean.sh index 5c43e2e1fb..d90a65dc67 100644 --- a/bin/tests/system/masterfile/clean.sh +++ b/bin/tests/system/masterfile/clean.sh @@ -15,6 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.4 2007/06/19 23:47:04 tbox Exp $ +# $Id: clean.sh,v 1.5 2007/09/26 03:22:44 marka Exp $ rm -f dig.out +rm -f */named.memstats diff --git a/bin/tests/system/masterformat/clean.sh b/bin/tests/system/masterformat/clean.sh index 9bf8e35708..1909dc2ed3 100755 --- a/bin/tests/system/masterformat/clean.sh +++ b/bin/tests/system/masterformat/clean.sh @@ -14,9 +14,10 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.4 2007/06/19 23:47:04 tbox Exp $ +# $Id: clean.sh,v 1.5 2007/09/26 03:22:44 marka Exp $ rm -f named-compilezone rm -f ns1/example.db.raw rm -f ns2/example.db rm -f dig.out.* +rm -f */named.memstats diff --git a/bin/tests/system/notify/clean.sh b/bin/tests/system/notify/clean.sh index a9e6ee1ea3..6a08babd5f 100644 --- a/bin/tests/system/notify/clean.sh +++ b/bin/tests/system/notify/clean.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.11 2007/06/19 23:47:04 tbox Exp $ +# $Id: clean.sh,v 1.12 2007/09/26 03:22:44 marka Exp $ # # Clean up after zone transfer tests. @@ -23,4 +23,4 @@ rm -f ns3/example.bk dig.out.ns2 dig.out.ns3 rm -f ns2/example.db - +rm -f */named.memstats diff --git a/bin/tests/system/nsupdate/clean.sh b/bin/tests/system/nsupdate/clean.sh index 43d4543f7e..565c97ba7f 100644 --- a/bin/tests/system/nsupdate/clean.sh +++ b/bin/tests/system/nsupdate/clean.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.11 2007/06/19 23:47:04 tbox Exp $ +# $Id: clean.sh,v 1.12 2007/09/26 03:22:44 marka Exp $ # # Clean up after zone transfer tests. @@ -25,7 +25,4 @@ rm -f dig.out.ns1 dig.out.ns2 dig.out.ns1.after ns1/*.jnl ns2/*.jnl \ ns1/example.db ns1/update.db rm -f ns2/example.bk rm -f ns2/update.bk - - - - +rm -f */named.memstats diff --git a/bin/tests/system/relay/clean.sh b/bin/tests/system/relay/clean.sh index a96484b9e6..20a8723323 100644 --- a/bin/tests/system/relay/clean.sh +++ b/bin/tests/system/relay/clean.sh @@ -15,11 +15,11 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.5 2007/06/19 23:47:04 tbox Exp $ +# $Id: clean.sh,v 1.6 2007/09/26 03:22:44 marka Exp $ # # Clean up after relay transfer tests. # rm -f ns3/example.bk ns4/example.bk dig.out.ns2 dig.out.ns3 dig.out.ns4 - +rm -f */named.memstats diff --git a/bin/tests/system/rrsetorder/clean.sh b/bin/tests/system/rrsetorder/clean.sh index 7b79ae0fef..0cb15620c2 100644 --- a/bin/tests/system/rrsetorder/clean.sh +++ b/bin/tests/system/rrsetorder/clean.sh @@ -14,9 +14,9 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.5 2007/06/19 23:47:05 tbox Exp $ +# $Id: clean.sh,v 1.6 2007/09/26 03:22:44 marka Exp $ rm -f dig.out.cyclic dig.out.fixed dig.out.random rm -f ns2/root.bk rm -f ns?/named.run ns?/named.core - +rm -f */named.memstats diff --git a/bin/tests/system/sortlist/clean.sh b/bin/tests/system/sortlist/clean.sh index 02bf0cc236..bb71507cc4 100644 --- a/bin/tests/system/sortlist/clean.sh +++ b/bin/tests/system/sortlist/clean.sh @@ -15,9 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.6 2007/06/19 23:47:05 tbox Exp $ +# $Id: clean.sh,v 1.7 2007/09/26 03:22:44 marka Exp $ rm -f *.dig *.good - - - +rm -f */named.memstats diff --git a/bin/tests/system/stress/clean.sh b/bin/tests/system/stress/clean.sh index 22fdbebf4c..1a3fa60881 100644 --- a/bin/tests/system/stress/clean.sh +++ b/bin/tests/system/stress/clean.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.5 2007/06/19 23:47:05 tbox Exp $ +# $Id: clean.sh,v 1.6 2007/09/26 03:22:44 marka Exp $ rm -f reload.pid @@ -26,3 +26,4 @@ rm -f ns1/delegations.db rm -f ns2/zone0*.db rm -f ns2/zone0*.jnl +rm -f */named.memstats diff --git a/bin/tests/system/stub/clean.sh b/bin/tests/system/stub/clean.sh index 9bed6f55e7..dadd765988 100644 --- a/bin/tests/system/stub/clean.sh +++ b/bin/tests/system/stub/clean.sh @@ -15,10 +15,10 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.9 2007/06/19 23:47:05 tbox Exp $ +# $Id: clean.sh,v 1.10 2007/09/26 03:22:44 marka Exp $ # # Clean up after stub tests. # rm -f dig.out.ns3 ns3/child.example.st - +rm -f */named.memstats diff --git a/bin/tests/system/tkey/clean.sh b/bin/tests/system/tkey/clean.sh index f51f62135b..7d64de5c9b 100644 --- a/bin/tests/system/tkey/clean.sh +++ b/bin/tests/system/tkey/clean.sh @@ -15,7 +15,8 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.5 2007/06/19 23:47:06 tbox Exp $ +# $Id: clean.sh,v 1.6 2007/09/26 03:22:44 marka Exp $ rm -f dig.out.* random.data ns1/named.conf rm -f K* ns1/K* +rm -f */named.memstats diff --git a/bin/tests/system/tsig/clean.sh b/bin/tests/system/tsig/clean.sh index f008a3a9fd..47e7172b84 100644 --- a/bin/tests/system/tsig/clean.sh +++ b/bin/tests/system/tsig/clean.sh @@ -14,10 +14,11 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.5 2007/06/19 23:47:06 tbox Exp $ +# $Id: clean.sh,v 1.6 2007/09/26 03:22:44 marka Exp $ # # Clean up after tsig tests. # rm -f dig.out.* +rm -f */named.memstats diff --git a/bin/tests/system/unknown/clean.sh b/bin/tests/system/unknown/clean.sh index d5ba963bd1..98acac50e2 100644 --- a/bin/tests/system/unknown/clean.sh +++ b/bin/tests/system/unknown/clean.sh @@ -15,6 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.6 2007/06/19 23:47:06 tbox Exp $ +# $Id: clean.sh,v 1.7 2007/09/26 03:22:44 marka Exp $ rm -f dig.out +rm -f */named.memstats diff --git a/bin/tests/system/upforwd/clean.sh b/bin/tests/system/upforwd/clean.sh index 0cbb1ff809..5d4054e354 100644 --- a/bin/tests/system/upforwd/clean.sh +++ b/bin/tests/system/upforwd/clean.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.8 2007/06/19 23:47:06 tbox Exp $ +# $Id: clean.sh,v 1.9 2007/09/26 03:22:44 marka Exp $ # # Clean up after zone transfer tests. @@ -23,7 +23,4 @@ rm -f dig.out.ns1 dig.out.ns2 dig.out.ns1 dig.out.ns3 dig.out.ns1.after rm -f ns1/*.jnl ns2/*.jnl ns3/*.jnl ns1/example.db ns2/*.bk ns3/*.bk - - - - +rm -f */named.memstats diff --git a/bin/tests/system/v6synth/clean.sh b/bin/tests/system/v6synth/clean.sh index aacc84b4d5..5f9157bfda 100644 --- a/bin/tests/system/v6synth/clean.sh +++ b/bin/tests/system/v6synth/clean.sh @@ -15,6 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.4 2007/06/19 23:47:06 tbox Exp $ +# $Id: clean.sh,v 1.5 2007/09/26 03:22:44 marka Exp $ rm -f *.out +rm -f */named.memstats diff --git a/bin/tests/system/views/clean.sh b/bin/tests/system/views/clean.sh index 452f493f60..1eebccf1fc 100644 --- a/bin/tests/system/views/clean.sh +++ b/bin/tests/system/views/clean.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.13 2007/06/19 23:47:06 tbox Exp $ +# $Id: clean.sh,v 1.14 2007/09/26 03:22:44 marka Exp $ # # Clean up after zone transfer tests. @@ -23,4 +23,4 @@ rm -f ns3/example.bk dig.out.ns?.? rm -f ns2/named.conf ns2/example.db ns3/named.conf ns3/internal.bk - +rm -f */named.memstats diff --git a/bin/tests/system/xfer/clean.sh b/bin/tests/system/xfer/clean.sh index 1df49c1336..132530a65f 100644 --- a/bin/tests/system/xfer/clean.sh +++ b/bin/tests/system/xfer/clean.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.13 2007/06/19 23:47:07 tbox Exp $ +# $Id: clean.sh,v 1.14 2007/09/26 03:22:44 marka Exp $ # # Clean up after zone transfer tests. @@ -24,3 +24,4 @@ rm -f dig.out.ns2 dig.out.ns3 rm -f ns2/example.db ns2/tsigzone.db ns2/example.db.jnl rm -f ns3/example.bk ns3/tsigzone.bk ns3/example.bk.jnl +rm -f */named.memstats diff --git a/bin/tests/system/xferquota/clean.sh b/bin/tests/system/xferquota/clean.sh index 91e9455e97..9ca88306ba 100644 --- a/bin/tests/system/xferquota/clean.sh +++ b/bin/tests/system/xferquota/clean.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.13 2007/06/19 23:47:07 tbox Exp $ +# $Id: clean.sh,v 1.14 2007/09/26 03:22:44 marka Exp $ # # Clean up after zone transfer quota tests. @@ -25,3 +25,4 @@ rm -f ns1/zone*.example.db ns1/zones.conf rm -f ns2/zone*.example.bk ns2/zones.conf rm -f dig.out.* ns2/changing.bk rm -f ns1/changing.db +rm -f */named.memstats diff --git a/bin/tests/system/zonechecks/clean.sh b/bin/tests/system/zonechecks/clean.sh index b854a2cd59..c103c59b92 100644 --- a/bin/tests/system/zonechecks/clean.sh +++ b/bin/tests/system/zonechecks/clean.sh @@ -14,6 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.5 2007/06/19 23:47:07 tbox Exp $ +# $Id: clean.sh,v 1.6 2007/09/26 03:22:44 marka Exp $ rm -f *.out +rm -f */named.memstats diff --git a/doc/arm/Bv9ARM-book.xml b/doc/arm/Bv9ARM-book.xml index cc7a797f20..4b26a1846a 100644 --- a/doc/arm/Bv9ARM-book.xml +++ b/doc/arm/Bv9ARM-book.xml @@ -18,7 +18,7 @@ - PERFORMANCE OF THIS SOFTWARE. --> - + BIND 9 Administrator Reference Manual @@ -4425,6 +4425,7 @@ category notify { null; }; tkey-dhkey key_name key_tag; cache-file path_name; dump-file path_name; + memstatistics yes_or_no; memstatistics-file path_name; pid-file path_name; recursing-file path_name; @@ -4719,8 +4720,7 @@ category notify { null; }; The pathname of the file the server writes memory usage statistics to on exit. If not specified, - the default is - named.memstats. + the default is named.memstats. @@ -4932,6 +4932,19 @@ options { + + memstatistics + + + Write memory statistics to the file specfied by + memstatistics-file at exit. + The default is no unless + '-m record' is specified on the command line in + which case it is yes. + + + + dialup diff --git a/lib/isccfg/namedconf.c b/lib/isccfg/namedconf.c index 3fc3e8c4c8..628cd8352f 100644 --- a/lib/isccfg/namedconf.c +++ b/lib/isccfg/namedconf.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: namedconf.c,v 1.77 2007/09/18 00:22:31 marka Exp $ */ +/* $Id: namedconf.c,v 1.78 2007/09/26 03:22:45 marka Exp $ */ /*! \file */ @@ -630,6 +630,7 @@ options_clauses[] = { { "listen-on-v6", &cfg_type_listenon, CFG_CLAUSEFLAG_MULTI }, { "match-mapped-addresses", &cfg_type_boolean, 0 }, { "memstatistics-file", &cfg_type_qstring, 0 }, + { "memstatistics", &cfg_type_boolean, 0 }, { "multiple-cnames", &cfg_type_boolean, CFG_CLAUSEFLAG_OBSOLETE }, { "named-xfer", &cfg_type_qstring, CFG_CLAUSEFLAG_OBSOLETE }, { "pid-file", &cfg_type_qstringornone, 0 },