ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Performance issues MQI Channel vs Message Channel

Post new topic  Reply to topic Goto page 1, 2  Next
 Performance issues MQI Channel vs Message Channel « View previous topic :: View next topic » 
Author Message
fde
PostPosted: Thu Feb 18, 2010 1:06 am    Post subject: Performance issues MQI Channel vs Message Channel Reply with quote

Acolyte

Joined: 05 Jul 2007
Posts: 65

I encountered very different performance results on those two channel types.
In my test, I put 100 messages with a size of 4 MB on a remote queuemanager.
First, using mqputsc with a MQI channel.
Second, putting on a remote queue on a local quemanager, which sends the messages through a Message channel to the remote queuemanager.
The results do not change if the test messages are already on the transmission queue and the channel gets started to issue the test.

In the first test, all messages reached the remote queuemanager within 180 seconds.
In the second test, all messages reached the remote queuemanager within 280 seconds.

Why could the message channel be slower than the mqi channel?
Are there properties for the channels, which could influence my results?

MQ Version is 6.0
_________________
Global warming is an unintentional side effect of SOA's hotness.
-- http://soafacts.com/
a business integration methodology
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Feb 18, 2010 1:54 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Because the sender channel sends a batch of messages between turnaround points.

Try using a WMQ v7 client channel (presumably need a WMQ v7 queue manager) you should see an improvement (not sure if you have to specify any option to make the client channel using batching).
Back to top
View user's profile Send private message
fde
PostPosted: Thu Feb 18, 2010 3:44 am    Post subject: Reply with quote

Acolyte

Joined: 05 Jul 2007
Posts: 65

Thank you for the input.

The sender channel has a batchsize of 50 and a batch intervall of 0.
As long as the connection dont break frequently during 50 messages, this value seems ok.

With those values, could the sender channel perform slower considering my test?
_________________
Global warming is an unintentional side effect of SOA's hotness.
-- http://soafacts.com/
a business integration methodology
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Feb 18, 2010 4:28 am    Post subject: Re: Performance issues MQI Channel vs Message Channel Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

fde wrote:
In the first test, all messages reached the remote queuemanager within 180 seconds.
In the second test, all messages reached the remote queuemanager within 280 seconds.

In your second test you have 100x4Mb=400Mb more data written to disk, and 100x4Mb=400Mb more data read from disk, on the sending side. I am a little surprised this gives 100 seconds more elapsed time, though.

Are your messages persistent? Are they being put inside syncpoints? Is your disk holding the xmitq fast?
Back to top
View user's profile Send private message
fde
PostPosted: Thu Feb 18, 2010 4:56 am    Post subject: Reply with quote

Acolyte

Joined: 05 Jul 2007
Posts: 65

Good point with the creation of the messages, since mqputsc performs this task very fast.

The messages are persistent and the queuemanager should have sufficient fast disk access.

I attached the channeldefinitions of the transmission channels:
Code:


   CHANNEL(DUX151D03/HMM05)                CHLTYPE(RCVR)
   ALTDATE(2010-01-13)                     ALTTIME(08.32.01)
   BATCHSZ(50)                             COMPHDR(NONE)
   COMPMSG(NONE)
   DESCR(SDR chl. security with coding AES)
   HBINT(300)                              KAINT(AUTO)
   MAXMSGL(4194304)                        MCAUSER( )
   MONCHL(QMGR)                            MRDATA( )
   MREXIT( )                               MRRTY(10)
   MRTMR(1000)                             MSGDATA( )
   MSGEXIT( )                              NPMSPEED(FAST)
   PUTAUT(DEF)                             RCVDATA( )
   RCVEXIT( )                              SCYDATA( )
   SCYEXIT( )                              SENDDATA( )
   SENDEXIT( )                             SEQWRAP(999999999)
   SSLCAUTH(REQUIRED)
   SSLCIPH(TLS_RSA_WITH_AES_128_CBC_SHA)
   SSLPEER(CN=dux151d03)
   STATCHL(QMGR)                           TRPTYPE(TCP)


   CHANNEL(HMM05/DUX151D03)                CHLTYPE(SDR)
   ALTDATE(2010-01-18)                     ALTTIME(15.22.17)
   BATCHHB(0)                              BATCHINT(0)
   BATCHSZ(50)                             COMPHDR(NONE)
   COMPMSG(NONE)
   CONNAME(dusu0151.xyz.net(13103))
   CONVERT(NO)
   DESCR(SDR chl. security with coding AES)
   DISCINT(6000)                           HBINT(300)
   KAINT(AUTO)                             LOCLADDR( )
   LONGRTY(999999999)                      LONGTMR(1200)
   MAXMSGL(4194304)                        MCANAME( )
   MCATYPE(PROCESS)                        MCAUSER( )
   MODENAME( )                             MONCHL(QMGR)
   MSGDATA( )                              MSGEXIT( )
   NPMSPEED(FAST)                          PASSWORD( )
   RCVDATA( )                              RCVEXIT( )
   SCYDATA( )                              SCYEXIT( )
   SENDDATA( )                             SENDEXIT( )
   SEQWRAP(999999999)                      SHORTRTY(10)
   SHORTTMR(60)
   SSLCIPH(TLS_RSA_WITH_AES_128_CBC_SHA)
   SSLPEER(CN=dux151d03)
   STATCHL(QMGR)                           TPNAME( )
   TRPTYPE(TCP)                            USERID( )
   XMITQ(DUX151D03_XMITQ)

_________________
Global warming is an unintentional side effect of SOA's hotness.
-- http://soafacts.com/
a business integration methodology
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Feb 18, 2010 5:49 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

So as far as you have told us, there is still the possibility that persistent messages are being put outside syncpoints (this is an extremely important point to establish with your application people by the way), and there is the certainty that you have at least 800 Mb more disk I/O in the slower case. I am not sure but it could be 1200 Mb, because there will be write/read on the xmitq q file, and write to log files.

Message channels and MQI channels are very different in purpose. Please can you give some details about why you are measuring relative performance of the two?


Last edited by mvic on Thu Feb 18, 2010 7:11 am; edited 2 times in total
Back to top
View user's profile Send private message
fde
PostPosted: Thu Feb 18, 2010 7:00 am    Post subject: Reply with quote

Acolyte

Joined: 05 Jul 2007
Posts: 65

The reason I compare those two channels is, that I had general performance issues between the two queuemanagers, despite a 4GBit connection between them.
Some basic tests using mqputs from ih03 performed not as good as expected. The tests taken afterwards showed very different behavior for those two channeltypes.
While searching for performance improvements, I tried to understand the different behavior of the channels.

I understand your IO argument and I think too, that this shouldnt have such a great impact, if IO is working in normal terms.

I am currently not able to provide the synchpoint configuration for the queuemanager but I try to post it tommorow.
_________________
Global warming is an unintentional side effect of SOA's hotness.
-- http://soafacts.com/
a business integration methodology
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Feb 18, 2010 7:04 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
In my test, I put 100 messages with a size of 4 MB on a remote queuemanager.

First, using mqputsc with a MQI channel: 180 seconds.

Second, putting on a remote queue on a local quemanager, which sends the messages through a Message channel to the remote queuemanager: 280 seconds.

A bit surprising; but there are likely other issues to consider. One test does not a benchmark make.

Same network used for both tests?

Qmgrs configured similarly (same hardware, same software, workloads)?

Do the same tests with messages of smaller and larger sizes. Do the same tests with more and less messages. See if you get different or similar results.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Feb 18, 2010 7:17 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

fde wrote:
I understand your IO argument and I think too, that this shouldnt have such a great impact, if IO is working in normal terms.

Let's quantify it. How long does it take on your system to write 800 Mb and read 400 Mb from disk? My guess is, over 20 seconds if the disk is not already loaded. If puts are outside syncpoint then the effect could be magnified.

Quote:
I am currently not able to provide the synchpoint configuration for the queuemanager but I try to post it tommorow.

The information will need to be found from either tracing your putter application while it is running, or inspecting the putter application source code. It is not part of your qmgr's configuration.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 18, 2010 9:57 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And nobody here has yet spoken about residual load on the queue manager and how this figures in the log file # and size considerations.

It could possibly be that the log files are just a little bit too small for the coverage he needs? This could potentially have a serious impact on performance...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
fde
PostPosted: Fri Feb 19, 2010 7:52 am    Post subject: Reply with quote

Acolyte

Joined: 05 Jul 2007
Posts: 65

To seperate network issues, I did some tests in the lan of the target queuemanager.
So instead of a remote queuemanager sending messages through the WAN. A queuemanager in the local lan, sends messages to the queuemanager.

Issuing 100 x 4MB, the messages were put onto the first queuemanager within 10seconds. All messages arrived at the target queuemanager within roghly 13 seconds (3s issuing selects on queuedepth until all messages arrived).

This seem to be sufficient fast as one could expected. Since the target queuemanger is the same from the first test, I assume the network connection to have a decent impact on the performance.

The definition of the channels between the two queuemanagers is posted above. Could there be some misconfiguration or missing customiziation which leads to slow transfers?

Pinging the queuemanger machine through the wan using maximum sized ping packets stated 25 ms latency.
_________________
Global warming is an unintentional side effect of SOA's hotness.
-- http://soafacts.com/
a business integration methodology
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Feb 19, 2010 8:21 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Did you rerun your original tests? You might have had a transient problem.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
fde
PostPosted: Mon Feb 22, 2010 1:01 am    Post subject: Reply with quote

Acolyte

Joined: 05 Jul 2007
Posts: 65

I rerun the test through the wan. It is as slow as in the first try. Roughly 180 seconds for 100x 4 MB using mqputs from a windows client.
_________________
Global warming is an unintentional side effect of SOA's hotness.
-- http://soafacts.com/
a business integration methodology
Back to top
View user's profile Send private message
mvic
PostPosted: Mon Feb 22, 2010 3:36 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

No surprises about the network then:
- run over a slow network, takes a long time to transfer messages
- run over a fast network, takes a short time to transfer messages

Do you still have the big difference between client channel and message channel? Did you find the syncpoint options in use by the apps?
Back to top
View user's profile Send private message
fde
PostPosted: Mon Feb 22, 2010 4:28 am    Post subject: Reply with quote

Acolyte

Joined: 05 Jul 2007
Posts: 65

About the network. It should be very fast. The fastest wan connection avaiable as far as i know with a bandwith of 4 GBit.

Concerning the synchpoints. Since I am using mqputs from ih03 as my client. I dont exactly know about the implementation of commiting. I guess that it is optimized for performance rather interoperability and uses one commit statement at the end of the operation.
_________________
Global warming is an unintentional side effect of SOA's hotness.
-- http://soafacts.com/
a business integration methodology
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » Performance issues MQI Channel vs Message Channel
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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.