Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 49578 - ext3 kernel messages when writing large files / file size irregularity
ext3 kernel messages when writing large files / file size irregularity
Product: Red Hat Linux
Classification: Retired
Component: kernel (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Stephen Tweedie
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-07-20 16:55 EDT by Don Smith
Modified: 2007-04-18 12:34 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-08-03 10:56:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
source for Bonnie drive benchmarking utility (17.40 KB, text/plain)
2001-07-20 16:56 EDT, Don Smith
no flags Details

  None (edit)
Description Don Smith 2001-07-20 16:55:56 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Description of problem:
While writing large files (512MB - 1024MB) with a utility called Bonnie 
(www.textuality.com/bonnie, source attached) on ext3 partitions located on 
a RAID 1 drive array, the following kernel messages were observed:

(hostname) kernel: JBD: out of memory for journal head.


(hostname) kernel: ext3_write_inode: inside transaction!

The machine is a P3-667Mhz with 256MB RAM, IBM ServeRAID 4M controller 
(also happens with ServeRAID 4L). 

It looks like the file size ends up being too small - Bonnie writes a file 
out using the size you give it, and then reads it back in. It  reports an 
error because it receives an EOF before it reads in the number of bytes it 
was supposed to.

How reproducible:

Steps to Reproduce:
1. Use bonnie to benchmark a RAID 1 drive array using a 1024MB file - 
bonnie -s 1024 -d <dir on RAID 1>
2. The kernel messages described above should appear, and bonnie should 
fail while "Reading with getc()..."

Additional info:
Comment 1 Don Smith 2001-07-20 16:56:45 EDT
Created attachment 24367 [details]
source for Bonnie drive benchmarking utility
Comment 2 Arjan van de Ven 2001-07-20 17:01:08 EDT
The first message is a warning only, but the file should be ok, so this is 
indeed a bug.
Comment 3 Stephen Tweedie 2001-07-20 20:12:05 EDT
Both messages are warnings.  The second message is benign: it is simply a result
of a debugging message which escaped into the wild and has since been
eliminated.  The out-of-memory error means that the kernel ran out of memory at
a critical point for the filesystem.  The filesystem will retry in that case
until the allocation succeeds, so it is not the root cause of any file
corruption, but it is entirely probable that if we got into such a low-memory
state that the kernel would start failing other filesystem write operations with
-ENOMEM for other reasons which might not have been logged.

There is a new version of ext3 being pushed out without the second debugging
message, and with more informative output about out-of-memory situations, but
the underlying low-memory problems may remain.  We will let you know when that
build is available for you --- it has been built locally already and will be on
ftp soon.

I really suspect that the remaining part of the problem is VM-related, not
filesystem-related (although we know for certain that ext3's pattern of VM use
does cause problems for the VM that ext2 does not provoke.)  The results from
the newer build will be useful in determining this.
Comment 4 Glen Foster 2001-07-23 17:17:43 EDT
This defect is considered SHOULD-FIX for Fairfax.
Comment 5 Stephen Tweedie 2001-08-03 10:19:53 EDT
Could you try the kernel from the Roswell beta or from rawhide?  There is still
VM tuning being done, but the ext3 debug logging has been cleaned up enormously.
Comment 6 Don Smith 2001-08-03 10:56:50 EDT
The Roswell kernel does seem to have cleared this up - we no longer get those 

Note You need to log in before you can comment on or make changes to this bug.