pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: josh@agliodbs.com, "scott.marlowe" <scott.marlowe@ihs.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: lutzeb@aeccom.com, pgsql-performance@postgresql.org, Neil Conway <neilc@samurai.com>
Subject: Re: Wierd context-switching issue on Xeon
Date: Tue, 20 Apr 2004 20:46:58 -0700
Message-ID: <4085EEB2.5080007@joeconway.com> (raw)
In-Reply-To: <40849235.2070808@joeconway.com>
References: <Pine.LNX.4.33.0404191410550.17372-100000@css120.ihs.com>
	<40843E63.7050101@joeconway.com>
	<200404191455.04068.josh@agliodbs.com>
	<1407.1082419316@sss.pgh.pa.us>
	<40849235.2070808@joeconway.com>

Joe Conway wrote:
>> In isolation, test_run.sql should do essentially no syscalls at all once
>> it's past the initial ramp-up.  On a machine that's functioning per
>> expectations, multiple copies of test_run show a relatively low rate of
>> semop() calls --- a few per second, at most --- and maybe a delaying
>> select() here and there.

Here's results for 7.4 on a dual Athlon server running fedora core:

CPU states:  cpu    user    nice  system    irq  softirq  iowait    idle
            total   86.0%    0.0%   52.4%   0.0%     0.0%    0.0%   61.2%
            cpu00   37.6%    0.0%   29.7%   0.0%     0.0%    0.0%   32.6%
            cpu01   48.5%    0.0%   22.7%   0.0%     0.0%    0.0%   28.7%

procs                      memory      swap          io     system 
    cpu
  r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs
  1  0 120448  25764  48300 1094576    0    0     0   124  170   187
  1  0 120448  25780  48300 1094576    0    0     0     0  152    89
  2  0 120448  25744  48300 1094580    0    0     0    60  141 78290
  2  0 120448  25752  48300 1094580    0    0     0     0  131 140326
  2  0 120448  25756  48300 1094576    0    0     0    40  122 140100
  2  0 120448  25764  48300 1094584    0    0     0    60  133 136595
  2  0 120448  24284  48300 1094584    0    0     0   200  138 135151

The jump in cs corresponds to starting the query in the second session.

Joe




view thread (77+ messages)  latest in thread

Message-ID: <4085EEB2.5080007@joeconway.com>
Permalink:  ../4085EEB2.5080007@joeconway.com/
Also on:    postgresql.org/message-id/4085EEB2.5080007@joeconway.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mail@joeconway.com, tgl@sss.pgh.pa.us, scott.marlowe@ihs.com, pgman@candle.pha.pa.us, neilc@samurai.com
  Subject: Re: Wierd context-switching issue on Xeon
  In-Reply-To: <4085EEB2.5080007@joeconway.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox