Bug 126210 - Machine crash and Memory leak when copying a large 7G directory to another place
Summary: Machine crash and Memory leak when copying a large 7G directory to another place
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
(Show other bugs)
Version: 3.0
Hardware: i686 Linux
Target Milestone: ---
Assignee: Peter Staubach
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-06-17 16:04 UTC by Tony
Modified: 2007-11-30 22:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-04-12 19:31:08 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
/var/log/messages (209.79 KB, text/plain)
2004-07-06 16:23 UTC, Tony
no flags Details

Description Tony 2004-06-17 16:04:20 UTC
Description of problem:

Memory leak when copying a large 7G directory to the same disk or
another disk. Machines freezes when repeat the copying process another

Version-Release number of selected component (if applicable):

Linux 2.4.21-15.ELsmp

How reproducible:

Steps to Reproduce:
1.cp -r /7GB_large_directory
2.cp -r /7GB_large_directory
Actual results:

Machine freezes

Expected results:

Additional info:

WS3 on Dell P4 3.4GHz, 1.0G Mem, 2.0G Swap, 256M Video

Comment 1 Ernie Petrides 2004-06-18 00:51:48 UTC
Could you please attach console output with oops/panic data?
Also, what file system type is supporting the target directory?

Comment 2 Tony 2004-06-29 15:15:04 UTC
Ernie ,
How do I get the console output with oops/panic data? The machine is 
frozen and has to be hard rebooted by swith power off and on. Please 
advise. Thanks.

Comment 3 Tony 2004-07-06 16:23:49 UTC
Created attachment 101658 [details]

Comment 4 Trenton 2004-09-21 17:09:45 UTC
What's the status of this bug?  I have a Dell 2650 with 3 GB RAM 
running RHAS3 kernel 2.4.21-20. When I copy using cp a ~ 1 GB file 
from one directory to another on the same disk, memory use goes up by 
about 1 GB and stays up even after the operation is done. I 
understand that the memory is used by a disk cache for later improved 
copy performance.  But the memory never seems to get released and 
another large copy will use up all the memory, often causing a system 
hang (frozen screen).  Does cp really have a memory leak for large 
I tried the following test: 
dd if=/dev/zero of=/tmp/testfile bs=1M count=1024 ; rm /tmp/testfile
which I got from Bug 58681, and the memory used by this operation was 
freed up, but the memory used by the previous 1 GB cp is still shown 
as used.

Comment 5 Ernie Petrides 2005-09-09 00:59:41 UTC
Tony, please work with Customer Support to get the required data (and
then attach it here).  Also, please let us know if this problem occurs
with a recent RHEL3 release (U5 or later).  Thanks in advance.

Reassigning to PeterS.

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