removal of exec()
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)
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)
Import Notes
Reply to msg id not found: v6iumrman5.fsf@flame.lh.vix.com | Resolved by subject fallback
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.
Import Notes
Resolved by subject fallback