View previous topic :: View next topic |
Author |
Message |
Shankarganesh_gopal Beginner
Joined: 24 May 2005 Posts: 36 Topics: 20 Location: chennai
|
Posted: Tue Jul 03, 2007 4:51 am Post subject: CPU consumption while MQGET |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue Jul 03, 2007 6:27 am Post subject: |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue Jul 03, 2007 6:32 am Post subject: |
|
|
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 |
|
 |
Shankarganesh_gopal Beginner
Joined: 24 May 2005 Posts: 36 Topics: 20 Location: chennai
|
Posted: Tue Jul 03, 2007 8:01 pm Post subject: |
|
|
Thanks a ton dirk. |
|
Back to top |
|
 |
|
|