From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Andrew Sullivan <andrew(at)libertyrms(dot)info> |
Cc: | PostgreSQL general list <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: brk() function and performance |
Date: | 2002-07-16 16:13:07 |
Message-ID: | 200207161613.g6GGD7P29825@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Yow. What are those Solaris engineers doing over there?
---------------------------------------------------------------------------
Andrew Sullivan wrote:
> On Thu, Jul 11, 2002 at 12:30:12PM -0400, Andrew Sullivan wrote:
> > Hi,
> >
> > We're running PostgreSQL 7.1.3 (I know, I know) on Solaris 7 on two
> > Sun E4500s with 8 CPUs and 16 Gig of RAM.
> >
> > We have noticed that one of the machines is considerably slower than
> > the other. We have traced the problem to the brk() funciton call.
>
> My Sun-loving colleague, Sorin Iszlai, wondered why this problem was
> cropping up, and remembered the qsort() debacle. So he did some
> tests. Guess what? Here's what he found:
>
> > I ran some tests with the realloc() function from the standard lib;
> > If the application calls realloc() 4096 times the results are:
>
> > - if linked with bsdmalloc, realloc() calls brk() 17 times only:
> > syscall seconds calls
> > brk .40 17
>
> > - and without bsdmalloc :
> > syscall seconds calls
> > brk 1.36 24527
>
> At this rate, I'm beginning to get the feeling that maybe getting
> FreeBSD to work well on 64 bit Sun machines is the most important
> project we could undertake ;-)
>
> Anyway, I'm going to do some tests with this, but in the meantime, if
> anyone has any views on the subject, insights, or experience, it'd be
> much appreciated.
>
> Thanks.
>
> A
>
> --
> ----
> Andrew Sullivan 87 Mowat Avenue
> Liberty RMS Toronto, Ontario Canada
> <andrew(at)libertyrms(dot)info> M6K 3E3
> +1 416 646 3304 x110
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Doug McNaught | 2002-07-16 16:13:14 | Re: Question: merit / feasibility of compressing frontend |
Previous Message | Bruce Momjian | 2002-07-16 16:12:09 | Re: OIDs (Or: another RTFM question?) |