deleting file takes longer than creating it

John G. Heim jheim at math.wisc.edu
Tue May 4 17:25:34 CDT 2010


I have  a Poweredge SE1435 which seems to be very slow and i noticed 
something odd... I can create a large file with dd faster than I can delete 
it.

# date; dd if=/dev/zero  of=zero.txt bs=1024 count=1000000; date; rm 
zero.txt; date
Tue May  4 16:59:21 CDT 2010
1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB) copied, 11.7291 s, 87.3 MB/s
Tue May  4 16:59:33 CDT 2010
Tue May  4 17:00:09 CDT 2010

It took 12 seconds to create the file and 33 seconds to rm it. Why would 
that be?

This machine is serving as a print server, debian package mirror, and a 
mmysql database server. I am not sure what kind of info you might need to 
help me. But for starters, I'm running debian lenny with a 2.6.30 kernel. 
The file system is ext3.  There are 2 500 Gb disks in the machine configured 
as RAID-1. Here is the output from 'omreport storage vdisk controller=0' and 
'omreport storage pdisk controller=0' ...

Virtual Disk 0 on Controller SAS 5/iR Adapter (Embedded)

Controller SAS 5/iR Adapter (Embedded)
ID                  : 0
Status              : Ok
Name                : Virtual Disk 0
State               : Ready
Progress            : Not Applicable
Layout              : RAID-1
Size                : 465.66 GB (499999834112 bytes)
Device Name         : /dev/sda
Bus Protocol        : SATA
Media               : HDD
Read Policy         : No Read Ahead
Write Policy        : Write Through
Cache Policy        : Not Applicable
Stripe Element Size : Not Applicable

List of Physical Disks on Controller SAS 5/iR Adapter (Embedded)

Controller SAS 5/iR Adapter (Embedded)
ID                        : 0:0
Status                    : Ok
Name                      : Physical Disk 0:0
State                     : Online
Failure Predicted         : No
Progress                  : Not Applicable
Bus Protocol              : SATA
Media                     : HDD
Capacity                  : 465.66 GB (499999834112 bytes)
Used RAID Disk Space      : 465.66 GB (499999834112 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare                 : No
Vendor ID                 : DELL
Product ID                : HDS725050KLA360
Revision                  : K2AOAB5A
Serial No.                : KRVN67ZBGXVEVFGXVEVF
Negotiated Speed          : Not Available
Capable Speed             : Not Available
Manufacture Day           : Not Available
Manufacture Week          : Not Available
Manufacture Year          : Not Available
SAS Address               : 1221000000000000

ID                        : 0:1
Status                    : Ok
Name                      : Physical Disk 0:1
State                     : Online
Failure Predicted         : No
Progress                  : Not Applicable
Bus Protocol              : SATA
Media                     : HDD
Capacity                  : 465.66 GB (499999834112 bytes)
Used RAID Disk Space      : 465.66 GB (499999834112 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare                 : No
Vendor ID                 : DELL
Product ID                : HDS725050KLA360
Revision                  : K2AOAB5A
Serial No.                : KRVN67ZBGXT2BFGXT2BF
Negotiated Speed          : Not Available
Capable Speed             : Not Available
Manufacture Day           : Not Available
Manufacture Week          : Not Available
Manufacture Year          : Not Available
SAS Address               : 1221000001000000




More information about the Linux-PowerEdge mailing list