Showing posts with label cube. Show all posts
Showing posts with label cube. Show all posts

Wednesday, March 28, 2012

Poor performance processing data

I have a problem with performance during cube processing (using ProcessData).

When I start processing a number of partitions (in parallel), the network utilisation is initially 100%. Over the next 30 minutes the network utilisation drops to 10 % on the AS box. I have checked the database server and it is a similar story there. The processing eventually completes after a number of hours. Way over what our existing AS 2000 setup would take.

In order to checkout my setup I wrote a .Net 1.1 utility which runs the partition queries in parallel and writes the data to file. It is able to max out the Network utilisation for the duration of the queries on both the AS and SQL boxes.(5 in parallel, totalling 250 million rows came accross in 30 mins). This would seem to prove that the network and SAN are not the issue.

Does anyone any ideas why AS is slowing down as the partition processing progresses.

My setup is as follows:

The cube is on a 4 way 64-bit AS2005 Enterprise SP1 (v 9.0.2047.0) server reading data from a database on 4 way 32-bit SQL 2000 (v8.00.818) SP3 Enterprise

The database contains 27 tables containing fact data. Approx 50 million rows in each. Total 1.25 billion rows. 600GB)

Both machines are SAN attached and the SAN has been check by the supplier and exceeds the service level.

Any help would be appreciated.

Are you using incremental update or full processing of the cube? Incremental update can result in higher utliztion of disks.

Regards

/Thomas

|||

Hi Rob,

You might get some mileage out of the following paper on performance, particularly with regard to Max threads (esp. processing). Also you might want to review your Attribute Relationship and swap to Rigid if you can from the default Flexible. I gained considerable processing perfromance using the Max Threads and Rigid Attribute Relationships.

Paper is at : http://download.microsoft.com/download/4/f/8/4f8f2dc9-a9a7-4b68-98cb-163482c95e0b/SSASProperties.doc#_Toc136412586

Good Luck, Dave.

|||

Thanks for you reply Thomas. No it was full processing using ProcessData.

Besides which, I have now resolved this problem. It was caused by some named calculations that were defined in one of the dimension queries in the DSV. I had defined a few simple concatenations of Product ID and Product Description to use as the member name at each level of the hierarchy. Although I wasn't able to check the SQL I suspect it was doing some kind of Cartesian operation between the view that the dimension was based on and the same view that the named calc's were based on. When I moved the named calculations back to the DB view the problem was completely resolved. Processing now takes 7.5 hours as opposed to 40. An acquaintance has written about a similar issue in his blog: http://blogs.conchango.com/christianwade/archive/2006/07/12/4219.aspx

My advice is be careful with named Calculations in the DSV.

|||

Thanks Dave, I found that paper the other day. I posted the solution just as you reply came up, but I will check out the attribute relationships as you say. Also, I'm not convinced that I understand the cardinality option properly.

With regard to the Max Threads what have you set yours to and what kit have you got?

|||Retracting my comments earlier about the problem in the DSV. I had confused the issue by unbinding a dimension from the cube and the complexity had reduced and therefore speed increased. I now believe my problem to be related to write speed on SAN and not to do with the DSV.

Poor performance processing data

I have a problem with performance during cube processing (using ProcessData).

When I start processing a number of partitions (in parallel), the network utilisation is initially 100%. Over the next 30 minutes the network utilisation drops to 10 % on the AS box. I have checked the database server and it is a similar story there. The processing eventually completes after a number of hours. Way over what our existing AS 2000 setup would take.

In order to checkout my setup I wrote a .Net 1.1 utility which runs the partition queries in parallel and writes the data to file. It is able to max out the Network utilisation for the duration of the queries on both the AS and SQL boxes.(5 in parallel, totalling 250 million rows came accross in 30 mins). This would seem to prove that the network and SAN are not the issue.

Does anyone any ideas why AS is slowing down as the partition processing progresses.

My setup is as follows:

The cube is on a 4 way 64-bit AS2005 Enterprise SP1 (v 9.0.2047.0) server reading data from a database on 4 way 32-bit SQL 2000 (v8.00.818) SP3 Enterprise

The database contains 27 tables containing fact data. Approx 50 million rows in each. Total 1.25 billion rows. 600GB)

Both machines are SAN attached and the SAN has been check by the supplier and exceeds the service level.

Any help would be appreciated.

Are you using incremental update or full processing of the cube? Incremental update can result in higher utliztion of disks.

Regards

/Thomas

|||

Hi Rob,

You might get some mileage out of the following paper on performance, particularly with regard to Max threads (esp. processing). Also you might want to review your Attribute Relationship and swap to Rigid if you can from the default Flexible. I gained considerable processing perfromance using the Max Threads and Rigid Attribute Relationships.

Paper is at : http://download.microsoft.com/download/4/f/8/4f8f2dc9-a9a7-4b68-98cb-163482c95e0b/SSASProperties.doc#_Toc136412586

Good Luck, Dave.

|||

Thanks for you reply Thomas. No it was full processing using ProcessData.

Besides which, I have now resolved this problem. It was caused by some named calculations that were defined in one of the dimension queries in the DSV. I had defined a few simple concatenations of Product ID and Product Description to use as the member name at each level of the hierarchy. Although I wasn't able to check the SQL I suspect it was doing some kind of Cartesian operation between the view that the dimension was based on and the same view that the named calc's were based on. When I moved the named calculations back to the DB view the problem was completely resolved. Processing now takes 7.5 hours as opposed to 40. An acquaintance has written about a similar issue in his blog: http://blogs.conchango.com/christianwade/archive/2006/07/12/4219.aspx

My advice is be careful with named Calculations in the DSV.

|||

Thanks Dave, I found that paper the other day. I posted the solution just as you reply came up, but I will check out the attribute relationships as you say. Also, I'm not convinced that I understand the cardinality option properly.

With regard to the Max Threads what have you set yours to and what kit have you got?

|||Retracting my comments earlier about the problem in the DSV. I had confused the issue by unbinding a dimension from the cube and the complexity had reduced and therefore speed increased. I now believe my problem to be related to write speed on SAN and not to do with the DSV.

Monday, March 12, 2012

pls help - doubt regarding OLAP cubes.

what is it that decides that a particular OLAP cube is small or large? Is it the number of tuples or the number of dimensions that are present in the cube?

Thank you.

Small or large - are subjective characteristics, what is large for some people is small for others. There are also multiple dimensions by which to judge the size:

1. Number of members in the key attribute of the dimension. I would say that below 1 million is small, from 1 to 10 million is medium and above 10 million is large

2. Total number of attributes in all dimensions. Below 1000 is small, above is large

3. Number of records in the fact table at measure group granularity (i.e. number of records which will remain in the cube, not the number of rows in the fact table which will get reduced due to aggregation/deduplication). Or from another angle, number of rows loaded into the cube every day. I would say that below 10 million rows a day is small, between 10 million to 100 million rows a day is medium, and above 100 million rows a day is large.

There are, of course interesting combinations of the above.

|||thanks a lot !!!|||

Thanks Mosha!!

Could you please shed some light on the "interesting combinations of the above" if you get some time or is it out of scope of this forum?
We are working on at our company on a shared farm service model where upon multiple ssas databases are hosted on a single server.

If a certain app group fits in the large/medium criteria then they have to budget for their own hardware and storage.
Any additional information will be very much appreciated.

Rgds

Hari

Friday, March 9, 2012

Please, HELP! OLAP Cube Locked

When I try to process a cube on olap I receive this error message:

Could not lock object (user xxx on computer yyy has locked 'xxxxxxxx'

I already tried to find an option to unlock the cube and I do a restart of SQL service.
I'm worryed about my job !!!! :eek:
Please, HELP ME !!!! :(Is this only when someone else are editing the cube?

Think you can programmatically determinde if a cube is locked (using dso)

LOL...Relax..you can't loose your job cuz of a restriction ms placed.|||Thx Niconel but I' solved today (on morning Italy time) this issue.
Simply, all the OLAP DB was locked.
This is a problem related to the memory management of my server.
When I try to process a larger DB I obtain that error and the solution is: restart OLAP service from the Cluster Admin Consolle.
When I writed that I' m worried about my job I not refer to the data.
I' was worried about my professional skill level !!! :D
Thank you for your reply!
Byez,

Juppa.

Monday, February 20, 2012

Please help! Report Builder model from UDM?

This is my second posting. Please help!
Hello,
I have created a cube in Analysis Services and made many business logic
changes in the Data Source View and dimensions. Can I use this to build
a model for the Report builder? I believe they call this UDM? People will
create ad-hoc reports in report builder.
I know I can use the UDM to create reports in VS.
Thank youto generate a report builder model based on an Analysis Database.
Simply go on the reports web site (http://localhost/reports)
create a new connection to your AS server
click "generate model"
and you have a model based on your OLAP cubes.
Also,
you can create your own model based on the DSV, this model will execute SQL
statements against your source database instead of using the AS server and
MDX statements.
but you have some manual work to do to insure that the model works fine for
your needs. in another hand you have a better control of what you'll display
to the end users (by playing with detailed property)
"ystueker" <ystueker@.discussions.microsoft.com> wrote in message
news:7E96DAE4-F823-4160-A7C1-C8D45772EE6B@.microsoft.com...
> This is my second posting. Please help!
> Hello,
> I have created a cube in Analysis Services and made many business logic
> changes in the Data Source View and dimensions. Can I use this to build
> a model for the Report builder? I believe they call this UDM? People will
> create ad-hoc reports in report builder.
> I know I can use the UDM to create reports in VS.
> Thank you
>|||Thank you. I have tried that but my option for generate model is grayed out'
"Jéjé" wrote:
> to generate a report builder model based on an Analysis Database.
> Simply go on the reports web site (http://localhost/reports)
> create a new connection to your AS server
> click "generate model"
> and you have a model based on your OLAP cubes.
> Also,
> you can create your own model based on the DSV, this model will execute SQL
> statements against your source database instead of using the AS server and
> MDX statements.
> but you have some manual work to do to insure that the model works fine for
> your needs. in another hand you have a better control of what you'll display
> to the end users (by playing with detailed property)
> "ystueker" <ystueker@.discussions.microsoft.com> wrote in message
> news:7E96DAE4-F823-4160-A7C1-C8D45772EE6B@.microsoft.com...
> > This is my second posting. Please help!
> >
> > Hello,
> > I have created a cube in Analysis Services and made many business logic
> > changes in the Data Source View and dimensions. Can I use this to build
> > a model for the Report builder? I believe they call this UDM? People will
> > create ad-hoc reports in report builder.
> >
> > I know I can use the UDM to create reports in VS.
> >
> > Thank you
> >
>
>|||mmm...
you have the same option using the management interface (windows management
application, not web based)
what is your connection string to access your AS server? the one is grayed.
"ystueker" <ystueker@.discussions.microsoft.com> wrote in message
news:4FB35270-504A-41A3-91D0-469A4014018C@.microsoft.com...
> Thank you. I have tried that but my option for generate model is grayed
> out'
> "Jéjé" wrote:
>> to generate a report builder model based on an Analysis Database.
>> Simply go on the reports web site (http://localhost/reports)
>> create a new connection to your AS server
>> click "generate model"
>> and you have a model based on your OLAP cubes.
>> Also,
>> you can create your own model based on the DSV, this model will execute
>> SQL
>> statements against your source database instead of using the AS server
>> and
>> MDX statements.
>> but you have some manual work to do to insure that the model works fine
>> for
>> your needs. in another hand you have a better control of what you'll
>> display
>> to the end users (by playing with detailed property)
>> "ystueker" <ystueker@.discussions.microsoft.com> wrote in message
>> news:7E96DAE4-F823-4160-A7C1-C8D45772EE6B@.microsoft.com...
>> > This is my second posting. Please help!
>> >
>> > Hello,
>> > I have created a cube in Analysis Services and made many business logic
>> > changes in the Data Source View and dimensions. Can I use this to build
>> > a model for the Report builder? I believe they call this UDM? People
>> > will
>> > create ad-hoc reports in report builder.
>> >
>> > I know I can use the UDM to create reports in VS.
>> >
>> > Thank you
>> >
>>