Re: brk() function and performance
От | Bruce Momjian |
---|---|
Тема | Re: brk() function and performance |
Дата | |
Msg-id | 200207161613.g6GGD7P29825@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: brk() function and performance (Andrew Sullivan <andrew@libertyrms.info>) |
Список | 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@libertyrms.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@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
В списке pgsql-general по дате отправления: