Re: [HACKERS] removing the exec() from doexec()

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: maillist(at)candle(dot)pha(dot)pa(dot)us (maillist)
Cc: brett(at)abraxas(dot)scene(dot)com, pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] removing the exec() from doexec()
Date: 1998-04-30 01:53:36
Message-ID: 199804300153.VAA00508@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> This exec() takes 15% of our startup time. I have wanted it removed for
> many releases now. The only problem is to rip out the code that
> re-attached to shared memory and stuff like that, because you will no
> longer loose the shared memory in the exec(). The IPC code is
> complicated, so good luck. I or others can help if you get stuck.
>

Another item is to no longer use SYSV shared memory but use
mmap(MAP_ANON) because this allows a much larger amount of shared memory
to be used.

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brett McCormick 1998-04-30 02:01:01 Re: [HACKERS] removing the exec() from doexec()
Previous Message Bruce Momjian 1998-04-30 01:44:15 Re: [HACKERS] removing the exec() from doexec()