pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tobias Oberstein <tobias.oberstein@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: lseek/read/write overhead becomes visible at scale ..
Date: Wed, 25 Jan 2017 22:27:40 +0100
Message-ID: <a7fc2477-d9d6-c695-b40a-76ad341562c9@gmail.com> (raw)
In-Reply-To: <20170125195238.2sjh477x2zvmjm5a@alap3.anarazel.de>
References: <b8748d39-0b19-0514-a1b9-4e5a28e6a208@gmail.com>
	<20170124171841.2n2nzqkuetbivzta@alap3.anarazel.de>
	<f94252f1-c860-573e-332a-b367e6f64ba1@gmail.com>
	<20170124174158.nk6htg7jjmqia7hr@alap3.anarazel.de>
	<422b4e6c-b7f0-90e0-6f70-389b2d50a848@gmail.com>
	<20170124181121.pgk7kqfkq4dd3hpo@alap3.anarazel.de>
	<a55b21d1-7c99-2c66-d661-ef5288f29e30@gmail.com>
	<20170124190705.2ioaocx6wuhvvegn@alap3.anarazel.de>
	<bc5e13d1-88e4-5394-dfb7-a23a0b8c3f2d@gmail.com>
	<20170125195238.2sjh477x2zvmjm5a@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Hi,

>> Synthetic PG workload or real world production workload?
>
> Both might work, production-like has bigger pull, but I'd guess
> synthetic is good enough.

Thanks! The box should get PostgreSQL in the not too distant future. 
It'll get a backup from prod, but will act as new prod, so it might take 
some time until a job can be run and a profile collected.

>> So how would I do a perf profile that would be acceptable as prove?
>
> You'd have to look at cpu time, not number of syscalls.  IIRC I
> suggested doing a cycles profile with -g and then using "perf report
> --children" to see how many cycles are spent somewhere below lseek.

Understood. Either profile manually or expand the function.

> I'd also suggest sharing a profile cycles profile, it's quite likely
> that the overhead is completely elsewhere.

Yeah, could be. It'll be interesting to see for sure. I should get a 
chance to collect such profile and then I'll post it back here -

/Tobias



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (21+ messages)  latest in thread

Message-ID: <a7fc2477-d9d6-c695-b40a-76ad341562c9@gmail.com>
Permalink:  ../a7fc2477-d9d6-c695-b40a-76ad341562c9@gmail.com/
Also on:    postgresql.org/message-id/a7fc2477-d9d6-c695-b40a-76ad341562c9@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tobias.oberstein@gmail.com, andres@anarazel.de
  Subject: Re: lseek/read/write overhead becomes visible at scale ..
  In-Reply-To: <a7fc2477-d9d6-c695-b40a-76ad341562c9@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox