Disk Requirements for nsd4

Hi!

I tested nsd-mem and it reports for my zone:

summary
  1.069.028.642 ram usage (excl space for buffers)
  1.713.158.176 disk usage (excl 12% space claimed for growth)

But I think 1,7GB is not sufficient. My nsd.db file is 1,744 GB, but I
also need disk space for the incoming zone transfer (or for local
storage of the zone file) which is in my case another 120MB.

Further, may it happen that nsd recreates the nsd.db file and during
that process I need 2x 1,7GB disk size?

Final question: With nsd4 as slave, is it necessary or useful to have
the zone file in text format on the server? Or asked in a different way:
Is there any requirement or benefit of calling "nsd-control write"
periodically?

Thanks
Klaus

Hi Klaus,

Hi!

I tested nsd-mem and it reports for my zone:

summary 1.069.028.642 ram usage (excl space for buffers)
1.713.158.176 disk usage (excl 12% space claimed for growth)

But I think 1,7GB is not sufficient. My nsd.db file is 1,744 GB,
but I also need disk space for the incoming zone transfer (or for
local storage of the zone file) which is in my case another 120MB.

Yes, if you want these files.

Further, may it happen that nsd recreates the nsd.db file and
during that process I need 2x 1,7GB disk size?

No, it would not need 2x 1.7Gb during the recreation of nsd.db. Just
the 1.7Gb. NSD4 would first truncate the nsd.db and then recreate it.

In the development version of NSD4 you can set database: "" in config
and then no nsd.db is created. Thus 1.7Gb less usage, and the zone
contents are read and written from the zonefiles in text format.

Final question: With nsd4 as slave, is it necessary or useful to
have the zone file in text format on the server? Or asked in a
different way: Is there any requirement or benefit of calling
"nsd-control write" periodically?

If you are using an nsd.db, the text files are optional. Only if you
prefer to have text files on your server. It may save time and disk
space to not have the zone text files.

If you are not using an nsd.db file (database: "" setting) then you
must have text files, because that is what is used to store the data.
By default NSD then enables a timer of about 1 hour that spools
changes to the zone files.

Best regards,
   Wouter

Hi Wouter!

Thanks for the answers. I wonder is there a recommendation when to use
text zone files or when to use the nsd.db file?

I guess when using the db.file, nsd does not have to compile the zone on
startup. But maybe starting up is even faster when loading a small file
and then compile it, instead of loading the huge .db file.

So, is there a preferred mode?

Thanks
Klaus