Lloyd Standish
2010-09-07 06:38:56 UTC
Please help me estimate memory requirements to run dnscache with about 769,000 files in the "servers" directory (/etc/service/dncache/root/servers).
Each file has 9 bytes. The filenames are the domain names to forward to an "override" nameserver (tinydns running on 127.0.0.2). Each file contains the same content: the IP 127.0.0.2. (Actually, the files are mostly hardlinks. Otherwise I would run out of inodes.)
This is part of a project to set up porn-blocking using a list of 769,000 porn domain names. dnscache should forward dns queries for the porn domains to tinydns, running on 127.0.0.2 on the same machine. tinydns should return a bogus IP (to a page saying access to the pornography has been blocked). Of course, I got this working on a few test domains before attempting to load the 769,000 servers entries.
I already loaded the 769,000 (minimal) zones into the tinydns data file, and ran "make." tinydns seems to be fine (with zero queries).
However, dnscache cannot load the 769.000 servers files with only 256 megs of physical memory. I have raised the CACHESIZE and DATALIMIT up to 20M and 100M, respectively.
How much memory should be necessary to do this (assuming it is possible)? This is running on a VPS and I could increase the available memory.
--
Lloyd
Each file has 9 bytes. The filenames are the domain names to forward to an "override" nameserver (tinydns running on 127.0.0.2). Each file contains the same content: the IP 127.0.0.2. (Actually, the files are mostly hardlinks. Otherwise I would run out of inodes.)
This is part of a project to set up porn-blocking using a list of 769,000 porn domain names. dnscache should forward dns queries for the porn domains to tinydns, running on 127.0.0.2 on the same machine. tinydns should return a bogus IP (to a page saying access to the pornography has been blocked). Of course, I got this working on a few test domains before attempting to load the 769,000 servers entries.
I already loaded the 769,000 (minimal) zones into the tinydns data file, and ran "make." tinydns seems to be fine (with zero queries).
However, dnscache cannot load the 769.000 servers files with only 256 megs of physical memory. I have raised the CACHESIZE and DATALIMIT up to 20M and 100M, respectively.
How much memory should be necessary to do this (assuming it is possible)? This is running on a VPS and I could increase the available memory.
--
Lloyd