From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by kanga.kvack.org (Postfix) with ESMTP id BE82C6B0035 for ; Mon, 4 Nov 2013 20:48:11 -0500 (EST) Received: by mail-pd0-f176.google.com with SMTP id g10so7441522pdj.35 for ; Mon, 04 Nov 2013 17:48:11 -0800 (PST) Received: from psmtp.com ([74.125.245.121]) by mx.google.com with SMTP id z1si11922836pbw.309.2013.11.04.17.48.09 for ; Mon, 04 Nov 2013 17:48:09 -0800 (PST) Date: Mon, 4 Nov 2013 17:47:34 -0800 (PST) From: David Lang Subject: Re: Disabling in-memory write cache for x86-64 in Linux II In-Reply-To: Message-ID: References: <160824051.3072.1382685914055.JavaMail.mail@webmail07> <20131025214952.3eb41201@notabene.brown> <154617470.12445.1382725583671.JavaMail.mail@webmail11> <20131026074349.0adc9646@notabene.brown> <476525596.14731.1382735024280.JavaMail.mail@webmail11> <20131026091112.241da260@notabene.brown> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: "Figo.zhang" Cc: NeilBrown , "Artem S. Tashkinov" , lkml , Linus Torvalds , linux-fsdevel@vger.kernel.org, axboe@kernel.dk, Linux-MM On Tue, 5 Nov 2013, Figo.zhang wrote: >>> >>> Of course, if you don't use Linux on the desktop you don't really care - >> well, I do. Also >>> not everyone in this world has an UPS - which means such a huge buffer >> can lead to a >>> serious data loss in case of a power blackout. >> >> I don't have a desk (just a lap), but I use Linux on all my computers and >> I've never really noticed the problem. Maybe I'm just very patient, or >> maybe >> I don't work with large data sets and slow devices. >> >> However I don't think data-loss is really a related issue. Any process >> that >> cares about data safety *must* use fsync at appropriate places. This has >> always been true. >> >> =>May i ask question that, some like ext4 filesystem, if some app motify > the files, it create some dirty data. if some meta-data writing to the > journal disk when a power backout, > it will be lose some serious data and the the file will damage? > with any filesystem and any OS, if you create dirty data but do not f*sync() the data, there isa possibility that the system can go down between the time the application creates the dirty data and the time the OS actually gets it on disk. If the system goes down in this timeframe, the data will be lost and it may corrupt the file if only some of the data got written. David Lang -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org