Re: data.tmp: file too big [SOLVED]
Hugo Monteiro <[email protected]>
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
Mark Johnson wrote: > On Tue, May 19, 2009 at 3:31 PM, Mark Johnson <[email protected]> wrote: > >> Something else to try, if you really need > 2G cdb file in a 32-bit >> environment, might be to change cdb.c to *not* mmap the cdb file. >> According to this bit of cdb_init (cdb.c): >> >> if (fstat(fd,&st) == 0) >> if (st.st_size <= 0xffffffff) { >> x = mmap(0,st.st_size,PROT_READ,MAP_SHARED,fd,0); >> if (x + 1) { >> c->size = st.st_size; >> c->map = x; >> } >> } >> >> it won't mmap the file if it's > 4G? >> > > Though I suppose cdb files are limited to 4G due to the uint32 positions. > > Fortunately i can choose between archs, but no doubt all this is valuable information in those circumstances where one can't choose. Thanks for all the input Mark. Best regards, 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:~# _