If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Thread priority

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-18-03, 08:56
adityanlal adityanlal is offline
Registered User
 
Join Date: Jul 2003
Location: Calcutta, India
Posts: 42
Thread priority

Hi!

Can I change the priority of an Informix running thread? If yes, how?

Thanks
adityanlal
Reply With Quote
  #2 (permalink)  
Old 07-23-03, 05:21
dananio dananio is offline
Registered User
 
Join Date: Mar 2002
Posts: 112
re

There are 2 parameters to set
NOAGE=1
disable OS aging for oninit process to low priority setting
USEOSTIME=0
use informix internal time
Reply With Quote
  #3 (permalink)  
Old 07-23-03, 10:08
adityanlal adityanlal is offline
Registered User
 
Join Date: Jul 2003
Location: Calcutta, India
Posts: 42
Re: re

Hi!,

I think I was not very clear at my question. Suppose there are 4 threads (T1, T2, T3 & T4) running for a complex query and then someone asks me that "I would like to do a bact insert which is very crucial and needs to be done immediately". So as a DBA I have to run this batch insert and suppose for this informix initiates 1 thread (T5) for this batch insertion. supposing that this complex query is not crucial and can wait, so I would like to bring these 4 threads (T1-T4) in sleep mode so that the only thread running is T5 with full CPU resource and the moment T5 gets over, T1-T4 should start. Need your help.

Thanks
adityanlal

Quote:
Originally posted by dananio
There are 2 parameters to set
NOAGE=1
disable OS aging for oninit process to low priority setting
USEOSTIME=0
use informix internal time
Reply With Quote
  #4 (permalink)  
Old 07-25-03, 03:30
eherber eherber is offline
Registered User
 
Join Date: Aug 2002
Location: Bonn/Germany
Posts: 152
No, this is not possible.

You might influence the 'priority' or better the 'resource consumption' of individidual queries with the
'set pdq priority' statement.

That's all.
__________________

Best regards

Eric
--
IT-Consulting Herber
WWW: http://www.herber-consulting.de
Email: eric@herber-consulting.de

***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************
Reply With Quote
  #5 (permalink)  
Old 07-30-03, 07:26
dananio dananio is offline
Registered User
 
Join Date: Mar 2002
Posts: 112
Re

I think so , impossible .
You can use 'onmode -uy' and 'onmode -m' (goto single and get back to multiuser)
and run your query loney so your thread is highest priority
Reply With Quote
  #6 (permalink)  
Old 07-30-03, 08:56
adityanlal adityanlal is offline
Registered User
 
Join Date: Jul 2003
Location: Calcutta, India
Posts: 42
Re: Re

Thanks a lot for your help.
Quote:
Originally posted by dananio
I think so , impossible .
You can use 'onmode -uy' and 'onmode -m' (goto single and get back to multiuser)
and run your query loney so your thread is highest priority
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On