MTQ Question - Not using more CPU

Post Reply
crichter
Posts: 7
Joined: Mon Jul 07, 2014 7:44 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: Excel 2010

MTQ Question - Not using more CPU

Post by crichter »

Hello all,

I have a question regarding MTQ, where it seems that MTQ is in effect, but CPU usage isn't increasing compared to MTQ=1. Running a TI process uses by definition 1 thread corresponding to 1/16=~6% CPU use:
ATT00003.png
ATT00003.png (7.23 KiB) Viewed 4866 times

When querying a cube using MTQ=-1 I would expect the query to use (16-1)/16 = ~94 % of the CPU, but it never exceeds the 6% above. In TM1Top we can see that MTQ is running on 15 threads however:
ATT00004.png
ATT00004.png (45.71 KiB) Viewed 4866 times

Please advice why the MTQ setting doesn't utilize the full CPU capacity?

(Virtual) Machine Info:
Windows Server 2012 R2 Standard
Processor: Intel Xeon CPU E5-2660 v4 @ 2.00 GHz - 16 Virtual Processors
RAM: 64GB (~50% used)
TM1 Version: PA 11.1.0.30
User avatar
Steve Rowe
Site Admin
Posts: 2410
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: MTQ Question - Not using more CPU

Post by Steve Rowe »

Hi,
Difficult to answer this exactly but unless you are on a very current release then MTQ does not work on views that are the datasource for a TI, you need to pre-calculate the view first (ViewConstruct) and then use it as the source.
Technical Director
www.infocat.co.uk
RSK
Posts: 49
Joined: Mon Oct 08, 2012 12:02 pm
OLAP Product: TM1 10.1.1
Version: TM1 10.1.1
Excel Version: 2010

Re: MTQ Question - Not using more CPU

Post by RSK »

Running TI's are single threaded, the MTQ setting is specifically for opening views.

There was mention of making TI's multithreaded at the IBM update I was at last year, not sure what the update currently is.
crichter
Posts: 7
Joined: Mon Jul 07, 2014 7:44 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: Excel 2010

Re: MTQ Question - Not using more CPU

Post by crichter »

Hi and thank you for your answers!

I think I may have stated my question a bit wrong. I'm asking the more general question "why doesn't MTQ use the full capacity of the processor?" (regardless of TI processing). I.e. when opening a cube view or a Websheet we see that it's splitting the query on 15 threads but it's still only using 6% of the CPU when i would expect it to use (16-1)/16 = ~94% with MTQ set to -1.

Are there any server prerequisites that needs to be in place in order for MTQ to work properly? (I've searched but haven't found any info on this).
tomok
MVP
Posts: 2831
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: MTQ Question - Not using more CPU

Post by tomok »

Why would you expect TM1 to use 94% of CPU capacity. I don't know of many programs that would use all the available capacity on a computer when processing something. Does Excel use 100% of the CPU on your machine when you calculate a workbook? MTQ splits the query among the available cores. TM1 is still going to use only as much computing capacity of each of those cores as it needs to render the result
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
User avatar
Steve Rowe
Site Admin
Posts: 2410
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: MTQ Question - Not using more CPU

Post by Steve Rowe »

A complete guess from your screen shot..
The view and cube you are working with is rule based and the rule dependency with the attribute cube was not built at the time the view was requested. This forces the system single threaded when the dependency is added.

Does anything show in the logs? You can probably turn the logging up as well to see what's going on under the hood. (https://www.ibm.com/support/knowledgece ... 60693.html)

I'm not aware of anything on the hardware / cfg side required to activate MTQ.

My belief (its a long time since I tested) is that heavy rule based views are less able to benefit from MTQ than pure numbers.
Technical Director
www.infocat.co.uk
crichter
Posts: 7
Joined: Mon Jul 07, 2014 7:44 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: Excel 2010

Re: MTQ Question - Not using more CPU

Post by crichter »

Why would you expect TM1 to use 94% of CPU capacity
Ok, I see your point that TM1 shouldn't need to use the full capacity of the MTQ setting for all querys, but in this case the query had been running for up toward a minute and still it's only using the equivalent of one thread of the CPU. I'm trying to figure out if I can make it more efficient.
The view and cube you are working with is rule based and the rule dependency with the attribute cube was not built at the time the view was requested. This forces the system single threaded when the dependency is added.
You are completely right! I've tried enabling more detailed logging and will continue down this path to see if I can find anything of use. I will also attempt to pre-establish cube dependencies to see if this will improve performance.

The reason I asked my original question is that we're experiencing a situation where the response times in our web sheets used in TM1Web is lightning fast (<1s), until suddenly a query can start running for >60s without warning and I always see the MTQ working but CPU use not increasing and thought this might a possible area of improvement. I'd really appreciate any other ideas on what could be done to resolve this.

Thank you again for your responses!
Post Reply