Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757688AbZCSUMU (ORCPT ); Thu, 19 Mar 2009 16:12:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751704AbZCSUMI (ORCPT ); Thu, 19 Mar 2009 16:12:08 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:35381 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751191AbZCSUMH (ORCPT ); Thu, 19 Mar 2009 16:12:07 -0400 Date: Thu, 19 Mar 2009 13:05:52 -0700 (PDT) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: Jan Kara cc: Nick Piggin , Ying Han , Andrew Morton , linux-kernel , linux-mm , guichaz@gmail.com, Alex Khesin , Mike Waychison , Rohit Seth , Peter Zijlstra Subject: Re: ftruncate-mmap: pages are lost after writing to mmaped file. In-Reply-To: <20090319170340.GC3899@duck.suse.cz> Message-ID: References: <604427e00903181244w360c5519k9179d5c3e5cd6ab3@mail.gmail.com> <200903200248.22623.nickpiggin@yahoo.com.au> <200903200334.55710.nickpiggin@yahoo.com.au> <20090319170340.GC3899@duck.suse.cz> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1357 Lines: 30 On Thu, 19 Mar 2009, Jan Kara wrote: > > > > Ahh, so you re-created it? On ext2 only, or is it visible on ext3 as well? > > I've not even tested - I assumed that I would have to boot into less > > memory and downgrade my filesystem to ext2, which made me hope somebody > > else would pick it up first ;) > > In thread http://lkml.org/lkml/2009/3/4/179 I've reported similar problem > - write lost. I'm able to reproduce under UML linux at will. ext3 takes > with 1KB blocksize about 20 minutes to hit the corruption, ext2 with 1 KB > blocksize about an hour, ext2 with 4KB blocksize several hours... Hmm. I can't seem to recreate it with Ying Han's testprog, at least. That's with the fs/buffer.c patch applied, but that shouldn't matter since Nick reports that his (roughly equivalent) patch didn't help. I'll continue to run it for a while, but it's been going for about an hour now, with vmstat reporting bo/bi at roughly 5-10MB/s pretty continuosly. Of course, that's with my SSD's and an insanely fast Nehalem box, so my timings are likely rather different from most other peoples. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/