@@ -578,3 +578,65 @@ Myron Scott
578578579579
580580
581+ From
[email protected] Thu Jun 28 11:14:10 2001
582+ 583+ Received: from www.wgcr.org (IDENT:
[email protected] [206.74.232.194])
584+ by candle.pha.pa.us (8.10.1/8.10.1) with ESMTP id f5SFE9U18758
585+ for <
[email protected] >; Thu, 28 Jun 2001 11:14:09 -0400 (EDT)
586+ Received: from lowen.wgcr.org (IDENT:lowen@[10.1.2.3])
587+ by www.wgcr.org (8.9.3/8.9.3/WGCR) with SMTP id LAA11879;
588+ Thu, 28 Jun 2001 11:14:14 -0400
589+ Content-Type: text/plain;
590+ charset="iso-8859-1"
591+ From: Lamar Owen <
[email protected] >
592+ To: Bruce Momjian <
[email protected] >
593+ Subject: Process weight (was:Re: [GENERAL] Re: Red Hat to support PostgreSQL)
594+ Date: Thu, 28 Jun 2001 11:14:09 -0400
595+ X-Mailer: KMail [version 1.2]
596+ 597+ 598+ MIME-Version: 1.0
599+ 600+ Content-Transfer-Encoding: 8bit
601+ Status: ORr
602+
603+ On Wednesday 27 June 2001 18:58, Bruce Momjian wrote:
604+ > > I had almost given up on using Postgres for this system because under
605+ > > Solaris, it just couldn't cut it (MySQL could do the work with one CPU
606+ > > while Postgres took up even more CPU and required *both* CPUs to be
607+ > > enabled), but when we moved the system to a Linux box, things worked
608+ > > much better.
609+
610+ > Ah, back to a PostgreSQL topic. :-)
611+
612+ > My guess on this one is that Solaris is slower for PostgreSQL because
613+ > process switching is _much_ heavier on Solaris than other OS's. This is
614+ > because of the way they implemented processes in SVr4. They got quite
615+ > heavy, almost requiring kernel threads so you weren't switching
616+ > processes all the time.
617+
618+ Now, the question of the week:
619+ Is supporting a thread model for an inefficient OS a desirable thing to do,
620+ when more efficient OS kernels are available such as FreeBSD 4.x and Linux
621+ 2.4? My opinion is that our existing model, when used with a
622+ connection-pooling frontend, is rather efficient. (Yes, I use a
623+ connection-pooling frontend. Performance is rather nice, and I don't have to
624+ have a full backend spawned for every page hit.)
625+
626+ In fact, on a Linux box threads show as processes. While I know that the
627+ kernel actually supports themin a slightly different manner than processes,
628+ they have more similarities than differences.
629+
630+ However, even on OS's where threads are supported, the mechanism to support
631+ those threads must be an efficient one -- not all pthreads libraries are
632+ created equal. Many are frontends (expensive ones, at that) for plain old
633+ processes.
634+
635+ Does anyone know of a resource that details the 'weight' of processes for our
636+ supported platforms? [reply off-list -- I'll be glad to summarize responses
637+ to HACKERS, ADMIN, or PORTS, as appropriate, if desired.]
638+ --
639+ Lamar Owen
640+ WGCR Internet Radio
641+ 1 Peter 4:11
642+
0 commit comments