I upgraded my main production db from 7.3.4 last night to 7.4.1. I'm
running into an issue where a big query that may take 30-40 seconds to
reply is holding up all other backends from performing their queries.
Once the big query is finished, all the tiny ones fly through. This is
seemingly ne behavior on the box, as with previous versions things would
slow down, but not wait for the cpu/resource hog queries to finish. The
box is Slackware 8.1, on a fairly decent box with plenty of ram, cpu,
and disk speed. I've considered renicing the processes, I was wondering
if anyone had a different suggestion.
TIA,
Gavin
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster 7 1255
On Sat, Mar 06, 2004 at 01:12:57PM -0800, Gavin M. Roy wrote: I upgraded my main production db from 7.3.4 last night to 7.4.1. I'm running into an issue where a big query that may take 30-40 seconds to reply is holding up all other backends from performing their queries.
By "holding up", do you mean that it's causing the other transactions
to block (INSERT WAITING, for instance), or that it's making
everything real slow?
It could be your sort_mem is set too high. Remember that the
new-in-7.4 hash behaviour works with the sort_mem setting, and if
it's set too high and you have enough cases of this, you might
actually cause your box to start swapping.
and disk speed. I've considered renicing the processes, I was wondering
That is unlikely to help, and certainly won't if the queries are
actually blocked.
--
Andrew Sullivan | aj*@crankycanuck.ca
The plural of anecdote is not data.
--Roger Brinner
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
Gavin M. Roy wrote: I upgraded my main production db from 7.3.4 last night to 7.4.1. I'm running into an issue where a big query that may take 30-40 seconds to reply is holding up all other backends from performing their queries. Once the big query is finished, all the tiny ones fly through. This is seemingly ne behavior on the box, as with previous versions things would slow down, but not wait for the cpu/resource hog queries to finish. The box is Slackware 8.1, on a fairly decent box with plenty of ram, cpu, and disk speed. I've considered renicing the processes, I was wondering if anyone had a different suggestion.
Hi Gavin.
Assuming a VACUUM ANALYZE after reload, one possibility is that the
query in question contains >= 11 joins. I forgot to adjust the GEQO
settings during an upgrade and experienced the associated
sluggishness in planning time.
Mike Mascari
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)
It's not WAITING, the larger queries are eating cpu (99%) and the rest
are running so slow it would seem they're waitng for processing time.
My sort mem is fairly high, but this is a dedicated box, and there is no
swapping going on afaik,
Gavin
Andrew Sullivan wrote: On Sat, Mar 06, 2004 at 01:12:57PM -0800, Gavin M. Roy wrote:
I upgraded my main production db from 7.3.4 last night to 7.4.1. I'm running into an issue where a big query that may take 30-40 seconds to reply is holding up all other backends from performing their queries.
By "holding up", do you mean that it's causing the other transactions to block (INSERT WAITING, for instance), or that it's making everything real slow?
It could be your sort_mem is set too high. Remember that the new-in-7.4 hash behaviour works with the sort_mem setting, and if it's set too high and you have enough cases of this, you might actually cause your box to start swapping. and disk speed. I've considered renicing the processes, I was wondering
That is unlikely to help, and certainly won't if the queries are actually blocked.
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
It is using indexs, and not seqscan, and there was an analyze after
reload... I'll play with GEQO, thanks.
Gavin
Mike Mascari wrote: Gavin M. Roy wrote:
I upgraded my main production db from 7.3.4 last night to 7.4.1. I'm running into an issue where a big query that may take 30-40 seconds to reply is holding up all other backends from performing their queries. Once the big query is finished, all the tiny ones fly through. This is seemingly ne behavior on the box, as with previous versions things would slow down, but not wait for the cpu/resource hog queries to finish. The box is Slackware 8.1, on a fairly decent box with plenty of ram, cpu, and disk speed. I've considered renicing the processes, I was wondering if anyone had a different suggestion.
Hi Gavin.
Assuming a VACUUM ANALYZE after reload, one possibility is that the query in question contains >= 11 joins. I forgot to adjust the GEQO settings during an upgrade and experienced the associated sluggishness in planning time.
Mike Mascari
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html
"Gavin M. Roy" <gm*@ehpg.net> writes: It's not WAITING, the larger queries are eating cpu (99%) and the rest are running so slow it would seem they're waitng for processing time.
Could we see EXPLAIN ANALYZE output for the large query? (Also the
usual supporting evidence, ie table schemas for all the tables
involved.)
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html
I'll post it if you want, but the issue isn't with the optimizer, index
usage, or seq scan, the issue seems to be more revolving around the
backend getting so much cpu priority it's not allowing other backends to
process, or something along those lines. For the hardware question
asked, it's an adaptec 7899 Ultra 160 SCSI card w/ accompanying fast
drives...
Again, I'll send the explain, etc if you think it would help answer my
question, but from my perspective, the amount of time the query takes to
execute isnt my issue, but the fact that nothing else can seemingly
execute while its running.
Gavin
Tom Lane wrote: "Gavin M. Roy" <gm*@ehpg.net> writes:
It's not WAITING, the larger queries are eating cpu (99%) and the rest are running so slow it would seem they're waitng for processing time.
Could we see EXPLAIN ANALYZE output for the large query? (Also the usual supporting evidence, ie table schemas for all the tables involved.)
regards, tom lane
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
"Gavin M. Roy" <gm*@ehpg.net> writes: ... the issue seems to be more revolving around the backend getting so much cpu priority it's not allowing other backends to process, or something along those lines.
I can't think of any difference between 7.3 and 7.4 that would create
a problem of that sort where there was none before. For that matter,
since Postgres runs nonprivileged it's hard to see how it could create
a priority problem in any version. I thought the previous suggestion
about added use of hashtables was a pretty good idea. We could
confirm or disprove it by looking at EXPLAIN output.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tappy Tibbons |
last post by:
Have many of you upgraded to VS 2003?
We have been using Visual Studio 2002, and are somewhat satisfied, except
for the following areas:
Speed - VS2002 apps are dead dog slow to start up, and...
|
by: BDR |
last post by:
Questions for anyone with experience on this topic...
Sit: We're running a standalone server with applications/db's written
around 3.23.41. Linux R/H 7.2 with updates. This is an Apache...
|
by: Dave Harney |
last post by:
Hi Newsgroup,
I'm currently using VS Ver 7.0.9466 with an OS of Server 2000 (domain
controller) Ver 5.0.2195 (Build 2195) SP4.
I have MSDN Universal and would like to upgrade my development...
|
by: yasaswi |
last post by:
I have MySQL server 4.0.12-standard installation. How can I upgrade to
4.1.10-standard version?
Of course I can always build a brand new server with a new 4.1.10
install. But other than that final...
|
by: timp |
last post by:
HI
We are currently considering to upgrade to .net 2.0 but we are in the
middle of a release face, and I need to here you experience wither other n-
tier solutions based on ASP.Net and some...
|
by: Mark |
last post by:
I am preparing to upgrade a VS.NET ASP.NET project from version 1 to version
1.1.
1. Is it as simple as opening the project in VS.NET 2003?
2. Are there any issues to be aware of aside from not...
|
by: ZAKHURST |
last post by:
I am looking for a goood technical resoures on how to
resolve issues generated during upgrade. The help tends to
be too general
|
by: Brett Romero |
last post by:
I'm using VS.NET 2003 with Framework 1.1. I want to upgrade to VS.NET
2005 and Framework 2.0. I'd like to hear comments from people that
have moved to the new platform with final releases of...
|
by: Randy Harris |
last post by:
A major application that I develop is currently distributed as an A2K
mde. It uses Oracle for the BE db. The application was upgraded from
A97 several years ago. The users have all been upgraded...
|
by: John |
last post by:
Our technical guy says that our linux server is running PHP 4. I
thought we were running 5 already.
He says he wants to charge us £500 a year to install and support it
because it is a lot of...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |