terminatorul / NvStrapsReBar

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

rebar size #24

Open VartuloFN opened 9 months ago

VartuloFN commented 9 months ago
          Motherboard model: MSI Z390-A PRO (MS-7B98)
Motherboard chipset: Intel Z390 (Cannon Lake-H)
CPU Model: Intel Core i7-9700
Graphic card: PNY GTX 1660 Super
VRAM size: 6144MB (6GB)
New BAR size (GPU-Z): 2048MB (2GB)
New BAR size (nvidia-smi): 2048MB
NVIDIA driver version: 551.52

GPU-z gpu-z1 image

Originally posted by @VartuloFN in https://github.com/terminatorul/NvStrapsReBar/issues/1#issuecomment-1958025149

        Is it fine to increase the rebar size manually to 8GB?
pabloalber84 commented 9 months ago

In fact the correct thing to do (if im wrong, anyone correct me), is to assign a space in Rebar to the nearest amount of memory. Memory ranges (in Bar Memory) vary between: 16MB > 32MB > 64MB > 128MB > 256MB > 512MB > .... > 4GB > 8GB > 16GB > 32GB > ... If you look, there is a jump from 4GB to 8GB, so you will have to allocate the closest (upward) which is 8GB. If your graphics card had 12GB of VRAM for example, you would have to allocate 16GB, because from the 8GB it jumps to 16GB the correct ReBar space. Obviously, they recommend having at least twice as much RAM as you are allocated in ReBar.

It's allowed to increase ReBar to 8GB.

xCuri0 commented 9 months ago

@pabloalber84 the ram thing isn't true

You just need to set it to the size which covers all your GPU VRAM

terminatorul commented 9 months ago

@VartuloFN

   Is it fine to increase the rebar size manually to 8GB?

Yes, this is the recommended thing to do.

The NvStrapsReBar DXE driver identifies the card by the PCI ID, so that way it can tell how much memory the GPU should have. But there are many possible ID values (about 130, you can check source file DeviceRegistry.c if you want) and it is possible some of them are not known / missing, which is what happend with your card (PCI IDs 10DE:21C4 196E:1345). 2 GiB size is just the default value in case the card is not identified.

So yes, go ahead and manually configure the card to 8 GiB BAR size. Now that I have the PCI ID of your card, a future version of NvStrapsReBar will fix this issue as well.

VartuloFN commented 9 months ago

Yeah I already did that 2 days ago i set the size manually to 8GB , yes works fine . Just i asked because the automatic option have set it to me to 2GB and it’s to low compared to my gpu vram size.

VartuloFN commented 9 months ago

And what do you recommend to set rebar size limit In NvidiaProfileInspector to?

terminatorul commented 9 months ago

Most game titles reach best performance around 1.5 GiB BAR size, which is what NVIDIA uses for most titles. But not all titles are like this, some games benefit from setting the rBAR size to maximum (8 GiB) in the Profile Inspector. I do not have examples other then 3DMark PCI bandwidth test, so you should try for yourslef

VartuloFN commented 9 months ago

Yeah i will do tests of course , the hexaDecimal values is represents the rebar size in bytes?

terminatorul commented 9 months ago

Yes