From: Andreas Dilger <adilger@clusterfs.com>
To: jpiszcz@lucidpixels.com
Cc: linux-kernel@vger.kernel.org, lftp@uniyar.ac.ru,
lftp-devel@uniyar.ac.ru, apiszcz@mitre.org,
ext2-devel@lists.sourceforge.net
Subject: Re: Nasty ext2fs bug!
Date: Thu, 1 Aug 2002 11:48:56 -0600 [thread overview]
Message-ID: <20020801174856.GA29562@clusterfs.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0208011150310.17729-100000@lucidpixels.com>
On Aug 01, 2002 12:54 -0400, jpiszcz@lucidpixels.com wrote:
> Summary: When using lftp with the pget -n option for large files, once the
> file is complete the problem begins. If you try to copy, ftp, or
> pretty much anything that involves reading the file, it is "stuck"
> at a rate of 800KB/s to 1600KB/s.
The problem is obvious - there are many threads writing to the same
file, and the filesystem cannot really do a good job of allocating
blocks for these threads. When you are reading the file back, the
disk is seeking like crazy to read the data from the disk.
It would be possible, even desirable, to have the block allocation
algorithm try and keep enough empty space on the disk for sparsely
written files, but this is a rather uncommon usage.
If you copy from this fragmented file to a new file, then the new file
is layed out contiguously on disk so readahead works and no seeking is
involved when reading the new file.
> Problem: The pget -n feature of lftp is very nice if you want to maximize
> your download bandwidth, however, if getting a large file, such
> as the one I am getting, once the file is successfully
> retrived, transferring it to another HDD or FTPing it to another
> computer is very slow (800KB-1600KB/s).
I find it hard to believe that this would actually make a huge
difference, except in the case where the source is throttling bandwidth
on a per-connection basis. Either your network is saturated by the
transfer, or some point in between is saturated. I could be wrong, of
course, and it would be interesting to hear the reasoning behind the
speedup.
Cheers, Andreas
PS - thanks for the very detailed bug report - if only all bug reports
were so full of useful information...
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/
next prev parent reply other threads:[~2002-08-01 17:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-01 16:54 Nasty ext2fs bug! jpiszcz
2002-08-01 17:48 ` Andreas Dilger [this message]
2002-08-01 18:27 ` Ragnar Kjørstad
2002-08-01 18:38 ` Willy Tarreau
2002-08-01 19:21 ` Justin Piszcz
2002-08-01 19:20 ` Justin Piszcz
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=20020801174856.GA29562@clusterfs.com \
--to=adilger@clusterfs.com \
--cc=apiszcz@mitre.org \
--cc=ext2-devel@lists.sourceforge.net \
--cc=jpiszcz@lucidpixels.com \
--cc=lftp-devel@uniyar.ac.ru \
--cc=lftp@uniyar.ac.ru \
--cc=linux-kernel@vger.kernel.org \
/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