Unix Technical Forum

Re: [pgsql-hackers-win32] Help with tuning this query (with

This is a discussion on Re: [pgsql-hackers-win32] Help with tuning this query (with within the Pgsql Performance forums, part of the PostgreSQL category; --> > -----Original Message----- > From: Greg Stark [mailto:gsstark@mit.edu] > Sent: Monday, March 07, 2005 12:06 PM > To: John ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:13 PM
Dave Held
 
Posts: n/a
Default Re: [pgsql-hackers-win32] Help with tuning this query (with

> -----Original Message-----
> From: Greg Stark [mailto:gsstark@mit.edu]
> Sent: Monday, March 07, 2005 12:06 PM
> To: John A Meinel
> Cc: Tom Lane; Magnus Hagander; Ken Egervari;
> pgsql-performance@postgresql.org; pgsql-hackers-win32@postgresql.org
> Subject: Re: [pgsql-hackers-win32] [PERFORM] Help with tuning
> this query (with
> [...]
> What would be really neato would be to use the rtdsc (sp?) or
> equivalent assembly instruction where available. Most processors
> provide such a thing and it would give much lower overhead and much
> more accurate answers.
>
> The main problem I see with this would be on multi-processor
> machines. (QueryPerformanceCounter does work properly on
> multi-processor machines, right?)


I believe QueryPerformanceCounter() already does this.

__
David B. Held
Software Engineer/Array Services Group
200 14th Ave. East, Sartell, MN 56377
320.534.3637 320.253.7800 800.752.8129

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 12:13 PM
Greg Stark
 
Posts: n/a
Default Re: [pgsql-hackers-win32] Help with tuning this query (with


"Dave Held" <dave.held@arrayservicesgrp.com> writes:

> > What would be really neato would be to use the rtdsc (sp?) or
> > equivalent assembly instruction where available. Most processors
> > provide such a thing and it would give much lower overhead and much
> > more accurate answers.
> >
> > The main problem I see with this would be on multi-processor
> > machines. (QueryPerformanceCounter does work properly on
> > multi-processor machines, right?)

>
> I believe QueryPerformanceCounter() already does this.


This would be a good example of why selectively quoting the part of the
message to which you're responding to is more useful than just blindly echoing
my message back to me.

Already does what?

Use rtdsc? In which case using it would be a mistake. Since rtdsc doesn't work
across processors. And using it via QueryPerformanceCounter would be a
non-portable approach to using rtdsc. Much better to devise a portable
approach that works on any architecture where something equivalent is
available.

Or already works on multi-processor machines? In which case, uh, ok.


--
greg


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:21 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com