Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aOA55-0005Su-C0 for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Jan 2016 20:19:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aOA54-0002xW-Se for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Jan 2016 20:19:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aO288-000081-Mo for pgsql-bugs@postgresql.org; Tue, 26 Jan 2016 11:49:52 +0000 Received: from bst02.sputnikmedia.net ([193.239.68.122]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aO283-0004J7-LO for pgsql-bugs@postgresql.org; Tue, 26 Jan 2016 11:49:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bigmir.net; s=mail; h=Message-Id:Content-Transfer-Encoding:Content-Type:References:MIME-Version:Date:In-Reply-To:Cc:From:Subject:To; bh=1W/C8I5dhWlAFHtjXChy/tYMiXyoX0lscParPhqmrh0=; b=nnONoF+3oQrcdqORwS7aZc6S2dKhyOitVzCic2EGsg5ImqaTkD0UBzUnatWtsQc7Mgynrn5YvBofVN+mLV7ds07EzDXV7emQeXXmAAr7jLWD1qpnstthmTrbil8B27n5lNssfEmNtkbBDWHPRI+H/ymeQpjlbymPeMtUqbkxFTY=; Received: from bst04.sm ([192.168.68.124] helo=bst04.sputnikmedia.net) by bst02.sputnikmedia.net with esmtp (Exim 4.80.1) (envelope-from ) id 1aO27z-0003eS-5o; Tue, 26 Jan 2016 13:49:43 +0200 Received: from web by bst04.sputnikmedia.net with local (Exim 4.80.1) (envelope-from ) id 1aO27z-0001JM-0L; Tue, 26 Jan 2016 13:49:43 +0200 To: Peter Geoghegan Subject: =?utf-8?B?UmVbMl06IFtCVUdTXSBSZVsyXTogW0JVR1NdIEJVRyAjMTM4Njk6IFJpZ2h0IEpvaW4gcXVlcnkgdGhhdCBuZXZlciBlbmRz?= From: Master ZX Cc: David G. Johnston , =?utf-8?B?cGdzcWwtYnVnc0Bwb3N0Z3Jlc3FsLm9yZw==?= In-Reply-To: Date: Tue, 26 Jan 2016 13:49:42 +0200 MIME-Version: 1.0 References: <20160115151648.2968.21248@wrigleys.postgresql.org> X-Mailer: bigmir)net Mail System X-Server: bst04.sputnikmedia.net X-Sender-IP: 46.53.178.30 X-User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: 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 19.01.2016 02:47, Peter Geoghegan >On Sat, Jan 16, 2016 at 4:51 AM, Master ZX wrote: > > I can do more to investigate this behavior only if postgresql will consider my claim as bug that has to be fixed in first order. > > Ideally I should give my DB schema and dump or VM wich reproduces this bug, but I can not give away our internal data. All other options I can not describe at public mailing list. > > Why don't you use a tool like Linux's perf to determine where time is spent?: > > https://wiki.postgresql.org/wiki/Profiling_with_perf > > A simple "perf top" may be all that it takes to give us a better idea > of where time is spent. > > -- > Peter Geoghegan This is forwarded message from 21 of Jan (looks like previous message lost) I'm not really experienced in bug reporting and perf usage. I've recorded some data via perf record for about 40 sec. and this is what I was able to get via perf report -g --children - 8.98% 8.93% postgres postgres [.] slot_getattr ▒ slot_getattr ▒ - 5.79% 5.75% postgres postgres [.] ExecMergeJoin ▒ ExecMergeJoin ▒ - 3.73% 3.70% postgres postgres [.] ExecQual ▒ ExecQual ▒ - 3.68% 3.65% postgres postgres [.] ExecStoreMinimalTuple ▒ ExecStoreMinimalTuple ▒ - 2.85% 0.00% postgres [unknown] [.] 0x0000000000000001 ▒ 0x1 ▒ - 2.80% 2.78% postgres postgres [.] tuplesort_gettupleslot ▒ tuplesort_gettupleslot ▒ - 2.78% 0.00% postgres postgres [.] 0xffffffffffdb3602 ▒ 0x1b3602 ▒ - 2.76% 2.76% postgres postgres [.] 0x00000000001b3602 ▒ 0x1b3602 ▒ - 2.64% 2.62% postgres postgres [.] MemoryContextReset ▒ MemoryContextReset ▒ - 2.30% 2.28% postgres postgres [.] ExecProcNode ▒ ExecProcNode ▒ - 2.26% 2.25% postgres postgres [.] pgstat_end_function_usage ▒ pgstat_end_function_usage ▒ - 2.24% 0.00% postgres postgres [.] 0xffffffffffdb35f0 ▒ 0x1b35f0 ▒ - 2.23% 2.23% postgres postgres [.] 0x00000000001b35f0 ▒ 0x1b35f0 ▒ - 2.13% 2.12% postgres postgres [.] ExecSort ▒ ExecSort ▒ - 1.87% 1.86% postgres postgres [.] check_stack_depth ▒ + check_stack_depth ▒ - 1.47% 1.46% postgres postgres [.] pgstat_init_function_usage ▒ pgstat_init_function_usage I have about 100Mb of perf.data and as far as I can understand perf report will be most informative on machine where it was collected. So in a case if you need some other data from perf.dump just let me know. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs