Обсуждение: Re: [pgadmin-support] 100% CPU

Поиск
Список
Период
Сортировка

Re: [pgadmin-support] 100% CPU

От
"Jim C. Nasby"
Дата:
moving to -performance

On Fri, Jun 30, 2006 at 08:32:39AM +0100, Peter Newman wrote:
> Good Morning
>
> I am new to postgres and have been asked to look at a server where we
> truncate a table then load data.
>
> The CPU has started to hit 100% usage during this process.
>
> Can you please describe what steps I could take to investigate and solve
> this issue?
>  So far all I have done is run a Vacuum Analyze command using PGAdmin
> III.....which appears to have made little difference.

How many indexes do you have on the table? How exactly are you loading
the data? What hardware is this? What version of the database?
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

Re: [pgadmin-support] 100% CPU

От
Mark Kirkwood
Дата:
Jim C. Nasby wrote:
> moving to -performance
>
> On Fri, Jun 30, 2006 at 08:32:39AM +0100, Peter Newman wrote:
>> Good Morning
>>
>> I am new to postgres and have been asked to look at a server where we
>> truncate a table then load data.
>>
>> The CPU has started to hit 100% usage during this process.
>>

This could be a good sign! - if you are using COPY into a table with no
indexes and your machine has a good IO subsystem, then typically cpu
becomes the limiting factor. However as Jim suggested, more details
would be good, otherwise we are just guessing!

Cheers

Mark