From: | Stefan Keller <sfkeller(at)gmail(dot)com> |
---|---|
To: | Jesper Krogh <jesper(at)krogh(dot)cc> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Summaries on SSD usage? |
Date: | 2011-09-03 08:56:14 |
Message-ID: | CAFcOn28FqOXKzgBmt5cmCQ=UA4+2Zwqs800Dnw1k9xvgn0J2tQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
2011/9/3 Jesper Krogh <jesper(at)krogh(dot)cc>:
> On 2011-09-03 00:04, Stefan Keller wrote:
> It's not that hard to figure out.. take some of your "typical" queries.
> say the one above.. Change the search-term to something "you'd expect
> the user to enter in a minute, but hasn't been run". (could be "museum"
> instead
> of "zoo".. then you run it with \timing and twice.. if the two queries are
> "close" to each other in timing, then you only hit memory anyway and
> neither SSD, NVRAM or more RAM will buy you anything. Faster memory
> and faster CPU-cores will.. if you have a significant speedup to the
> second run, then more RAM, NVRAM, SSD is a good fix.
>
> Typically I have slow-query-logging turned on, permanently set to around
> 250ms.
> If I find queries in the log that "i didnt expect" to take above 250ms then
> I'd start to investigate if query-plans are correct .. and so on..
>
> The above numbers are "raw-data" size and now how PG uses them.. or?
> And you havent told anything about the size of your current system.
Its definitely the case that the second query run is much faster
(first ones go up to 30 seconds and more...).
PG uses the raw data for Switzerlad like this: 10 GB total disk space
based on 2 GB raw XML input. Table osm_point is one of the four big
tables and uses 984 MB for table and 1321 MB for indexes (where hstore
is the biggest from id, name and geometry).
Stefan
From | Date | Subject | |
---|---|---|---|
Next Message | Venkat Balaji | 2011-09-04 08:09:43 | Re: Re: How to track number of connections and hosts to Postgres cluster |
Previous Message | Gerhard Wohlgenannt | 2011-09-03 07:26:44 | Sudden drop in DBb performance |