Re: Re :Solaris Performance

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Mark kirkwood <markir(at)slingshot(dot)co(dot)nz>, "P(dot)J(dot) Josh Rovero" <rovero(at)sonalysts(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Re :Solaris Performance
Date: 2002-02-05 17:37:20
Message-ID: 200202051737.g15HbKw15318@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Mark kirkwood <markir(at)slingshot(dot)co(dot)nz> writes:
> > The problem area I have experienced is that queries that require a
> > reasonable sort at some point of the plan (e.g have a GROUP BY) will
> > consume all one 1 cpu (box had 2 of them) for a _very_ long time (e.g.
> > 30 minutes - using either compiler) whereas the same query on a (single
> > cpu) Intel/Linux takes about 1 minute.
>
> [ scratches head ... ] I didn't think there was anything particularly
> system-dependent about the sorting code. Have you tried profiling, or
> anything to determine where the Solaris version is spending its time?

The only thing I can think of that would affect the sorting code is
paging to swap during the sort. But the default sort batch size is
512k, so it is hard to imagine it is paging out at that size. You would
think it would affect normal backend operation, but maybe not. Does
Solaris have a working-set concept where it will force to swap even if
no one else is using memory? When I used VMS, we had that problem where
a process would only use a small amount of memory and force to swap even
though no one else was using the machine. I just looked through my
Mauro Solaris internals book and I don't see any mention of working set
memory usage.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lamar Owen 2002-02-05 17:37:29 Re: [HACKERS] PostgreSQL v7.2 Final Release
Previous Message Lamar Owen 2002-02-05 17:33:01 Re: [HACKERS] PostgreSQL v7.2 Final Release