From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "Morten Welinder" <mwelinder@gmail.com>
Cc: "linux-os (Dick Johnson)" <linux-os@analogic.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Deleting large files
Date: Fri, 9 May 2008 00:01:24 +0100 [thread overview]
Message-ID: <20080509000124.791abac0@core> (raw)
In-Reply-To: <118833cc0805071614j49b10da6hfcbeb08cb3356afb@mail.gmail.com>
> user experience. Forking a process to do the deletion (a) is pathetic,
> (b) is not currently done, and (c) does not work: you cannot get a result
> right away, i.e., you lose error handling.
I wouldn't call it pathetic. Quite a few big media file tools create a
thread to do deletions of big objects.
The error handling isn't usually a problem. You know any error you can do
anything meaningful with actually occurs immediately or close to it. If
you get errors because of I/O problems in a minutes time there isn't a
sensible response and recovery anyway - nor would a kernel side
asynchronous delete be able to recover any better.
In theory you can push some kind of asynchronous delete threads into the
kernel or extent the AIO interfaces we have to do AIO_delete but at the
end of the day the implementation would effectively be create thread,
unlink, exit - and you can do that neatly and sanely in user space.
next prev parent reply other threads:[~2008-05-08 23:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 19:49 Deleting large files Morten Welinder
2008-05-07 20:10 ` Jan Engelhardt
2008-05-07 20:17 ` Xavier Bestel
2008-05-07 20:48 ` Jan Engelhardt
2008-05-07 22:34 ` linux-os (Dick Johnson)
2008-05-07 23:14 ` Morten Welinder
2008-05-08 23:01 ` Alan Cox [this message]
2008-05-11 10:30 ` Jan Engelhardt
2008-05-11 16:38 ` Enrico Weigelt
2008-05-20 14:33 ` Pavel Machek
2008-05-08 8:19 ` Matti Aarnio
2008-05-11 11:16 ` Christoph Hellwig
2008-05-11 16:42 ` Aneesh Kumar K.V
2008-05-08 17:29 ` Christian Kujau
[not found] ` <118833cc0805081110u7aad3921v3a1ec4187acc4ef4@mail.gmail.com>
2008-05-08 18:54 ` Christian Kujau
2008-05-17 12:15 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080509000124.791abac0@core \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
--cc=mwelinder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox