From: david@lang.hm
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-performance@postgresql.org
Cc: Greg Smith <gsmith@gregsmith.com>
Subject: Re: Feature Request --- was: PostgreSQL Performance Tuning
Date: Thu, 3 May 2007 13:16:14 -0700 (PDT)
Message-ID: <Pine.LNX.4.64.0705031314310.26172@asgard.lang.hm> (raw)
In-Reply-To: <200705031221.56226.josh@agliodbs.com>
References: <OFC96167D5.6BB63AC2-ON652572C9.003B5263-652572C9.003E4142@lntinfotech.com>
<200705010923.47951.josh@agliodbs.com>
<Pine.GSO.4.64.0705012154380.24215@westnet.com>
<200705031221.56226.josh@agliodbs.com>
On Thu, 3 May 2007, Josh Berkus wrote:
> Greg,
>
>> I'm not fooled--secretly you and your co-workers laugh at how easy this
>> is on Solaris and are perfectly happy with how difficult it is on Linux,
>> right?
>
> Don't I wish. There's issues with getting CPU info on Solaris, too, if you
> get off of Sun Hardware to generic white boxes. The base issue is that
> there's no standardization on how manufacturers report the names of their
> 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
David Lang
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: david@lang.hm, josh@agliodbs.com, gsmith@gregsmith.com
Subject: Re: Feature Request --- was: PostgreSQL Performance Tuning
In-Reply-To: <Pine.LNX.4.64.0705031314310.26172@asgard.lang.hm>
References: <OFC96167D5.6BB63AC2-ON652572C9.003B5263-652572C9.003E4142@lntinfotech.com> <200705010923.47951.josh@agliodbs.com> <Pine.GSO.4.64.0705012154380.24215@westnet.com> <200705031221.56226.josh@agliodbs.com> <Pine.LNX.4.64.0705031314310.26172@asgard.lang.hm>
* 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