Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTC4T-0000eG-Pz for pgsql-performance@postgresql.org; Tue, 30 Oct 2012 13:41:33 +0000 Received: from mh5.mail.rice.edu ([128.42.199.32]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTC4M-0007YP-Q1 for pgsql-performance@postgresql.org; Tue, 30 Oct 2012 13:41:33 +0000 Received: from mh5.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh5.mail.rice.edu (Postfix) with ESMTP id 4630411F8A9; Tue, 30 Oct 2012 08:41:24 -0500 (CDT) Received: from mh5.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh5.mail.rice.edu (Postfix) with ESMTP id 1CB9511F881; Tue, 30 Oct 2012 08:41:24 -0500 (CDT) X-Virus-Scanned: by amavis-2.7.0 at mh5.mail.rice.edu, auth channel Received: from mh5.mail.rice.edu ([127.0.0.1]) by mh5.mail.rice.edu (mh5.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id NNNSmDVnbVEt; Tue, 30 Oct 2012 08:41:23 -0500 (CDT) X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no Received: from aart.rice.edu (aart.rice.edu [168.7.56.48]) by mh5.mail.rice.edu (Postfix) with ESMTP id DB4FC11F8A9; Tue, 30 Oct 2012 08:41:23 -0500 (CDT) Received: by aart.rice.edu (Postfix, from userid 18612) id DC06A10059F; Tue, 30 Oct 2012 08:41:24 -0500 (CDT) Date: Tue, 30 Oct 2012 08:41:24 -0500 From: "ktm@rice.edu" To: Albe Laurenz Cc: Jeff *EXTERN* , Jeff Janes , pgsql-performance@postgresql.org Subject: Re: Replaying 48 WAL files takes 80 minutes Message-ID: <20121030134124.GL2872@aart.rice.edu> References: <9677809C-5FBC-4E8A-9A7E-5F5A3FDAFA0B@jefftrout.com> <20121030130533.GJ2872@aart.rice.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) X-Pg-Spam-Score: -4.9 (----) X-Archive-Number: 201210/378 X-Sequence-Number: 48337 On Tue, Oct 30, 2012 at 02:16:57PM +0100, Albe Laurenz wrote: > ktm@rice.edu wrote: > >>> If you do not have good random io performance log replay is nearly > >>> unbearable. > >>> > >>> also, what io scheduler are you using? if it is cfq change that to > >>> deadline or noop. > >>> that can make a huge difference. > >> > >> We use the noop scheduler. > >> As I said, an identical system performed well in load tests. > > > The load tests probably had the "important" data already cached. > Processing > > a WAL file would involve bringing all the data back into memory using > a > > random I/O pattern. > > The database is way too big (1 TB) to fit into cache. > > What are "all the data" that have to be brought back? > Surely only the database blocks that are modified by the WAL, > right? > > Yours, > Laurenz Albe > Right, it would only read the blocks that are modified. Regards, Ken