removal of exec()

Started by Bruce Momjianover 27 years ago3 messages
#1Bruce Momjian
maillist@candle.pha.pa.us

I am testing a patch for removing exec() and using just fork(). I will
post it to the hackers list for review, if that is OK. Should be only a
few hundred lines.

-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.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)
#2Bruce Momjian
maillist@candle.pha.pa.us
In reply to: Bruce Momjian (#1)
Re: [HACKERS] removal of exec()

Bruce Momjian <maillist@candle.pha.pa.us> writes:

I am testing a patch for removing exec() and using just fork(). I will
post it to the hackers list for review, if that is OK. Should be only a
few hundred lines.

To do what exactly?

--Michael

[FYI for others on the list.]

Currently, a backend is created by forking the postmaster, then exec'ing
an identical binary to run the backend. This change makes it just
fork(), but not exec() a new identical binary.

Why it was originally done this way, I don't know. It was not trivial
to change it. It saves 0.01 seconds on backend startup with single
query, which usually takes 0.08 seconds, so the 0.01 seconds is
significant.

-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.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)
#3Andreas Zeugswetter
andreas.zeugswetter@telecom.at
In reply to: Bruce Momjian (#2)
Re: [HACKERS] removal of exec()

Hey, wow.

Where is it, I am curious. I'll try AIX (will it apply to the last snapshot, I still did not have time
to compile CVSup on my AIX box)

Andreas

I am testing a patch for removing exec() and using just fork(). I will
post it to the hackers list for review, if that is OK. Should be only a
few hundred lines.