Return-Path: Received: from mail-by2nam01on0094.outbound.protection.outlook.com ([104.47.34.94]:57037 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751276AbdATP2z (ORCPT ); Fri, 20 Jan 2017 10:28:55 -0500 Subject: Re: Sync took ~8 hours to complete on a UDF DVD+RW with very complex directory structure To: Jan Kara References: <20170112003502.11233-1-skenton@ou.edu> <20170120122302.GA18224@quack2.suse.cz> CC: , From: Steve Kenton Message-ID: <34faccc7-8c99-ce4c-ee4f-e10a60fa5bed@ou.edu> Date: Fri, 20 Jan 2017 10:27:35 -0500 MIME-Version: 1.0 In-Reply-To: <20170120122302.GA18224@quack2.suse.cz> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 01/20/2017 07:23 AM, Jan Kara wrote: > On Wed 11-01-17 18:35:02, Steve Kenton wrote: >> I first noticed this with 4.10rc2+ while testing some changes I was >> making to the UDF driver but it's neither a new problem nor related to my >> changes. Below is a test run on a stock Ubuntu 14.04 system with kernel >> 3.19 and the results are the same. If I copy large video files to the DVD >> I can put 4+GiB on the disk, it syncs as expected and life is good. If I >> try to copy Linus' 2.7GiB repo to the DVD it is still going after running >> overnight and after killing the copy sync does not return for hours, >> which hangs a graceful reboot. I should note that while the sync has not >> completed the filesystem on the DVD seems usable for the light testing I >> did using df, ls, find etc and the verbose copy was still proceeding if >> slowly when I killed it. > > Yeah, I think the problem is that seeking just kills the DVD drive and UDF > driver in Linux is not very good in avoiding them. So writing to a UDF > filesystem on DVD media directly simply does not work very well. Also if > you copy a directory tree, there are lots of inplace updates of directories > happening so that may contribute to slowness as well. So all in all I don't > think this was ever something we were trying to make work reasonably since > people don't tend to use DVD like this... > > Honza > Granted it was a stress test, I was just surprised by the magnitude of the slow down. Probably worth pursuing - later. Steve Kenton