From: Dieter =?iso-8859-15?q?N=FCtzel?= Subject: Re: Very very slow rm/unlink of large sparse files Date: Mon, 16 Feb 2004 14:32:35 +0100 Message-ID: <200402161432.35178.Dieter.Nuetzel@hamburg.de> References: <4030391F.5080204@lig.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <4030391F.5080204@lig.net> Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: "Stephen D. Williams" Cc: reiserfs-list@namesys.com Am Montag, 16. Februar 2004 04:29 schrieb Stephen D. Williams: > Linux kernel 2.4.21-99 (SuSe 9 Pro kernel), and also experienced with > 2.6.1. > > When deleting a large file (4-10GB), at least somewhat sparse (created > completely sparse and filled in as a reiserfs filesystem under > user-mode-linux), the filesystem layer spends a very very long time, on > the order of several hours per GB, with constant disk activity trying to > delete the file. If the system is rebooted, the partial unlink is > continued at the same very very slow speed. A read-only mount works > just fine. > > This is has happened several times as I have reinstalled and reoriented > systems. The filesystems are 40-500GB and are running on top of RAID > 0,1, or 5 (ReiserFS->RAID 0, 1, or 5), sometimes with LVM > (ReiserFS->LVM->RAID 1). It seems completely repeatable and > consistent. I have been waiting about 24 hours for an unlink of a 9.9GB > file, formatted as ReiserFS and mostly filled with data. The filesystem > involved is accessible, but very very slowly. An ls of a small > directory takes at least 30 minutes. The system has 2GB ram and has at > least half of that free in buffers and cache. System load is over 8 > because of things waiting for disk I/O, but CPU is 1% user and 3% > system. The disk LED is flashing at about 50% load, constant activity. > > dd if=/dev/zero of=u.img bs=1 count=1 seek=$((1024 * 1024 * 4300)) > mkfs.reiserfs -f u.img > mount -o loop u.img /mnt > cp -r /etc /mnt # I'm not sure how much data needs to be present, if > any, to exacerbate the problem. > umount /mnt > rm -f u.img > Is this a known problem? Yes. Look here: http://marc.theaimsgroup.com/?l=reiserfs&m=105781312812025&w=2 > Has it been fixed in recent versions? No. But maybe this one helps? http://marc.theaimsgroup.com/?l=reiserfs&m=105781500513025&w=2 http://marc.theaimsgroup.com/?l=reiserfs&m=105782794622005&w=2 > Is there a way to avoid practically (but not completely) locking up a > filesystem for many hours or days just to delete a file? Don't know, yet. Regards, Dieter