High Sierra on Mid 2014 MBPR exhibits GPU memory leak with external displays

Same problem as in High Sierra on Mid 2014 MBPR exhibits GPU memory leak with external displays but on 10.3.3. As there was no problem on earlier versions of Mac OS I suppose that it appeared on Mac OS 10.3.2 or some earlier. I do not want to think it's a new slowdown issue like with batteries on iPhone.


My configuration is:

MPRO mid 14 15'', 2.5 GHz, 16 GB, 512 SSD

MacOS 10.3.3

Apple Thunderbolt Display

iStat Menus 6

Step 1) External Display + Safari after several hours of work (100% GPU mem, Nvidia GPU used):

User uploaded file

Step 2) Disconnect External Display + Safari (39% GPU mem, internal GPU used):

User uploaded file

Step 3) Connect again External Display + Safari (42% GPU mem, Nvidia GPU used)User uploaded file

Step 4) External Display + no Safari (35% GPU mem, Nvidia GPU used):


User uploaded file

Step 5) Disconnect External Display + no Safari (31% GPU mem, internal GPU used):

User uploaded file


Display configurations:

User uploaded file

User uploaded file

MacBook Pro, macOS High Sierra (10.13.3), Apple Thunderbolt Display

Posted on Feb 12, 2018 2:50 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 4, 2018 5:37 AM

I'm on a late 2013 iMac 27" with a GTX 775M (2 gb) and RAM = 24 gb. Installing the latest Nvidia driver made Windowserver and Memory go totally haywire, I am pretty certain.


Typically I'm at < 10% memory pressure; post-driver update I was at 70%+ after one hour. According to Activity Monitor, at one point windowserver was using 180 GB ( ! ) of RAM, ~174 GB of which compressed. Also appeared: forty 1.03 gig "swapfiles" in /private/var/vm/ taking up 40 gigs of hard drive space (disappeared on restart). System forced logouts every few hours. It was very confusing figuring out what was causing what. All I do is browse the internet and compile TeX documents. No gaming, no computations...youtube is as graphics heavy as I get.


Solution that worked for me: I switched from Nvidia Web Driver to Default MacOS Graphics Driver in the nvidia web utility (not cuda). Now I have no problems. Slightly uglier but it's stable and non-buggy. So I will stick with this.


It is totally unacceptable to have bugs like this. Apple does not let us tweak the hardware. We are forced to use one of the three graphics cards that Apple chooses. Then we sit around not able to use the only thing they allowed us to purchase, til maybe Apple or Nvidia figure out a fix some day. (It will just happen--no PR to tell us what's going on). "We won't fix it and no you can't change it" is such a rotten message. Unfortunately the alternative is windows...

Similar questions

19 replies
Question marked as Top-ranking reply

Mar 4, 2018 5:37 AM in response to 91koff

I'm on a late 2013 iMac 27" with a GTX 775M (2 gb) and RAM = 24 gb. Installing the latest Nvidia driver made Windowserver and Memory go totally haywire, I am pretty certain.


Typically I'm at < 10% memory pressure; post-driver update I was at 70%+ after one hour. According to Activity Monitor, at one point windowserver was using 180 GB ( ! ) of RAM, ~174 GB of which compressed. Also appeared: forty 1.03 gig "swapfiles" in /private/var/vm/ taking up 40 gigs of hard drive space (disappeared on restart). System forced logouts every few hours. It was very confusing figuring out what was causing what. All I do is browse the internet and compile TeX documents. No gaming, no computations...youtube is as graphics heavy as I get.


Solution that worked for me: I switched from Nvidia Web Driver to Default MacOS Graphics Driver in the nvidia web utility (not cuda). Now I have no problems. Slightly uglier but it's stable and non-buggy. So I will stick with this.


It is totally unacceptable to have bugs like this. Apple does not let us tweak the hardware. We are forced to use one of the three graphics cards that Apple chooses. Then we sit around not able to use the only thing they allowed us to purchase, til maybe Apple or Nvidia figure out a fix some day. (It will just happen--no PR to tell us what's going on). "We won't fix it and no you can't change it" is such a rotten message. Unfortunately the alternative is windows...

Feb 12, 2018 2:10 PM in response to Kappy

This won't work. The same hardware performs excellent after a fresh install of MacOS Sierra but exhibits the same VRAM issues with a freshly installed MacOS High Sierra with no third party apps running.

This is clearly caused by unoptimized nvidia drivers, failing to properly handle the rewritten Metal 2 WindowServer component.

This causes the discrete NVIDIA GPU to run out of VRAM, and load textures from the much slower System RAM.


The result of this are stutters and dropped frames.

I am afraid that the fix can only be supplied by Apple in form of a system update.


Feb 12, 2018 12:43 PM in response to Kappy

I think that the data does support a memory leak/incorrect memory flushing on its own. Since the GPU VRAM completely fills up over time, just by using an external display. Because of that the GPU has to run a hybrid mode, which means that it starts streaming texture data from system RAM over the PCIe bus, that is 3-5x slower and higher latency.

Therefore the computer experiences significant stutters and FPS drops due to faulty VRAM management.

Feb 12, 2018 11:47 PM in response to Technobeat

I agree that it might be connected with Nvidia Driver issues or some MacOS bug and we have to wait for an update. I'm waiting a new MacBook Pro 15 mid 2017 this week to arrive. It has 4 GB of VRAM and AMD video instead of Nvidia. I'll try to reproduce the issue with iStat measures and post a feedback. Moreover I also plan to install a beta version of MacOS on my current MBPRO mid 2014 and check if the issue will occur.

Feb 14, 2018 10:26 AM in response to 91koff

Finally. Got today a new MacBook Pro 15 2017 with AMD Radeon 560 with 4 GB of VRAM.

Same test as in a post:

1) Same external Apple Thunderbolt Display connected + Safari running for some time.

2) Same Mac OS version


The result is:

1) No freezes

2) Only 31% of VRAM is consumed (1269 MB)

User uploaded file


I suppose that the issue is not connected with memory leak. I agree here with @Kappy.

But the fact is that the for somehow MacBook Pro 15 mid 2014 with 2 GB of VRAM consumes more VRAM than MacBook Pro 15 2017 for the same task. That's weird.


How can I report this directly to apple support?

Feb 12, 2018 1:32 PM in response to Kappy

While working with no external monitor GPU memory never filled up to 100% and I can see that all interface works smoothly without glitches and freezes. Otherwise when connecting external monitor I see GPU memory filled to 100% and just after that windows movings became slow and unsmooth (I don't know how to call it better).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

High Sierra on Mid 2014 MBPR exhibits GPU memory leak with external displays

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.