Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kevhav
Continued Contributor
Continued Contributor

Understanding Memory Thrashing

We have a single Premium P1 node. I am looking at some performance issues. I have looked here, and I have looked at my capacity's usage metrics. The memory thrashing metric is defined as "how many times datasets are evicted from memory due to memory pressure from the usage of multiple datasets."

 

I have just three datasets in my capacity. Two are fairly large -- the .pbix files are around 500 MB, each. The third is much smaller.

 

I've had just a few occurrence of memory thrashing in my usage history for this week. But I don't get why! When I look at the memory usage around the times when memory thrashing occurred, I do see spikes in memory usage. But the "spikes" only go up to 15 or 16 GB, at the most -- which is not close to the 25 GB that a P1 node has. Right?

 

Here is the data, showing 4 periods of memory thrashing (yellow, blue, red, green) and the memory usage from the same periods:

 

Capture.PNG

 

Why do you think datasets are being evicted from/re-loaded to memory, when my maximum memory usage never seems to approach 25 GB?

4 REPLIES 4
kevhav
Continued Contributor
Continued Contributor

One symptom, I think: during one of those periods of memory thrashing, I had a scheduled dataset refresh fail, with the following error...

 

You have reached the maximum allowable memory allocation for your tier.
Consider upgrading to a tier with more available memory.
The command has been canceled..
The exception was raised by the IDbCommand interface.

 

Hi there

It looks like it could be happening if your datasets are sitting say at above 12.5GB and then a refresh is happening, which will mean it requires another 12.5GB in order to refresh the data. Which could go over the memory allocation for your P1 node.

Also do you have any Row Level Security Defined in your data models? The reason that I ask is because that will mean more users will consume more memory. And if there are other datasets in use, and a refresh starts to happen you will get the error above.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

kevhav
Continued Contributor
Continued Contributor

Thanks @GilbertQ...

 

My average memory usage, for the whole capacity, is 6 GB. Looking at the line chart, generally it hovers between 5 to 7 GB.

 

The two large datasets are refreshed every 2 hours, around the clock. At periods during which one of the large datasets is being refreshed, memory usage for the capacity typically goes up to around 7 GB. Occasionally the dataset refreshes take longer than usual, and the refreshes of the two datasets overlap; even when both datasets are being refreshed simultaneously, memory usage for the capacity typically does not exceed 10 GB.

 

Looking again at the memory usage data export...which shows memory usage for each three-minute period during the last week...there were only 16 "three-minute periods" (out of 3,360 periods) where memory usage exceeded 10 GB. Maybe those were periods of high report consumption, and/or data refreshes -- I'm not sure.

 

All of that is just to say that it seems like my datasets are never "sitting at above 12.5 GB" -- right? So again, I can't figure out why there would ever be dataset eviction/thrashing.

Thanks for the details. It appears that there shouldn't be any memory thrashing.

I would suggest logging a support ticket for on of the engineers to have a look and possibly have more information to better understanding why this is happening




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.