Re: [PATCH][RFC] fast file mapping for loop

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bill Davidsen
Date: Thursday, January 10, 2008 - 6:25 pm

Jens Axboe wrote:
Since you are looking for comments, I'll mention a loop-related behavior 
I've been seeing and see if it gets comments or is useful, since it can 
be used to tickle bad behavior on demand.

I have an 6GB sparse file, which I mount with cryptoloop and populate as 
an ext3 filesystem (more later on why). I then copy ~5.8GB of data to 
the filesystem, which is unmounted to be burnt to a DVD. Before it's 
burned the "dvdisaster" application is used to add some ECC information 
to the end, and make an image which fits on a DVD-DL. Media will be 
burned and distributed to multiple locations.

The problem:

When copying with rsync, the copy runs at ~25MB/s for a while, then 
falls into a pattern of bursts of 25MB/s followed by 10-15 sec of iowait 
with no disk activity. So I tried doing the copy by cpio
   find . -depth | cpio -pdm /mnt/loop
which shows exactly the same behavior. Then, for no good reason I tried
   find . -depth | cpio -pBdm /mnt/loop
and the copy ran at 25MB/s for the whole data set.

I was able to see similar results with a pure loop mount, I only mention 
the crypto for accuracy. Because many of these have been shipped over 
the last two years and new loop code would only be useful in this case 
if it were compatible so old data sets could be read.


-- 
Bill Davidsen <davidsen@tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH][RFC] fast file mapping for loop, Jens Axboe, (Wed Jan 9, 1:52 am)
Re: [PATCH][RFC] fast file mapping for loop, Christoph Hellwig, (Wed Jan 9, 2:31 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Wed Jan 9, 2:43 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Wed Jan 9, 4:00 am)
Re: [PATCH][RFC] fast file mapping for loop, Andi Kleen, (Wed Jan 9, 8:34 am)
Re: [PATCH][RFC] fast file mapping for loop, Alasdair G Kergon, (Wed Jan 9, 4:16 pm)
Re: [PATCH][RFC] fast file mapping for loop, Nick Piggin, (Wed Jan 9, 6:42 pm)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 1:31 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 1:34 am)
Re: [PATCH][RFC] fast file mapping for loop, Christoph Hellwig, (Thu Jan 10, 1:37 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 1:42 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 1:43 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 1:44 am)
Re: [PATCH][RFC] fast file mapping for loop, Christoph Hellwig, (Thu Jan 10, 1:54 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 2:01 am)
Re: [PATCH][RFC] fast file mapping for loop, Peter Zijlstra, (Thu Jan 10, 2:37 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 2:49 am)
Re: [PATCH][RFC] fast file mapping for loop, Peter Zijlstra, (Thu Jan 10, 2:52 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 3:02 am)
Re: [PATCH][RFC] fast file mapping for loop, Peter Zijlstra, (Thu Jan 10, 3:20 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Thu Jan 10, 5:47 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Thu Jan 10, 5:53 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 5:57 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Thu Jan 10, 6:03 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Thu Jan 10, 6:46 am)
Re: [PATCH][RFC] fast file mapping for loop, Bill Davidsen, (Thu Jan 10, 6:25 pm)
Re: [PATCH][RFC] fast file mapping for loop, Mikulas Patocka, (Fri Jan 11, 12:39 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Fri Jan 11, 12:58 am)
Re: [PATCH][RFC] fast file mapping for loop, Daniel Phillips, (Fri Jan 11, 11:17 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Fri Jan 11, 11:23 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Mon Jan 14, 10:10 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Mon Jan 14, 10:54 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Tue Jan 15, 2:25 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Tue Jan 15, 2:36 am)
Re: [PATCH][RFC] fast file mapping for loop, Jens Axboe, (Tue Jan 15, 3:07 am)
Re: [PATCH][RFC] fast file mapping for loop, Chris Mason, (Tue Jan 15, 7:04 am)