Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0evb-0002Z3-13 for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Jan 2014 22:15:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0eva-0005Ug-Dx for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Jan 2014 22:15:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0TVa-00049S-4B for pgsql-bugs@postgresql.org; Tue, 07 Jan 2014 10:03:38 +0000 Received: from nm3-vm7.bullet.mail.sg3.yahoo.com ([106.10.148.118]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0TVR-0003sF-S1 for pgsql-bugs@postgresql.org; Tue, 07 Jan 2014 10:03:37 +0000 Received: from [106.10.166.123] by nm3.bullet.mail.sg3.yahoo.com with NNFMP; 07 Jan 2014 10:03:21 -0000 Received: from [106.10.150.29] by tm12.bullet.mail.sg3.yahoo.com with NNFMP; 07 Jan 2014 10:03:20 -0000 Received: from [127.0.0.1] by omp1030.mail.sg3.yahoo.com with NNFMP; 07 Jan 2014 10:03:20 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 659690.35101.bm@omp1030.mail.sg3.yahoo.com Received: (qmail 33479 invoked by uid 60001); 7 Jan 2014 10:03:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1389089000; bh=iR+80wChsKX58cieS2l5V42kWSRL5lsUJ5Ely9hdtRw=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=f48imjE4nb2NZM3GkIn8dUFnbHOM8lcKZYSf7/xEWa1jPCIlGF7sXXIn+6EEkfpA5zeGpKcWC/hIDkpGt3jauxExybfMN76niwiWwATQAMROBZ68aSEC6yOW5XPySlVcKyyLOqOjgJnbEUrkoKin3PK4iX3GVGTtsL+K8JwuHyY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=Q1twWTzlxzccoAE7vx7QkPLTAD/T//sO+CUk6OdLVEmjaCK3C/RO72HjtQd5/6zOBUcKkAfjG304c/5ZSvyXKdqpoAeA5kPvWYPys5gTAiXaX8h5RPVXiQn6yeP0JGbFAf3jBlCuHW5FePVLfzkVjPkFwHgv/vX3rcjkk4QQCVw=; X-YMail-OSG: aNk0n_8VM1l.aQXddDR5cdooxENvLswsiMNc_mZAFJaOUPF EqaM_21lnOJkIyCOKZLcLexn1QNYVY8K30IdQVXYUSBiGm2UfTXn9jzGqJdw Z8nXiSEHuKkBgxWGXgFBTI0NL7xYWu.xsxex6X8e_UXC4P9hWFwtwP.ZWg3W qTexk2xXN.VHYlUUV98jMIN95kGs7Br1h3IfvAbKmLSXI_wBnMNyNV7dpRoY OIm2VXfrc8lSg.Fi6X6QWWU5erUH_VHmua9Pi5.Jl_.6zJTjRmP2SNmcIDAn dShP8hgMhrukd6YaF4DPmierLT2_o1lRQGMS5ogl9g7dczw72kTWtjXTFWb8 rdkg0VBjg7UUjA4P8xHA8RDkC4gbRYd.EFxuoQ2z1r0PMKJFomi8udLfCUZA xFhXqNUfAPeo8ec20X5Nz0Z.JDHoq7QB8JfsEq5VFMPeLTK4t3yu47b2s3Rl ZcwECDZcCpCCca5O_XRO6xE3WSnuVBDXggkS7S_jyZ3BTH6TE48GW7Je1BBa BDckqnp8Wm.oqxpr10QvGwRswxhWuw1iykOmtd7C7bo.Ev7lEMQ-- Received: from [114.143.39.123] by web193101.mail.sg3.yahoo.com via HTTP; Tue, 07 Jan 2014 18:03:20 SGT X-Rocket-MIMEInfo: 002.001, SGVsbG8gQWxsLArCoApJbiBvdXIgc2V0dXAgdW5kZXIgaGVhdnkgbG9hZCAodG9vIG1hbnkgY2xpZW50IHBlcmZvcm1pbmcKdXBkYXRlcykgd2UgaGF2ZSBvYnNlcnZlZCB0aGUgdW5kZXJseWluZyBDSUZTIG1vZHVsZSBydW5zIG91dCBvZiBtZW1vcnkgYW5kIHRoZQpkYXRhYmFzZSBjcmFzaGVzIG9yIGdvZXMgaW4gcmVjb3ZlcnkgbW9kZS4KwqAKTm92IDI4IDA5OjE3OjMyIG5nNzgga2VybmVsOiBDSUZTIFZGUwooMTAwNmYxZTVlLHBpZD0xOTM0Mik6IEVycm9yIGluIE9wZW4gPSBPdXQgb2YgbWVtb3J5PDMBMAEBAQE- X-Mailer: YahooMailWebService/0.8.172.614 Message-ID: <1389089000.56167.YahooMailNeo@web193101.mail.sg3.yahoo.com> Date: Tue, 7 Jan 2014 18:03:20 +0800 (SGT) From: Umesh Kirdat Reply-To: Umesh Kirdat Subject: Out of memory in CIFS leads to database crash To: "pgsql-bugs@postgresql.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-886612536-113717218-1389089000=:56167" X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org ---886612536-113717218-1389089000=:56167 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello All,=0A=A0=0AIn our setup under heavy load (too many client performin= g=0Aupdates) we have observed the underlying CIFS module runs out of memory= and the=0Adatabase crashes or goes in recovery mode.=0A=A0=0ANov 28 09:17:= 32 ng78 kernel: CIFS VFS=0A(1006f1e5e,pid=3D19342): Error in Open =3D Out o= f memory<3> ISVS(0615,i=3D96)=0Aro nOe u fmoy<3> CIFS VFS(1006f16,pid196) r= or i pn u fmmor=0ANov 28 09:17:32 ng78 postgres[19342]: [10-1] 192.168.20.7= 8 19342 2013-11-28=0A09:17:32.882 PST ERROR: could not open file "base/1638= 4/16794":=0ACannot allocate memory=0ANov 28 09:17:32 ng78 postgres[19342]: = [10-2] 192.168.20.78 19342 2013-11-28=0A09:17:32.882 PST STATEMENT: select = =0A=A0=0AThe physical memory on the machine is 64 GB=0APostgres version 9.0= .4=0AHardware is 64 bit=0A=A0=0AI wish to know why is the database crashing= if the file=0Aopen fails? Why can't it handle it gracefully by rolling bac= k the transaction?=0AUmesh ---886612536-113717218-1389089000=:56167 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
=0A=0A
Hello All,
 
In our setup under heavy load (too many client performing=0Au= pdates) we have observed the underlying CIFS module runs out of memory and = the=0Adatabase crashes or goes in recovery mode.
 
Nov 28 0= 9:17:32 ng78 kernel: CIFS VFS=0A(1006f1e5e,pid=3D19342): Error in Open =3D = Out of memory<3> ISVS(0615,i=3D96)=0Aro nOe u fmoy<3> CIFS VFS(= 1006f16,pid196) ror i pn u fmmor
=0ANov 28 09:17:32 ng78 postgres[19342]= : [10-1] 192.168.20.78 19342 2013-11-28=0A09:17:32.882 PST ERROR: could not= open file "base/16384/16794":=0ACannot allocate memory
=0ANov 28 09:17:= 32 ng78 postgres[19342]: [10-2] 192.168.20.78 19342 2013-11-28=0A09:17:32.8= 82 PST STATEMENT: select
 
The physical memory on the mach= ine is 64 GB
Postgres version 9.0.4
= Hardware is 64 bit
 
I wish to know why is the database crashing if t= he file=0Aopen fails? Why can't it handle it gracefully by rolling back the= transaction?
Umesh
---886612536-113717218-1389089000=:56167--