From mykes@shell.sportsextra.com  Tue Apr 22 12:32:06 1997
Received: from shell.sportsextra.com (shell.sportsextra.com [208.1.220.20])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA10197
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Apr 1997 12:32:05 -0700 (PDT)
Received: (from mykes@localhost) by shell.sportsextra.com (8.7.5/8.7.3) id MAA25013; Tue, 22 Apr 1997 12:32:03 -0700 (PDT)
Message-Id: <199704221932.MAA25013@shell.sportsextra.com>
Date: Tue, 22 Apr 1997 12:32:03 -0700 (PDT)
From: Mike Schwartz <mykes@sportsextra.com>
Reply-To: mykes@sportsextra.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: db bug?
X-Send-Pr-Version: 3.2

>Number:         3373
>Category:       kern
>Synopsis:       .db with 600K records and 1.1GB size returns errno=27
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 22 12:40:01 PDT 1997
>Closed-Date:    Sun Aug 24 20:28:45 MEST 1997
>Last-Modified:  Sun Aug 24 20:29:13 MEST 1997
>Originator:     Mike Schwartz
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
Internet Extra Corporation
>Environment:
P166, 128M RAM, 4G disk space.
The drive this .db file is on is 97% full with > 100MB free.

>Description:

When trying to add a new record, using perl dbm functions, perl dies
with an error message "Can't write to db reason errno=27."

The file has about 600K records in it and is 1.1G in size.
-rw-rw-r--  1 mykes  httpd  1125855232 Apr 22 12:29 files.db

>How-To-Repeat:

create a db file and start adding records to it until it fails?

>Fix:
	
I don't have a fix.  I had to kludge my software to use 2 .db files.

>Release-Note:
>Audit-Trail:

From: David Nugent <davidn@unique.usn.blaze.net.au>
To: mykes@sportsextra.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, Mike Schwartz <mykes@sportsextra.com>
Subject: RE: kern/3373: db bug?
Date: Wed, 23 Apr 1997 08:53:20 +1000 (EST)

 On 22-Apr-97 Mike Schwartz wrote:
  >Release:        FreeBSD 2.1-STABLE i386
 ~
  When trying to add a new record, using perl dbm functions, perl dies
 > with an error message "Can't write to db reason errno=27."
 
 errno 27 is "file too large".
 
 You're running into a process resource limit. See setrlimit(2) and
 getrlimit(2), and specifically RLIMIT_FSIZE. If your process is
 running as root, you can raise the hard limit beyond the size to
 which the file will grow (or infinity). If not, then you'll have
 to find the appropriate fix in the kernel to set the default
 filesize limit to your requirements. (With -current, you can set
 this up on a per login-class basis with /etc/login.conf).
 
 
 Regards,
 
 David Nugent - Unique Computing Pty Ltd - Melbourne, Australia
 Voice +61-3-9791-9547  Data/BBS +61-3-9792-3507  3:632/348@fidonet
 davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sun Aug 24 20:28:45 MEST 1997 
State-Changed-Why:  

No response to feedback request from David N. 
>Unformatted:
