Re: data.tmp: file too big [DEFINITELY SOLVED]

Hugo Monteiro <[email protected]>
Newsgroups gmane.network.djbdns
Message-ID <[email protected]>
Jakob Hirsch wrote:
> Hugo Monteiro, 2009-05-19 01:45:
>
>> Adding -D_FILE_OFFSET_BITS=64 to the compilation flags did the trick. 
>> I now have a 2.9G data.cdb file. The bad news is that apparently 
>> tinydns/the system isn't capable of coping with that volume of 
>> information.
>
> With a 2.9G file, you are probably running into the 3G userspace 
> memory limit of the Linux kernel's default 3G/1G kernel/userland 
> memory split. Unfortunately, you can only change that by recompiling 
> the kernel, but 3.5G/0.5G is the most you can get, but I would not 
> recommend that, as it could be too less for the kernel and you will 
> run into the same problem soon. So I guess you have two options:
> - split your data file and run 2 or more tinydns processes
> - switch over to a 64 bit system
>
>

I will definitely switch to a 64 arch. I installed djbdns on an opteron 
machine and neither i had to use any special compilation flags, or did i 
get any type of unresponsiveness when the service was running with that 
2.9GB cdb file.

Basically it gets down to:

Use 64bit arch if you want to use cdb files larger than 2G.

Thank you all for the input,

Hugo Monteiro.

-- 
ci.fct.unl.pt:~# cat .signature

Hugo Monteiro
Email	 : [email protected]
Telefone : +351 212948300 Ext.15307
Web      : http://hmonteiro.net

Centro de Informática
Faculdade de Ciências e Tecnologia da
		   Universidade Nova de Lisboa
Quinta da Torre   2829-516 Caparica   Portugal
Telefone: +351 212948596   Fax: +351 212948548
www.ci.fct.unl.pt	      [email protected]

ci.fct.unl.pt:~# _
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.