MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CPU consumption while MQGET

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Tue Jul 03, 2007 4:51 am    Post subject: CPU consumption while MQGET Reply with quote

Hi All,

I have question for you.

In my application, we use MQ and while doing MQGET, we are specifying 100 millisecond as wait time for each MQGET call. As per my understanding, it makes our program to wait for 100 millisecond each time when it tries to do MQGET. But I heard from my management, that it may not be the case. If data is available in MQ (once it is been committed), our program will not wait for 100 millisecond. Is it true?

Also, I would like to know, when our program is waiting for 100 millisecond, will there be any CPU consumption. Because, we are planning to increase this wait time. If it is going to use the CPU during the wait time, then we need to think about it before we go make change.

Please let me know your opinion.

Thanks.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Jul 03, 2007 6:27 am    Post subject: Reply with quote

it seems that someone in your management read the documentation.

CPU consumption during an MQ WAIT interval is minimal.

you need to think thru why are you waiting? You WAIT because you don't want to be dealing with NO-MSG conditions all the time. What is the MQGET program going to do in the event there is no-msg? Probably, do another MQGET.

100 milliseconds is an insignificant period of time. Why not longer? 5-10 sec, 1 min?
since you have obviously not read the documentation, insure that you use the MQGMO_FAIL_IF_QUIESCING option.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Jul 03, 2007 6:32 am    Post subject: Reply with quote

actually, your program is consuming no time during a WAIT since it has been suspended due to the API CALL to MQS.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Tue Jul 03, 2007 8:01 pm    Post subject: Reply with quote

Thanks a ton dirk.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group