如何在 Linux 中添加一些与 GPU 共享的系统内存?

如何在 Linux 中添加一些与 GPU 共享的系统内存?

我已经从 Windows 10 切换到 Linux Mint 21.1 我尝试在 lutris(wine 模拟)上玩 GTA 5,但是该游戏在 Linux 上几乎无法玩,因为由于 Windows 上的 VRAM 较低(仅 2GB),地图的大部分内容无法加载由于存在共享内存,游戏运行良好。我不知道如何在 Linux mint 上启用它。任何帮助表示赞赏。下面是 Windows 上共享 GPU 内存的示例:Windows 上共享 GPU 内存的示例

答案1

NVIDIA 二进制驱动程序不允许指定 GPU 可以使用的系统 RAM 量。我也没有听说过nouveau允许这样做。

以下是最新稳定版 NVIDIA 驱动程序的选项:

name:           nvidia
parm:           NvSwitchRegDwords:NvSwitch regkey (charp)
parm:           NvSwitchBlacklist:NvSwitchBlacklist=uuid[,uuid...] (charp)
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_EnableStreamMemOPs:int
parm:           NVreg_RestrictProfilingToAdminUsers:int
parm:           NVreg_PreserveVideoMemoryAllocations:int
parm:           NVreg_EnableS0ixPowerManagement:int
parm:           NVreg_S0ixPowerManagementVideoMemoryThreshold:int
parm:           NVreg_DynamicPowerManagement:int
parm:           NVreg_DynamicPowerManagementVideoMemoryThreshold:int
parm:           NVreg_EnableGpuFirmware:int
parm:           NVreg_EnableGpuFirmwareLogs:int
parm:           NVreg_OpenRmEnableUnsupportedGpus:int
parm:           NVreg_EnableUserNUMAManagement:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_KMallocHeapMaxSize:int
parm:           NVreg_VMallocHeapMaxSize:int
parm:           NVreg_IgnoreMMIOCheck:int
parm:           NVreg_NvLinkDisable:int
parm:           NVreg_EnablePCIERelaxedOrderingMode:int
parm:           NVreg_RegisterPCIDriver:int
parm:           NVreg_EnableResizableBar:int
parm:           NVreg_EnableDbgBreakpoint:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RegistryDwordsPerDevice:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_GpuBlacklist:charp
parm:           NVreg_TemporaryFilePath:charp
parm:           NVreg_ExcludedGpus:charp
parm:           NVreg_DmaRemapPeerMmio:int
parm:           NVreg_RmNvlinkBandwidth:charp
parm:           rm_firmware_active:charp

NVreg_MemoryPoolSize 看起来很有趣,但它不是您需要的:

 * Option: MemoryPoolSize
 *
 * Description:
 *
 * When set to a non-zero value, this option specifies the size of the
 * memory pool, given as a multiple of 1 GB, created on VMware ESXi to
 * satisfy any system memory allocations requested by the NVIDIA kernel
 * module.

只是为了好玩我会尝试这样的事情:

/etc/modprobe.d/nvidia.conf
options nvidia NVreg_MemoryPoolSize=4

虽然我很确定这行不通。视窗作品 不同地,这就是整个问题。

相关内容