Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933333Ab2KEWFH (ORCPT ); Mon, 5 Nov 2012 17:05:07 -0500 Received: from li9-11.members.linode.com ([67.18.176.11]:59490 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753909Ab2KEWFF (ORCPT ); Mon, 5 Nov 2012 17:05:05 -0500 Date: Mon, 5 Nov 2012 17:04:40 -0500 From: "Theodore Ts'o" To: Pavel Machek Cc: david@lang.hm, Nico Williams , General Discussion of SQLite Database , ????????? Yang Su Li , linux-fsdevel@vger.kernel.org, linux-kernel , drh@hwaci.com Subject: Re: [sqlite] light weight write barriers Message-ID: <20121105220440.GB25378@thunk.org> Mail-Followup-To: Theodore Ts'o , Pavel Machek , david@lang.hm, Nico Williams , General Discussion of SQLite Database , ????????? Yang Su Li , linux-fsdevel@vger.kernel.org, linux-kernel , drh@hwaci.com References: <20121025060231.GC9860@thunk.org> <20121025140327.GB13562@thunk.org> <20121025182948.GB16257@thunk.org> <20121105200348.GB15821@xo-6d-61-c0.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121105200348.GB15821@xo-6d-61-c0.localdomain> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 811 Lines: 19 On Mon, Nov 05, 2012 at 09:03:48PM +0100, Pavel Machek wrote: > > Well, using data journalling with ext3/4 may do what you want. If you > > don't do any fsync, the changes will get written every 5 seconds when > > the automatic journal sync happens (and sub-4k writes will also get > > Hmm. But that would need setting journalling mode per-file, no? > > Like, make it journal data for all the databases, but keep normal mode > for rest of system... You can do that, using "chattr +j file.db". It's apparently not a well known feature of ext3/4.... - Ted -- 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/