|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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?
|
|
#2
|
||||
|
||||
|
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.
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
||||
|
||||
|
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 |
|
#6
|
|||
|
|||
|
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:
|
![]() |
| Viewing: Dev Shed Forums > Databases > PostgreSQL Help > PostgreSQL multi thread CPU |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|