[HACKERS] Database/kernel community topic at Collaboration Summit 2014

2014-03-10 Thread Mel Gorman
r storage. I tuned out a bit during the discussion and did not track what happened with it since but I guess that any developments of that sort would be of interest to the Postgres community. Some of these wish lists still need polish but could potentially be discussed further at LSF/MM with a wid

Re: [Lsf-pc] [HACKERS] Linux kernel impact on PostgreSQL performance

2014-01-20 Thread Mel Gorman
On Fri, Jan 17, 2014 at 03:24:01PM -0500, Gregory Smith wrote: > On 1/17/14 10:37 AM, Mel Gorman wrote: > >There is not an easy way to tell. To be 100%, it would require an > >instrumentation patch or a systemtap script to detect when a > >particular page is being writt

Re: [Lsf-pc] [HACKERS] Linux kernel impact on PostgreSQL performance

2014-01-20 Thread Mel Gorman
fs isn't the solution here. :) > And swap IO patterns blow chunks because people rarely want to touch that area of the code with a 50 foot pole. It gets filed under "if you're swapping, you already lost" -- Mel Gorman SUSE Labs -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [Lsf-pc] [HACKERS] Re: Linux kernel impact on PostgreSQL performance (summary v2 2014-1-17)

2014-01-20 Thread Mel Gorman
Summit that is open to a wider and more dedicated group. That hopefully will result in a small number of concrete proposals that can be turned into patches over time. -- Mel Gorman SUSE Labs -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subs

Re: [Lsf-pc] [HACKERS] Re: Linux kernel impact on PostgreSQL performance (summary v2 2014-1-17)

2014-01-17 Thread Mel Gorman
On Fri, Jan 17, 2014 at 06:14:37PM +0100, Andres Freund wrote: > Hi Mel, > > On 2014-01-17 16:31:48 +0000, Mel Gorman wrote: > > Direct IO, buffered IO, double buffering and wishlists > > -- > >3. Hint th

[HACKERS] Re: [Lsf-pc] Linux kernel impact on PostgreSQL performance (summary v2 2014-1-17)

2014-01-17 Thread Mel Gorman
On Wed, Jan 15, 2014 at 02:14:08PM +, Mel Gorman wrote: > > One assumption would be that Postgres is perfectly happy with the current > > kernel behaviour in which case our discussion here is done. > > It has been demonstrated that this statement was farcical. The thread

Re: [Lsf-pc] [HACKERS] Linux kernel impact on PostgreSQL performance

2014-01-17 Thread Mel Gorman
On Thu, Jan 16, 2014 at 04:30:59PM -0800, Jeff Janes wrote: > On Wed, Jan 15, 2014 at 2:08 AM, Mel Gorman wrote: > > > On Tue, Jan 14, 2014 at 09:30:19AM -0800, Jeff Janes wrote: > > > > > > > > That could be something we look at. There are cases buried de

Re: [HACKERS] [Lsf-pc] Linux kernel impact on PostgreSQL performance

2014-01-15 Thread Mel Gorman
On Wed, Jan 15, 2014 at 10:16:27AM -0500, Robert Haas wrote: > On Wed, Jan 15, 2014 at 4:44 AM, Mel Gorman wrote: > > That applies if the dirty pages are forced to be kept dirty. You call > > this pinned but pinned has special meaning so I would suggest calling it > > someth

[HACKERS] Re: Linux kernel impact on PostgreSQL performance (summary v1 2014-1-15)

2014-01-15 Thread Mel Gorman
p://www.Postgres.org/message-id/17515.1389715...@sss.pgh.pa.us There were some variants of how something like this could be achieved but no finalised proposal at the time of writing. Not all of these suggestions are viable but some are more viable than others. Ultimately we would still

Re: [Lsf-pc] [HACKERS] Linux kernel impact on PostgreSQL performance

2014-01-15 Thread Mel Gorman
free lunch and it has costs that read/write does not have to deal with. Maybe some of these problems can be fixed or mitigated but it is a case where a test case demonstrates the problem even if that requires patching PostgreSQL. -- Mel Gorman SUSE Labs -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] [Lsf-pc] Linux kernel impact on PostgreSQL performance

2014-01-15 Thread Mel Gorman
On Wed, Jan 15, 2014 at 09:44:21AM +, Mel Gorman wrote: > > > > H. What happens if the process crashes after pinning the dirty > > pages? How do we even know what process pinned the dirty pages so > > we can clean up after it? What happens if the same page i

Re: [HACKERS] Linux kernel impact on PostgreSQL performance

2014-01-15 Thread Mel Gorman
ll hit the floor. FWIW, the performance of some IO "benchmarks" used to depend on whether they could create, write and delete files before any of the data actually hit the disk -- pretty much exactly the type of behaviour you are looking for. -- Mel Gorman SUSE Labs -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] [Lsf-pc] Linux kernel impact on PostgreSQL performance

2014-01-15 Thread Mel Gorman
cache pages in memory being a workable solution. > >From what I've read so far, I'm not convinced they are looking for a hard *pin* as such. They want better control over the how and the when of writeback, not absolute control. I somewhat sympathise with their reluctance to use direct IO when the kernel should be able to get them most, if not all, of the potential performance. -- Mel Gorman SUSE Labs -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Linux kernel impact on PostgreSQL performance

2014-01-14 Thread Mel Gorman
On Mon, Jan 13, 2014 at 03:24:38PM -0800, Josh Berkus wrote: > On 01/13/2014 02:26 PM, Mel Gorman wrote: > > Really? > > > > zone_reclaim_mode is often a complete disaster unless the workload is > > partitioned to fit within NUMA nodes. On older kernels enabling i

Re: [Lsf-pc] [HACKERS] Linux kernel impact on PostgreSQL performance

2014-01-13 Thread Mel Gorman
On Mon, Jan 13, 2014 at 11:38:44PM +0100, Jan Kara wrote: > On Mon 13-01-14 22:26:45, Mel Gorman wrote: > > The flipside is also meant to hold true. If you know data will be needed > > in the near future then posix_fadvise(POSIX_FADV_WILLNEED). Glancing at > > the implementa

Re: [HACKERS] Linux kernel impact on PostgreSQL performance

2014-01-13 Thread Mel Gorman
e pages get shuffled to the end of the LRU and get tagged for reclaim as soon as possible. Maybe you need access to something like that via posix_fadvise to say "reclaim this page if you need memory but leave it resident if there is no memory pressure" or something similar. Not exactly sure what that interface would look like or offhand how it could be reliably implemented. -- Mel Gorman SUSE Labs -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Linux kernel impact on PostgreSQL performance

2014-01-13 Thread Mel Gorman
irect IO but there may be reasons why you are avoiding that and are unhappy with the interfaces that are meant to work. Just from the start, it looks like there are a number of problem areas. Some may be fixed -- in which case we should identify what fixed it, what kernel version and see can it be verifie

[HACKERS] Linux kernel impact on PostgreSQL performance

2014-01-13 Thread Mel Gorman
u but just as a hint, we'd need something a lot more concrete than "you should test more". -- Mel Gorman SUSE Labs -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers