terminatorul / NvStrapsReBar

Resizable BAR for Turring GTX 1600 / RTX 2000 GPUs
MIT License
558 stars 13 forks source link

Why is my BAR1 Memory always occupied? #89

Open RipperPix00 opened 6 months ago

RipperPix00 commented 6 months ago

I successfully enabled Resizeable Bar a few days ago, but I found that my BAR1 usage is different from everyone else's, my BAR1 is always in a run-out state, even though i'm not running any programs.

My BAR1 usage: 屏幕截图 2024-06-01 135045

Other people's BAR1 usage: 屏幕截图 2024-06-01 134959

chknrice commented 5 months ago

have you figured it out? mine does the same

Lucide commented 4 months ago

Interesting, I'm observing this too:

==============NVSMI LOG==============

Timestamp                                 : Tue Jul 23 12:34:41 2024
Driver Version                            : 560.70
CUDA Version                              : 12.6

Attached GPUs                             : 1
GPU 00000000:01:00.0
    FB Memory Usage
        Total                             : 8192 MiB
        Reserved                          : 203 MiB
        Used                              : 659 MiB
        Free                              : 7331 MiB
    BAR1 Memory Usage
        Total                             : 8192 MiB
        Used                              : 8165 MiB
        Free                              : 27 MiB
    Conf Compute Protected Memory Usage
        Total                             : N/A
        Used                              : N/A
        Free                              : N/A

Since I'm unsure of the source of that value, it could have a different meaning than what we are attributing to it. Windows' task manager shows a normal vram usage (as well as GPU-Z).

marcmy commented 4 months ago

Same issue here.

marcmy commented 3 months ago

Anyone figure this out yet?

k1netic88 commented 3 months ago

A quick scroll through the more recent posts in working cards, it might be to do with the driver version. 552.55 is the latest driver i could see that has BAR1 usage low.

Im in the same boat, does it affect performance or is it just a difference in reporting?

image

karfelren commented 1 month ago

dunno it's occurred from driver or hardware in my test playing apex does not affect any performance while rebar on still the same 10 - 15% gain performance, my only concern is the microcode from oem (old) it's cause micro stuttering while rebar on even when not playing game just update the microcode all seamlessly work fine.

fidoboy commented 4 weeks ago

I'm afraid that everyone is having this issue because I'm also observe the same results in nVidia smi tool than the exposed here. Almost all the BAR1 memory is being occupied even when there is no programs running. The same 27Mb free is being showed here.

May be that @terminatorul the creator of this patch can bring some light into this.

marcmy commented 3 weeks ago

On a recent driver installation—likely a hotfix rather than an official update—I noticed that BAR1 wasn't being used. However, even after launching and playing games, the numbers remained unchanged, despite forcing ReBAR through NVIDIA Profile Inspector. A few days later, I updated to a newer driver, and BAR1 usage returned to being fully used.

Perhaps unrelated but I found that enabling ReBAR caused a drop in performance for me, instead of the expected improvement, regardless of whether it was force-enabled via Profile Inspector or not. I haven't been playing many games recently, so my observations are based on just two older titles: Apex Legends and Quake Live. I've resorted to keeping ReBAR disabled for now. Hopefully this can be addressed in the future.

AMD-Boii commented 3 weeks ago

Works well with this version https://www.nvidia.com/download/driverResults.aspx/224483/en-us/

Снимок экрана 2024-11-06 191718

fidoboy commented 3 weeks ago

Works well with this version https://www.nvidia.com/download/driverResults.aspx/224483/en-us/

Снимок экрана 2024-11-06 191718

You are right. I've just tested it and now the used memory usage is only 2MiB.

marcmy commented 3 weeks ago

That makes sense. I figured out what happened for me was I used a driver updater and it installed a vulkan beta driver which is based on older drivers (Likely 55x.xx). So that's why it showed "Used: 2 MiB" for me too. But yeah, I didn't see any usage above that when gaming, nor did I see any performance benefit.

AMD-Boii commented 3 weeks ago

So can anybody test it with Dead Space Remake for example? Would it give any performance boost at all?

fidoboy commented 3 weeks ago

It could be interesting to make some tests to see if there is any performance benefits when nvidia-smi.exe displays less memory usage in BAR1

fidoboy commented 3 weeks ago

Works well with this version https://www.nvidia.com/download/driverResults.aspx/224483/en-us/

Снимок экрана 2024-11-06 191718

It's not sure that these results are equal to "works well". It just means that all that memory is not being used and this doesn't inmediately means that it have some benefits in performance.