Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WTwsz-00065j-BJ for pgsql-general@arkaria.postgresql.org; Sat, 29 Mar 2014 17:17:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WTwsy-0003Vz-Qd for pgsql-general@arkaria.postgresql.org; Sat, 29 Mar 2014 17:17:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WTwsw-0003Vh-Mm for pgsql-general@postgresql.org; Sat, 29 Mar 2014 17:17:34 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WTwst-0002Vd-2X for pgsql-general@postgresql.org; Sat, 29 Mar 2014 17:17:33 +0000 Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id E5000AD3 for ; Sat, 29 Mar 2014 13:17:28 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 29 Mar 2014 13:17:28 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=0vh8xsqwoSAWkdYeN0qVHe6OmAM=; b=Bt71MOcf/skZdmOlvR0b41V6SYS9 1R3r7PaWopopBbMhJ1429spptEiHaWjOhLngTCtI8aHxVZfOZCeMYzAvVzkdpCK/ 8hZQmG2hmPLuFGhQfpCVkqAsvCrqSJGaJ/MlZFnyt+d44W2yjbZuL+y9q1KZCGvs 98H6tLsdRz3pa1Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=0vh8xsqwoSAWkdYeN0qVHe 6OmAM=; b=jtdMFXNQQF7NKBHK7AFRt46EdKFI++pttF8fXPgN6wC1ui0WdkkQL+ AwMBtNo3g+w3EtaXEQio8tZsJRHT6gozwA3r97VLyggTCZynMLzNm4p3ns9mBoML +gwf2XE4hVbQ4f8xcLggQp1PEQbqzJzVbyhEm7BedXAObArj+8xmI= X-Sasl-enc: ncN1cpkDtOJ/gtTiJb9aIBqnA4iaeR/uqeA35bzVDsY1 1396113448 Received: from panda.site (unknown [97.113.11.16]) by mail.messagingengine.com (Postfix) with ESMTPA id D44EBC00003; Sat, 29 Mar 2014 13:17:27 -0400 (EDT) Message-ID: <53370026.2040509@aklaver.com> Date: Sat, 29 Mar 2014 10:17:26 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Willy-Bas Loos , lst_hoe02@kwsoft.de CC: pgsql-admin , "pgsql-general@postgresql.org" Subject: Re: [ADMIN]openvz and shared memory trouble References: <53357E83.2040101@aklaver.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 03/29/2014 08:19 AM, Willy-Bas Loos wrote: > The error that shows up is a Bus error. > That's on the replication slave. > Here's the log about it: > 2014-03-29 12:41:33 CET db: ip: us: FATAL: could not receive data from > WAL stream: server closed the connection unexpectedly > This probably means the server terminated abnormally > before or while processing the request. > > cp: cannot stat > `/data/postgresql/9.1/main/wal_archive/00000001000000720000000A': No > such file or directory > 2014-03-29 12:41:33 CET db: ip: us: LOG: unexpected pageaddr > 71/E9DA0000 in log file 114, segment 10, offset 14286848 > cp: cannot stat > `/data/postgresql/9.1/main/wal_archive/00000001000000720000000A': No > such file or directory > 2014-03-29 12:41:33 CET db: ip: us: LOG: streaming replication > successfully connected to primary > 2014-03-29 12:41:48 CET db: ip: us: LOG: startup process (PID 17452) > was terminated by signal 7: Bus error > 2014-03-29 12:41:48 CET db: ip: us: LOG: terminating any other active > server processes > 2014-03-29 12:41:48 CET db:wbloos ip:[local] us:wbloos WARNING: > terminating connection because of crash of another server process > 2014-03-29 12:41:48 CET db:wbloos ip:[local] us:wbloos DETAIL: The > postmaster has commanded this server process to roll back the current > transaction and exit, because another server process exited abnormally > and possibly corrupted shared memory. > 2014-03-29 12:41:48 CET db:wbloos ip:[local] us:wbloos HINT: In a > moment you should be able to reconnect to the database and repeat your > command. > Well what I am seeing are WAL log errors. One saying no file is present, the other pointing at a possible file corruption. Shared memory problems are offered as a possible cause only. Right now I would say we are seeing only half the picture. The Postgres logs from the same time period for the primary server, as well as the system logs for the openvz container would help fill in the other half of the picture. > > > On Fri, Mar 28, 2014 at 2:52 PM, Adrian Klaver > > wrote: > > > 25% is a suggested value, not an absolute value. Desirable would > seem to be a value that works for your situation and maintains > performance. Is there any indication that running with a lower value > adversely affects performance? > > > > Thanks, i'm looking into the bean counters more. > Maybe there is something to won by guaranteeing the shared memory > resources, instead of just refraining from constraining them. > > > Ok, that sounds reassuring, and i agree that the other posts are not > really related. It's just that i found several posts that boiled down to > memory related issues with openVZ, and experts complaining. That made me > worry. A cursory look at memory management in openvz shows it is different from other virtualization software and physical machines. Whether that is a problem would seem to be dependent on where you are on the learning curve:) As to 'experts' complaining, I have heard a lot of that in many different fields and every once in while they are right, so it tends to be low on my check list when it comes to doing things. -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general