Re: Feature Request --- was: PostgreSQL Performance Tuning

From: Carlos Moreno <moreno_pg(at)mochima(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Feature Request --- was: PostgreSQL Performance Tuning
Date: 2007-05-03 21:06:30
Message-ID: 463A4ED6.2040907@mochima.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance


>> CPUs, 32/64bit, or clock speeds. So any attempt to determine "how
>> fast"
>> a CPU is, even on a 1-5 scale, requires matching against a database of
>> regexes which would have to be kept updated.
>>
>> And let's not even get started on Windows.
>
> I think the only sane way to try and find the cpu speed is to just do
> a busy loop of some sort (ideally something that somewhat resembles
> the main code) and see how long it takes. you may have to do this a
> few times until you get a loop that takes long enough (a few seconds)
> on a fast processor

I was going to suggest just that (but then was afraid that again I may have
been just being naive) --- I can't remember the exact name, but I remember
using (on some Linux flavor) an API call that fills a struct with data
on the
resource usage for the process, including CPU time; I assume measured
with precision (that is, immune to issues of other applications running
simultaneously, or other random events causing the measurement to be
polluted by random noise).

As for 32/64 bit --- doesn't PG already know that information? I mean,
./configure does gather that information --- does it not?

Carlos
--

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message david 2007-05-03 21:23:26 Re: Feature Request --- was: PostgreSQL Performance Tuning
Previous Message Dawid Kuroczko 2007-05-03 21:03:14 Re: varchar as primary key

Browse pgsql-performance by date

  From Date Subject
Next Message david 2007-05-03 21:23:26 Re: Feature Request --- was: PostgreSQL Performance Tuning
Previous Message david 2007-05-03 20:16:14 Re: Feature Request --- was: PostgreSQL Performance Tuning