You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jim Morrison <ji...@mediaisotope.com> on 2003/01/21 12:40:16 UTC

[OT] MLDBM size limit?? :'(

Guys,

Sorry this is a little off topic...  Is there a size limit on DBM's? (Or
Linux files for that matter.. )

I've thrown some details of my box/code below..

Thing is I'm getting a "write error" and it seems to always happen when
the DBM gets to 2.0Gb .. (you may think I'm mad for trying to make 2G
DBM's - but they don't usually get more than a couple of 100k - it's
just a big site.. Honest ;-)

Anyway - if there's anyone with similar experience or anyone has some
advice for me it would be appreciated..

Thanks,
J.

Here are the details..


<Error> :
 write error at /usr/local/lib/perl5/site_perl/5.8.0/MLDBM.pm line 161.

<Line to which it's reffering> :
 $s->{DB}->STORE($k, $v);

<My use of MLDBM..>
 use GDBM_File;
 use MLDBM qw(GDBM_File Storable);

<Perl-v>
 This is perl, v5.8.0 built for i686-linux

<uname-a>
 Linux hope 2.4.7-10 #1 Thu Sep 6 16:46:36 EDT 2001 i686 unknown



Jim Morrison
_____________________________________
Technology & Development Partner
Isotope LLP
9, 2 Laura Place
Bath, BA2 4BH
UK
+44  (0) 1225 444674
+44  (0) 7940 937822
www.mediaisotope.com


Re: [OT] MLDBM size limit?? :'(

Posted by Stas Bekman <st...@stason.org>.
Jim Morrison wrote:
> Guys,
> 
> Sorry this is a little off topic...  Is there a size limit on DBM's? (Or
> Linux files for that matter.. )
> 
> I've thrown some details of my box/code below..
> 
> Thing is I'm getting a "write error" and it seems to always happen when
> the DBM gets to 2.0Gb .. (you may think I'm mad for trying to make 2G
> DBM's - but they don't usually get more than a couple of 100k - it's
> just a big site.. Honest ;-)

You need to have Perl built with largefiles support to work with files larger 
than 2GB. Do:
./Configure -Duselargefiles [...] && make install
(check if you don't have it already via 'perl -V|grep uselargefiles')
and afterwards you need to rebuild mod_perl so it'll pick the new compile 
flags. You may need to have Apache compiled with largefiles support as well, 
which normally happens automatically if your fs/os supports it. Or it can be 
forced with:
% CFLAGS="D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ./configure [...]

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com