On Wed, 7 May 2008, Morten Welinder wrote:Suppose you had an N GB file that just filled up the disk. You now delete it, but get control back before it is really deleted. You now start to write a new file that will eventually just fill up the disk. Your task will get a media full error long before the media is really full because the old file's data space hasn't been freed yet. So, to "fix" this, you modify the file- system to defer your logical writes until all the previous spaces has been freed (writes to the physical media are deferred anyway as long as there is RAM available). The result is that your new data, that may be precious from a quasi-real-time source, will fail to be written. To "fix" this, you queue everything. This will eventually fail because the disk and RAM are of a finite size. The size of the disk is known, but you don't know what will be deleted before the queued writes have completed, so you really don't know when to tell the writer that there is no more space available. That's why the task that deletes data can't get control back until is has been deleted. However, for user applications, at the user's risk, one can do `rm filename &` and let the shell do the waiting. Cheers, Dick Johnson Penguin : Linux version 2.6.22.1 on an i686 machine (5588.29 BogoMips). My book : http://www.AbominableFirebug.com/ _ **************************************************************** The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them. Thank you. --
| Ingo Molnar | Re: [BUG] long freezes on thinkpad t60 |
| Rafael J. Wysocki | Re: [Bug 10030] Suspend doesn't work when SD card is inserted |
| Jamie Lokier | Proposal for "proper" durable fsync() and fdatasync() |
| jimmy bahuleyan | Re: how about mutual compatibility between Linux's GPLv2 and GPLv3? |
git: | |
| Martin Langhoff | Handling large files with GIT |
| Matt Mackall | Re: cleaner/better zlib sources? |
| Wink Saville | git-svn segmetation fault |
| Bill Lear | Meaning of "fatal: protocol error: bad line length character"? |
| Florin Andrei | firewall is very slow, something's wrong |
| Wijnand Wiersma | Almost success: OpenBSD on Xen |
| Marcus Andree | Re: OpenBSD kernel janitors |
| Richard Stallman | Real men don't attack straw men |
| David Miller | Re: tcp bw in 2.6 |
| Rick Jones | Re: 2.6.24 BUG: soft lockup - CPU#X |
| Patrick McHardy | [NET_SCHED 00/04]: External SFQ classifiers/flow classifier |
| Patrick McHardy | Re: [PATCH 2/2] [e1000 VLAN] Disable vlan hw accel when promiscuous mode |
