Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 4C3249FA4B9 for ; Tue, 9 Jan 2007 17:13:53 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 29705-02 for ; Tue, 9 Jan 2007 17:13:38 -0400 (AST) X-Greylist: delayed 01:35:18.973658 by SQLgrey-1.7.4 Received: from mail.desc.org (mail.desc.org [216.162.197.195]) by postgresql.org (Postfix) with ESMTP id 255B19FA2C9 for ; Tue, 9 Jan 2007 17:13:37 -0400 (AST) Received: from [192.168.6.210] (desktop3.desc.org [192.168.6.210]) by mail.desc.org (8.12.11/8.12.8) with ESMTP id l09LDRhF015983; Tue, 9 Jan 2007 13:13:27 -0800 Message-ID: <45A40577.7030701@desc.org> Date: Tue, 09 Jan 2007 13:13:27 -0800 From: Jonathan Hedstrom User-Agent: Thunderbird 1.5.0.9 (X11/20061219) MIME-Version: 1.0 To: pgsql general CC: Scott Marlowe , Ken Tanzer Subject: Re: ERROR: invalid memory alloc request size, and others References: <45A3EF27.1020300@desc.org> <1168372894.20602.164.camel@state.g2switchworks.com> In-Reply-To: <1168372894.20602.164.camel@state.g2switchworks.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/435 X-Sequence-Number: 106975 Scott Marlowe wrote: > On Tue, 2007-01-09 at 13:38, Jonathan Hedstrom wrote: > >> We recently upgraded from 8.1.4 to 8.2.0 on Fedora Core 6, and are now >> seeing a few rather ominous-looking messages. >> >> The problem started with this one, during an update involving a rather >> complex view: >> >> ERROR: invalid memory alloc request size 1174405120 >> >> Then, when attempting to re-run the same update statement: >> >> PANIC: cannot abort transaction 8682091, it was already committed >> >> and then again: >> >> PANIC: right sibling's left-link doesn't match >> >> >> I ran reindex on the tables in question, which fixed the problem in the >> short term and allowed the update to complete, but then I got the memory >> allocation error and these overnight: >> >> ERROR: invalid page header in block 3362 of relation >> "index_clin_dal_staff_id" >> ERROR: invalid page header in block 2325 of relation "index_clin_dal_batch" >> >> I will gladly provide additional information to help track down and >> hopefully solve this problem, but at this point I'm not sure what else >> to include. >> > > First step, update to 8.2.1, it came out yesterday, and there were a few > bugs that got stomped. Don't know if they are related to your problem, > but having the latest version is usually a "good thing". > > I noticed that 8.2.1 had been released shortly after I sent off my initial email. I've upgraded and hopefully that will take care of it. > Also, schedule some maintenance window for your server to run memtest86 > and possibly something to check for bad blocks on your drives. Often > errors like the invalid memory alloc request size you're seeing, and the > link doesn't match one are caused by bad hardware. I'll try to run these tests soon, but this is a production server, so scheduling downtime takes a bit of planning. I should also mention that this is the exact same server we've been running 8.1.4 on for about 6 months without a problem (doing the same nightly update causing the problem etc), so I'm a bit skeptical about having suddenly developed hardware issues. Thanks, Jonathan