in reply to Error creating database file

You are right in assuming this is a size issue: errno 27 (returned by ndbm store) is "File too large". What filesize are we talking about here?

CU
Robartes-

Replies are listed 'Best First'.
Re: Re: Error creating database file
by krivenburg (Acolyte) on Oct 24, 2002 at 12:11 UTC
    Robartes,

    Thanks for the reply. The .dir file is 152 MEG and the .pag file is 704 MEG.


    Kevin-

      That adds up to 856M, which does not sound like a magic number at all. What filesystem is this, and do you know the filesize limit of said filesystem?

      It probably wouldn't hurt to check diskspace as well, although you would expect a different error in that case.

      CU
      Robartes-

        The system is running Compaq Tru64 Unix V4.0G and the filesize limit is unlimited.

        -Kevin
        There's no reason why the memory size limit should be expected to look like a magic number -- or even be the same number from one moment to the next. It will depend on the amount of free swap space, which might vary with how much file data is sitting around on /tmp.

        update: I noticed that the NDBM module man page does talk about "errno 22", which happens when a given key and/or value being stored is too large (the limit is said to be 1008 bytes for key and value combined), though I guess that's not relevant here -- or maybe it is, hard to say based on the code in the OP.

        Meanwhile, the "AnyDBM" man page cites "4k" as the "Size limit" for NDBM (hmm, I guess one of these two man pages might be off by about 3k), and it helpfully notes "?" for "Database Size"...