strongtz / i915-sriov-dkms

dkms module of Linux i915 driver with SR-IOV support
973 stars 117 forks source link

Larger memory usage with SRIOV #175

Open sshaikh opened 3 months ago

sshaikh commented 3 months ago

Arch linux VM, using latest commit (r113.3d7a1b3) and abi version fix:

❯ uname -a
Linux pc-office 6.6.32-1-lts #1 SMP PREEMPT_DYNAMIC Sat, 25 May 2024 20:20:51 +0000 x86_64 GNU/Linux

Without the module on boot:

❯ free -h
               total        used        free      shared  buff/cache   available
Mem:           7.7Gi       358Mi       7.4Gi       796Ki       163Mi       7.4Gi
Swap:             0B          0B          0B

After starting firefox (4 tabs):

❯ free -h
               total        used        free      shared  buff/cache   available
Mem:           7.7Gi       1.7Gi       5.5Gi       132Mi       893Mi       6.0Gi
Swap:             0B          0B          0B

With the module on boot:

❯ free -h
               total        used        free      shared  buff/cache   available
Mem:           7.7Gi       369Mi       7.4Gi       1.2Mi       164Mi       7.4Gi
Swap:             0B          0B          0B

After starting firefox (same tabs):

❯ free -h
               total        used        free      shared  buff/cache   available
Mem:           7.7Gi       2.3Gi       4.9Gi       626Mi       1.4Gi       5.4Gi
Swap:             0B          0B          0B

I don't believe this is an issue with FF, it just seems to exacerbate the issue. I am getting OOM issues with the module enabled with modest use.

I am accessing the headless VM using xrdp (with glamor extensions - xorg-xrdp-glamor). vGPU is detected fine and acceleration is there (for as long as apps are usable before being killed!).

Any tips on how to diagnose?

sshaikh commented 3 months ago

The idle VM is continuing to use more memory. After 24h:

❯ free -h
               total        used        free      shared  buff/cache   available
Mem:           7.7Gi       4.2Gi       2.6Gi       565Mi       1.8Gi       3.6Gi
Swap:             0B          0B          0B
xp499 commented 3 months ago

Hello, suffering from the same issue. Clearly it's a memory leak. Same distro, same kernel, hardware is a 14900K. Didn't tested if 6.1 lts is affected bc for now i'm sticking with 6.9 without this driver settled up.

It gets to a point that system force closes the rest of "critical" processes like xfce and lightdm for me. It resets the entire session and sometimes leaving the computer on the CLI. I've plenty more ram than you (128GiB) and over time it overrruns entire available amount.

xp499 commented 3 months ago

Didn't setup VF nor using them at all. Is just starting and using the system with this installed.

sshaikh commented 3 months ago

Interesting - I only see it when I "install" the virtual card in the VM. Without that the system runs okay.

EricCorleone commented 1 month ago

Same issue, the memory consumption just keeps increasing and never releases on Proxmox 8.2.4, 6.8.8-3-pve kernel.

lucker999 commented 4 weeks ago

Can confirm on arch lts 6.6.48-1 the ram usage steadily increases with each minute even if no apps launched. in about 5 minutes 22GB in use with only FF and konsole running. No VM or virt-manager launched as well.

bbaa-bbaa commented 19 hours ago

It would be great if anyone can test the fix #204, thanks.