Re: Memory used by caching name server?

2004-06-04 Thread Rob
Olaf Hoyer wrote:
On Fri, 4 Jun 2004, Rob wrote:

named claims memory on the fly.
On Solaris, I have bind 8 seen claiming about 800MB RAM for its caching
database, being the resolver for the machine that creates from http-logs
colorful pictures and other fancy things...
Waaauw, that sounds rather dangerous to me. I have a caching nameserver
running on an old Pentium-I with 32 Mb of ram (48 Mb swap). I am still
using it in a testing enviroment, moderately using the named's cache.
So far total memory usage by the OS is very low (swap is hardly used).
I wonder if named would eat up all the ram in a production enviroment.
Can't imagine that, actually. Nowhere I have seen warnings against
such disaster. But then there is this option for the named configuration
file, that limits the cache memory usage.
Well, some colleagues have some Machines with 512MB RAM running, also
bind 9, but with no given limit on size. They serve as resolvers to
several thousands of dedicated servers (customers servers) and use more
than 200MB RAM without being limited.
The example on Solaris is in a scenarion where a dedicated host has to
chew more than 30 GB http logs a day, does reverse lookups and then does
some statistics on them, so the named has to look up pretty much domain
names...
This special host has more than 10 CPU in it, so you can imagine the
power needed...
On other hosts, where I also run named as caching resolver, I have about
3-4 MB memory footprint for normal use...
How do you actually figure out how much memory is consumed by named?
I still have no idea how to do that, so I have no idea how much
my poor old Pentium-I is suffering from the named cache
Knowing how to do that, would help me already a little further.
Regards,
Rob.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Memory used by caching name server?

2004-06-04 Thread Olaf Hoyer
On Fri, 4 Jun 2004, Rob wrote:

> >
> > named claims memory on the fly.
> > On Solaris, I have bind 8 seen claiming about 800MB RAM for its caching
> > database, being the resolver for the machine that creates from http-logs
> > colorful pictures and other fancy things...
>
> Waaauw, that sounds rather dangerous to me. I have a caching nameserver
> running on an old Pentium-I with 32 Mb of ram (48 Mb swap). I am still
> using it in a testing enviroment, moderately using the named's cache.
> So far total memory usage by the OS is very low (swap is hardly used).
>
> I wonder if named would eat up all the ram in a production enviroment.
> Can't imagine that, actually. Nowhere I have seen warnings against
> such disaster. But then there is this option for the named configuration
> file, that limits the cache memory usage.
>
Well, some colleagues have some Machines with 512MB RAM running, also
bind 9, but with no given limit on size. They serve as resolvers to
several thousands of dedicated servers (customers servers) and use more
than 200MB RAM without being limited.

The example on Solaris is in a scenarion where a dedicated host has to
chew more than 30 GB http logs a day, does reverse lookups and then does
some statistics on them, so the named has to look up pretty much domain
names...

This special host has more than 10 CPU in it, so you can imagine the
power needed...

On other hosts, where I also run named as caching resolver, I have about
3-4 MB memory footprint for normal use...


HTH
Olaf


-- 
Olaf Hoyer[EMAIL PROTECTED]
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Memory used by caching name server?

2004-06-04 Thread Rob
Olaf Hoyer wrote:
On Fri, 4 Jun 2004, Rob wrote:

No change at all in memory usage. If named keeps its cache in memory,
why do I not see any changes of available swap space when starting named?
Or does named claim memory on the fly, as it is caching?
If so, how can I find out what is the maximum it can claim on my machine?

Hi!
named claims memory on the fly.
On Solaris, I have bind 8 seen claiming about 800MB RAM for its caching
database, being the resolver for the machine that creates from http-logs
colorful pictures and other fancy things...
Waaauw, that sounds rather dangerous to me. I have a caching nameserver
running on an old Pentium-I with 32 Mb of ram (48 Mb swap). I am still
using it in a testing enviroment, moderately using the named's cache.
So far total memory usage by the OS is very low (swap is hardly used).
I wonder if named would eat up all the ram in a production enviroment.
Can't imagine that, actually. Nowhere I have seen warnings against
such disaster. But then there is this option for the named configuration
file, that limits the cache memory usage.
Elsewhere, I have read that named uses 1 Mb maximum by default. But
I read that in an out-dated document. I assume meanwhile things have
changed/improved.
Rob.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Memory used by caching name server?

2004-06-04 Thread Olaf Hoyer
On Fri, 4 Jun 2004, Rob wrote:

> No change at all in memory usage. If named keeps its cache in memory,
> why do I not see any changes of available swap space when starting named?
>
> Or does named claim memory on the fly, as it is caching?
> If so, how can I find out what is the maximum it can claim on my machine?


Hi!

named claims memory on the fly.
On Solaris, I have bind 8 seen claiming about 800MB RAM for its caching
database, being the resolver for the machine that creates from http-logs
colorful pictures and other fancy things...

I also don't know what the exact default is, IIRC named takes all
memory it gets.

HTH
Olaf

-- 
Olaf Hoyer[EMAIL PROTECTED]
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Memory used by caching name server?

2004-06-04 Thread Rob
Rob wrote:
Hi,
This is on FreeBSD 4-Stable.
I have set up a caching name server. About its cached data base,
I found out:
  1) data base is kept in memory
  2) the maximum memory is adjustable in named.conf, for example:
datasize 20M;
But without specifying the datasize, how much memory is used by
default. The named.conf man page is rather cryptic:
   datasize
   The maximum amount of data memory the server may use.
   The default value is default.
Elsewhere, I found that this "default" means a system dependent value.
In any case, how can I find out what is the memory used by my server
on my system? Is there a 'ndc ' command for this?
This is important when I consider to increase the memory limit.
I'm adding additional comments to my own email.
When I do not have the caching name server running, I do this:
  # swapinfo ; ndc start ; swapinfo
  Device  512-blocks UsedAvail Capacity  Type
  /dev/ad0s1b  99312 356095752 4%Interleaved
  new pid is 1714
  Device  512-blocks UsedAvail Capacity  Type
  /dev/ad0s1b  99312 356095752 4%Interleaved
No change at all in memory usage. If named keeps its cache in memory,
why do I not see any changes of available swap space when starting named?
Or does named claim memory on the fly, as it is caching?
If so, how can I find out what is the maximum it can claim on my machine?
Thanks,
Rob.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Memory used by caching name server?

2004-06-03 Thread Rob
Hi,
This is on FreeBSD 4-Stable.
I have set up a caching name server. About its cached data base,
I found out:
  1) data base is kept in memory
  2) the maximum memory is adjustable in named.conf, for example:
datasize 20M;
But without specifying the datasize, how much memory is used by
default. The named.conf man page is rather cryptic:
   datasize
   The maximum amount of data memory the server may use.
   The default value is default.
Elsewhere, I found that this "default" means a system dependent value.
In any case, how can I find out what is the memory used by my server
on my system? Is there a 'ndc ' command for this?
This is important when I consider to increase the memory limit.
Thanks,
Rob.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"