Re: [Pdns-users] pdns-recursor -- max memory limit
Hi Matt, You may simply use empirical dependence from cache entries to memory usage. I set max-cache-entries=200 and have approximately 500 ( +- 15 Mb, less than 1 percent )Mb of memory usage on my recursor boxes. Is there a way to set the max amount of memory used by pdns-recursor? I know that there is a setting for max-cache-entries, but I want to set this value based on memory used, not by a count of entries. For example, I have a server with 2 GB dedicated to this and I want to allocate 1.5 GB of that available ram to the cache. -Matt ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users -- Sergey Alexanov SA1215-RIPE [EMAIL PROTECTED] ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
RE: [Pdns-users] pdns-recursor -- max memory limit
Thanks for the info. I was hoping someone had stats on the number of entries and memory usage. -Matt -Original Message- From: Sergey Alexanov [mailto:[EMAIL PROTECTED] Sent: Monday, January 08, 2007 10:09 AM To: Matt Patterson Cc: pdns-users@mailman.powerdns.com Subject: Re: [Pdns-users] pdns-recursor -- max memory limit Hi Matt, You may simply use empirical dependence from cache entries to memory usage. I set max-cache-entries=200 and have approximately 500 ( +- 15 Mb, less than 1 percent )Mb of memory usage on my recursor boxes. Is there a way to set the max amount of memory used by pdns-recursor? I know that there is a setting for max-cache-entries, but I want to set this value based on memory used, not by a count of entries. For example, I have a server with 2 GB dedicated to this and I want to allocate 1.5 GB of that available ram to the cache. -Matt ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users -- Sergey Alexanov SA1215-RIPE [EMAIL PROTECTED] ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] pdns-recursor -- max memory limit
On Mon, Jan 08, 2007 at 10:18:16AM -0600, Matt Patterson wrote: Thanks for the info. I was hoping someone had stats on the number of entries and memory usage. There is no hard and fast rule. As I stated earlier: Also new in this version is 'max-cache-entries' which allows you to limit the cache to say, a reasonable 1 million entries. I'd love to be able to have you specify a limit in megabytes but it is very hard to measure actual memory usage. DJBDNS can do it but it requires too much work to do it from c++. The actual usage will depend on the version of compiler, cpu type, version of 'boost' library and usage patterns. 99% of people can get away with 'max-cache-entries=100' and be on the safe side. Bert -- http://www.PowerDNS.com Open source, database driven DNS Software http://netherlabs.nl Open and Closed source services ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users