priority on a process

Поиск
Список
Период
Сортировка
От Johnson, Shaunn
Тема priority on a process
Дата
Msg-id 73309C2FDD95D11192E60008C7B1D5BB05FED30C@snt452.corp.bcbsm.com
обсуждение исходный текст
Ответы Re: priority on a process  ("scott.marlowe" <scott.marlowe@ihs.com>)
Re: priority on a process  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: priority on a process  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general

Running PostgreSQL 7.2.1 on RedHat Linux 7.2

I have a process running and it seems that it is not
using very much of the available resources on the server
(so, if I ran 'top' to see what's running and checked the
CPU, memory and system time usage, it appears very
low).

[example]

<top>
PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND

11467 postgres   9   0  3256 3176  2572 D     1.3  0.3  12:00 postmaster

<ps info>
postgres 11467  3.4  0.3  8204 3176 ?        D    07:58  12:02 postgres: charles  testdb [local] UPDATE

<query>

update tm_wm_hedis_num_wei
set
        product = b.product,
        prov_num = b.prov_num
from
        ref_memmonth_spans b
where
        substr(tm_wm_hedis_num_wei.contract,1,9) = b.contract
and
        substr(tm_wm_hedis_num_wei.mbr_num,1,2) = b.mbr_num
and
        tm_wm_hedis_num_wei.date between b.effdt and b.enddt;"

[/example]

Q1: how can I move the priority of the job up so that
it can take advantage of the CPU / memory alloted?

Q2: why will some jobs hog system resouces and others,
like this one, won't do much of anything?

Thanks!

-X

В списке pgsql-general по дате отправления:

Предыдущее
От: Erick Dennis
Дата:
Сообщение: Re: infinite trigger loop
Следующее
От: "Chris Palmer"
Дата:
Сообщение: Re: priority on a process