Re: Simple query takes a long time on win2K

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "A(dot) Mous" <a(dot)mous(at)shaw(dot)ca>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Simple query takes a long time on win2K
Date: 2005-03-23 16:28:34
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE6C7138@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> You're right, the Celeron 2400 is much faster than the 200,
> but not that much more than the 1800, and all win2k
> (professional) machines are serving up the records in exactly
> the same amount of time.
>
> Across a network (issuing the query from the 2400 celeron win
> XP to the 233 PII win2k) the records are served up in about
> 300ms! Much faster than simply performing the exact same
> query locally on the PII.
>
> Now I'm really confused!
>
> Any ideas?

Yes, I suspect it has to do with context switching. When you run it
remotely the server can do it's job without much interference. When you
run the client on the same machine, it keeps flipping back and forth
between the server and the client.

You might get better performance on Win2k server, as that would increase
the timeslice for each piece of work. Also, try tweaking the
"Performance boost for foreground application" on the performance tab of
the system properties.

//Magnus

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Gagnon 2005-03-23 16:29:54 Re: I'm OWNER of the db but I get `permission denied` when
Previous Message Scott Marlowe 2005-03-23 16:23:28 Re: backend process