From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodore Ts'o Subject: Re: light weight write barriers Date: Mon, 5 Nov 2012 17:04:40 -0500 Message-ID: <20121105220440.GB25378@thunk.org> References: <20121025060231.GC9860@thunk.org> <20121025140327.GB13562@thunk.org> <20121025182948.GB16257@thunk.org> <20121105200348.GB15821@xo-6d-61-c0.localdomain> Reply-To: General Discussion of SQLite Database Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: david-gFPdbfVZQbY@public.gmane.org, General Discussion of SQLite Database , drh-X1OJI8nnyKUAvxtiuMwx3w@public.gmane.org, linux-kernel , linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Pavel Machek Return-path: Content-Disposition: inline In-Reply-To: <20121105200348.GB15821-5NIqAleC692hcjWhqY66xCZi+YwRKgec@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: sqlite-users-bounces-CzDROfG0BjIdnm+yROfE0A@public.gmane.org Errors-To: sqlite-users-bounces-CzDROfG0BjIdnm+yROfE0A@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org 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