Feeder performance issues

Post Reply
kudzis
Posts: 42
Joined: Wed Nov 10, 2010 12:35 pm
OLAP Product: Cognos 8 BI
Version: 9.5.1
Excel Version: Excel 2007

Feeder performance issues

Post by kudzis »

Hello,

I've wrote 2 ways to calculate a measure and feed it. Way #1 eats all available RAM and crashes, way #2 works flawlessly (minor increase in RAM). Any idea why #2 works and what's causing it?

WAY #1:

Source (cube 'atsargos'):

Code: Select all

FEEDERS;
['Mato vnt','Poreikis pirkti'] => DB('salygos', !Inventory, 'Viso tiekėjų', !Laikotarpiai, !Sandėlis-tranzitas,
'VISO kontr. ir pap. pirkimų', !Planas-faktas, 'Pirkimo poreikis');
Target (cube 'salygos'):

Code: Select all

SKIPCHECK;

['Pirkimo poreikis'] = n:
if (
	attrn('Inventory', !Inventory, 'TMDeliveryDays')=0,
		DB('atsargos', !Inventory, !Laikotarpiai,
			'Mato vnt', !Sandėlis-tranzitas, !Planas-faktas, 'Poreikis pirkti'),0);

WAY #2:

Source (cube 'atsargos'):

Code: Select all

FEEDERS;
['Mato vnt','Poreikis pirkti'] => DB('salygos', !Inventory, 'Viso tiekėjų', !Laikotarpiai, !Sandėlis-tranzitas,
'VISO kontr. ir pap. pirkimų', !Planas-faktas, 'TMP Pirkimo poreikis');
Target (cube 'salygos'):

Code: Select all

SKIPCHECK;

['TMP Pirkimo poreikis'] =n: DB('atsargos', !Inventory, !Laikotarpiai, 'Mato vnt', !Sandėlis-tranzitas, !Planas-faktas, 'Poreikis pirkti');

['Pirkimo poreikis'] = n:
if (
	attrn('Inventory', !Inventory, 'TMDeliveryDays')=0,
		['TMP Pirkimo poreikis'],0);

FEEDERS;
['TMP Pirkimo poreikis'] => ['Pirkimo poreikis'];
User avatar
jim wood
Site Admin
Posts: 3961
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Feeder performance issues

Post by jim wood »

The rules point to different measures. I think you need to expand on the reason for this.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
User avatar
mattgoff
MVP
Posts: 518
Joined: Fri May 16, 2008 1:37 pm
OLAP Product: TM1
Version: 10.2.2.6
Excel Version: O365
Location: Florida, USA

Re: Feeder performance issues

Post by mattgoff »

In between your tests did you restart the server?
Please read and follow the Request for Assistance Guidelines. It helps us answer your question and saves everyone a lot of time.
User avatar
Steve Rowe
Site Admin
Posts: 2464
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: Feeder performance issues

Post by Steve Rowe »

You've not said what you are doing when the RAM is spiking.

If it is when you save the rule sheet for astargos then it is the feeder that is the problem.
If it is when you browse the cube salygos then it would either be the rule or the an overfeeding issue.

Breaking the rule logic into two steps should not make an difference to the calculation, in fact it should make 2 worse than 1.

My best guess (assuming not a bug) is that we are not comparing like with like. So in 1 the maybe any consolidations referred to in the feeder statement are many times larger than in 2.

I'm guessing you are on 32 bit TM1 and so have a hard RAM limit, in which case you will need to be quite careful with your feeders especially if you have high data volumes too.

When you say crash do you mean actually crash or "I got bored of waiting and killed it"?

Cheers,
Technical Director
www.infocat.co.uk
kudzis
Posts: 42
Joined: Wed Nov 10, 2010 12:35 pm
OLAP Product: Cognos 8 BI
Version: 9.5.1
Excel Version: Excel 2007

Re: Feeder performance issues

Post by kudzis »

jim wood wrote:The rules point to different measures. I think you need to expand on the reason for this.
'TMP Pirkimo poreikis' was created as an intermediate measure just to hold values of DB('atsargos', !Inventory, !Laikotarpiai, 'Mato vnt', !Sandėlis-tranzitas, !Planas-faktas, 'Poreikis pirkti'); and participate in calculating ['Pirkimo poreikis']. Business logic is not changed.
mattgoff wrote:In between your tests did you restart the server?
Yes. Before each test I was restarting the server. Edit: I am not using persistent feeders.

Steve Rowe wrote:You've not said what you are doing when the RAM is spiking.

If it is when you save the rule sheet for astargos then it is the feeder that is the problem.
If it is when you browse the cube salygos then it would either be the rule or the an overfeeding issue.

Breaking the rule logic into two steps should not make an difference to the calculation, in fact it should make 2 worse than 1.

My best guess (assuming not a bug) is that we are not comparing like with like. So in 1 the maybe any consolidations referred to in the feeder statement are many times larger than in 2.

I'm guessing you are on 32 bit TM1 and so have a hard RAM limit, in which case you will need to be quite careful with your feeders especially if you have high data volumes too.

When you say crash do you mean actually crash or "I got bored of waiting and killed it"?

Cheers,
When I write a feeder and press "save rule", CPU load becomes 100% and RAM usage starts climbing until it windows reaches ~99% RAM usage (it takes 2-3 mins), then I get an error in my rule editor similar to "error saving rule: out of memory". Memory usage stays at 99% until I restart TM1 service.
I'm using TM1 64bit on Windows Server 2008 R2 Standard.
When I say "crash" I mean "RAM is used up and rule is not saved, but server functions a bit - I can still open small cubes, edit rules of other cubes and such, if I try to open larger cube I get "out of memory" error".
User avatar
Steve Rowe
Site Admin
Posts: 2464
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: Feeder performance issues

Post by Steve Rowe »

All seems a bit odd for a 64 bit box...
How much RAM have you got free before you save the rule? 2-3 minutes is very quick for RAM to run out even if something is wrong.
Can't really offer much more with the information to hand.
Technical Director
www.infocat.co.uk
kudzis
Posts: 42
Joined: Wed Nov 10, 2010 12:35 pm
OLAP Product: Cognos 8 BI
Version: 9.5.1
Excel Version: Excel 2007

Re: Feeder performance issues

Post by kudzis »

Steve Rowe wrote:All seems a bit odd for a 64 bit box...
How much RAM have you got free before you save the rule? 2-3 minutes is very quick for RAM to run out even if something is wrong.
Can't really offer much more with the information to hand.
I have ~8-9GB RAM free before saving a rule.
User avatar
Steve Rowe
Site Admin
Posts: 2464
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: Feeder performance issues

Post by Steve Rowe »

In that case we are probably missing a piece of information to explain this, I don't belive it would be possible for TM1 to chew through 8-9GB of RAM in 2-3 minutes following a rule save. It's fast but not that fast.

(You're not running 32 bit TM1 on 64 bit windows are you, you'll then have a much lower RAM limit and the amount you have spare on your box won't be relevant).
Cheers,
Technical Director
www.infocat.co.uk
Post Reply