Re: [HACKERS] posmaster failed under high load

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Taral <taral(at)taral(dot)net>
Cc: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] posmaster failed under high load
Date: 1999-05-06 06:36:58
Message-ID: 199905060636.CAA15866@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Thu, 6 May 1999, Oleg Bartunov wrote:
>
> > How to explain that process with PID 701 which shown in ps output
> > as (postmaster) after some time becomes looks as usual postgres
>
> Because 'postmaster' is written in the kernel task_struct, whereas the
> task's argv[] says 'postgres'.
>
> The only way to get around this is to do an execv(), at which point the
> kernel will recopy argv[0].

We used to do execv(), but stopped doing it for performance reasons.

--
Bruce Momjian | http://www.op.net/~candle
maillist(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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim Mikheev 1999-05-06 07:27:29 Re: [HACKERS] can't compile
Previous Message Thomas Lockhart 1999-05-06 06:32:07 Re: [HACKERS] numeric data type on 6.5