PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 30th, 2008, 12:08 PM
coredump03 coredump03 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 3 coredump03 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 37 sec
Reputation Power: 0
PostgreSQL multi thread CPU

I running PostgreSQL 8.2.4 on a SUN T2000 i have notice that only 7 out of the 32 CPU's are being utilized. Excuse my ignorance but i am a newbie to PostgreSQL, how can tune it to untilize more CPUs?

Reply With Quote
  #2  
Old April 30th, 2008, 12:19 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,711 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 5 h 6 m 18 sec
Reputation Power: 259
That's high end hardware! I'd suggest posting your question to the performance mailing list.
There is a number of people from SUN working with PostgreSQL that will be able to help.
These articles (here and an article on Tweakers.net) and the sticky on top of this forum might be of help.

Reply With Quote
  #3  
Old April 30th, 2008, 01:11 PM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 972 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 49 m 10 sec
Reputation Power: 57
As far as I know PG will spawn a new process for each connection. If only 7 CPUs are used I would assume there are no more than 7 PG processes running.
What happens if you create 32 connections from any client computer and then check the CPU usage?
I don't think a single process can use more than one CPU as I don't think that the processes are multi-threaded.

But I'm sure that you will get adequate information from the PG performance mailing list as pabloj suggested.

Reply With Quote
  #4  
Old April 30th, 2008, 01:18 PM
coredump03 coredump03 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 3 coredump03 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 37 sec
Reputation Power: 0
PostgreSQL multie thread CPU

Even if i have 32 processes PostgreSQL only uses 7 of the 32. That is what i am trying to figure out. How can i change this to allow postgreSQL to use more then just 7.

Reply With Quote
  #5  
Old April 30th, 2008, 03:26 PM
pgFrank's Avatar
pgFrank pgFrank is offline
So help me Codd
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Location: Brazil
Posts: 129 pgFrank User rank is Sergeant (500 - 2000 Reputation Level)pgFrank User rank is Sergeant (500 - 2000 Reputation Level)pgFrank User rank is Sergeant (500 - 2000 Reputation Level)pgFrank User rank is Sergeant (500 - 2000 Reputation Level)pgFrank User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 17 h 45 m 53 sec
Reputation Power: 18
Did you do some serious load & stress tests? Maybe PG doesn't need or doesn't benefit from using more CPU's and therefor doesn't use more CPU's.

Speed not only about the cpu's, I/O is the main bottleneck in performance.
__________________
PostgreSQL-manual

Reply With Quote
  #6  
Old April 30th, 2008, 03:43 PM
coredump03 coredump03 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 3 coredump03 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 37 sec
Reputation Power: 0
PostgreSQL multi thread CPU

when i do a prstat i see several postgresql processing sleeping or waiting while sever CPU's are idling and only when one of the 7 CPUs free up will another process take off.

Quote:
Originally Posted by pgFrank
Did you do some serious load & stress tests? Maybe PG doesn't need or doesn't benefit from using more CPU's and therefor doesn't use more CPU's.

Speed not only about the cpu's, I/O is the main bottleneck in performance.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > PostgreSQL multi thread CPU


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway