Skip to contentSkip to conversation

drm/vmwgfx: graphics memory not returned,after all GEM objects are released

DISCUSSION Jellis Onsea | AccessWeb 2 participants 11 messages Aug 10 – Aug 27

lore
Share & tools
lore
#0 lore raw

Hi Maaz, Zack,

I have a test result, but not the one you asked for.. the bug stopped reproducing before I could test the patch, and the reason may be useful to you.

Short version: enabling 3D acceleration on the VMware host made the leak go away, with the stock distribution mesa. No patch involved.

-- What I changed:

Until 7 August this guest ran with 3D acceleration disabled in the VM settings, and additionally forced llvmpipe via LIBGL_ALWAYS_SOFTWARE=1. That was the configuration in my original report.

I enabled 3D on the host and removed the LIBGL_ALWAYS_SOFTWARE override, so the whole session -- kwin_wayland, plasmashell, clients -- now runs on svga:

OpenGL renderer string: SVGA3D; build: RELEASE; LLVM;
Driver: VMware (SVGA3D)
mesa 26.1.6-arch3.1 (distribution build, NOT patched)

-- Measurements:

Sampled every 15 minutes. system_ttm and mob_ttm are the two TTM pools from /sys/kernel/debug/dri/0/, "total" is their combined growth:

session start hours system_ttm mob_ttm total objects

------------------------------------------------------------------------------

    2026-08-02 20:37       7.8    4.73 -> 15.09   0.023 -> 0.023 
+1355 MB/h   753 -> 2184
    2026-08-03 04:36      34.8    0.11 -> 46.57   0.023 -> 0.023 
+1367 MB/h    23 -> 8211
    2026-08-04 15:37      33.1    0.10 -> 32.07   0.023 -> 0.023 
+989 MB/h    31 -> 5586
    2026-08-06 00:59      25.7    0.32 -> 17.07   0.023 -> 0.023 

+667 MB/h 49 -> 2680
--- 3D enabled, svga in use from here ---
2026-08-07 02:48 15.6 0.06 -> 0.05 0.131 -> 0.216
+5 MB/h 85 -> 244

    2026-08-07 18:35      18.2    0.08 ->  0.19   0.266 -> 0.555 

+22 MB/h 1357 -> 3272

Same machine, same kernel (7.1.6), same mesa package, comparable desktop use. The last row is a full working day plus a night.

Two details that may matter more than the totals:

- --mob_ttm never moved in any of the four pre-3D sessions-- 409 samples over four days, constant at 0.023 GB. With svga it moves. The memory is coming out of a different pool.

- --The dominant buffer changed size-- Without 3D it was 8355840 bytes = 1920 x 1088 x 4, height padded to a multiple of 64 -- the signature of a dumb buffer. With svga it is 8294400 = 1920 x 1080 x 4, exactly the screen, no padding.

So the configuration I reported was not exercising the svga driver at all, which was the question in my previous mail: the leak I measured was on the dumb-buffer/kms_swrast path, not through gallium svga.

-- About the patch:

I did build it, to be able to test properly: staging/26.1 at 2ed36c6 ("svga: Pass buffer handle for fd handles for resource_from_handle()", the backport of b460cff2 from your MR 43386). Verified it was actually loaded.. the version string reads "Mesa 26.1.6 (git-2ed36c6b5d)" and the vmw_winsys_to_dma_buffer symbol is present.

I have not been able to give it a meaningful before/after, because in the configuration where svga is in use the leak is already absent with the unpatched driver. I am not claiming the patch is unnecessary -- I am saying my machine no longer reproduces the problem it fixes.

If it helps, I can put the guest back on 3D-disabled and measure there with and without the patched build. Given the above I suspect it would show nothing, since svga is not loaded in that configuration, but say the word and I will run it.

-- One correction to something I nearly reported:

While switching, plasmashell started segfaulting on "dmabuf import failed to mmap". I was close to reporting that as a second driver bug. It was not: I had left LIBGL_ALWAYS_SOFTWARE=1 in place, which plasmashell honours but kwin does not (it goes through EGL). That left the compositor on svga and a client on llvmpipe trying to CPU-map a guest-backed buffer. With both on the same driver it is gone: 18 hours, zero occurrences.

The one thing that does look like a real bug is on the KDE side, not yours: the failed mmap leads to SIGSEGV (si_code = SEGV_MAPERR) rather than a blank thumbnail. I will report that to them separately.

-- Environment:

    Guest:      CachyOS (Arch-based), kernel 7.1.6-1-cachyos
    Host:       VMware Workstation on Windows, AMD Ryzen 9 7950X
    Driver:     vmwgfx, VMware SVGA II, 3D acceleration now ENABLED
    Compositor: KWin 6.7.4, Plasma Wayland, 3 x 1920x1080 @ 60 Hz
    mesa:       26.1.6-arch3.1
    max mob size: 1048576 KiB   (was 262144 KiB with 3D disabled)

Happy to run anything specific, on either configuration.

Regards,

Jellis Onsea
AccessWeb

#2 lore raw

Hi Maaz, Zack,

Yes, it does, and I have to correct my message of 8 August as well.

-- Short answer

With 3D disabled again, kernel 7.1.8, stock mesa 26.1.6-arch3.1. Object counts from vmwgfx_gem_info, sampled every 15 minutes:

  2026-08-15 14:22 - 23:53      idle, 9.5 h     370 ->  370 objects
  2026-08-15 23:53 - 16 01:08   in use          370 ->  772 objects
  2026-08-16 03:54 - 13:53      idle, 9.8 h    1274 -> 1274 objects
  2026-08-16 13:55 - 17:57      working day    1274 -> 2387 objects

Both idle windows are identical in every single sample: 39 and 40 consecutive samples with the same object count and the same pool figures. Not approximately flat - identical. Nothing accumulates while the machine sits there, and nothing is handed back either.

I lead with counts rather than volume because of the caveat in my first mail: the summed object sizes exceed physical RAM, so I do not trust the totals. For what it is worth, the pools moved 2.16 -> 4.57 GB and 6.73 -> 13.85 GB across those two active windows.

-- This confirms my original report rather than adding to it:

The second window was a browser video call, with no RDP session involved. In some of my later messages I linked the heavy phases to RDP, because that was the heaviest thing running here. That was my own
mistake: my first report already said it plainly - "a browser window with a looping CSS animation makes it measurable within minutes. Opening and closing 32 windows produced no growth at all, so it is the continuous rendering that drives it." The idle-versus-active split I described then is exactly what these four windows show.

-- Correction to my message of 8 August:

I wrote that enabling 3D acceleration made the leak go away. That was based on two svga sessions of 15.6 and 18.2 hours, and it does not survive a longer measurement.

The problem was the length of those sessions, not the pools - I did report both, and mob_ttm was already moving in that table. But at 18.2 hours it stood at 0.555 GB. That same boot ran on for 115.5 hours in total, and by the end mob_ttm was at 15.15 GB.

For reference, the two pools swap roles with the configuration:

    3D off (llvmpipe)   system_ttm grows,  mob_ttm flat at 0.023 GB
    3D on  (svga)       system_ttm flat,   mob_ttm 0.27 -> 15.15 GB

Per boot, both pools added together:

  boot            hours  kernel  3D    sys+mob     objects
  2026-08-02 16:02   7.8   7.1.5  off  +1355 MB/h   753 -> 2184
  2026-08-03 04:33  34.8   7.1.5  off  +1367 MB/h    23 -> 8211
  2026-08-04 15:34  33.1   7.1.6  off   +989 MB/h    31 -> 5586
  2026-08-06 00:56  25.7   7.1.6  off   +667 MB/h    49 -> 2680
  2026-08-07 02:45  15.6   7.1.6  on      +5 MB/h    85 ->  244
  2026-08-07 18:32 115.5   7.1.6  on    +161 MB/h  1357 -> 9128
  2026-08-12 14:20  62.9   7.1.8  on     +30 MB/h  1405 -> 4418
  2026-08-15 12:03  29.6   7.1.8  off   +442 MB/h    30 -> 2236

The 2026-08-07 18:32 row is the one I got wrong. I reported +22 MB/h for its first 18.2 hours; over the full 115.5 hours it is +161 MB/h. I drew a conclusion from a session that had not run long enough.

So enabling 3D reduces it substantially - roughly a factor 3 to 30 depending on the session - but it does not remove it. The per-boot averages also flatten something that is not gradual: long flat stretches, then a jump inside a single 15-minute sample.

-- The kernel changed twice and I did not mention it:

7.1.5 -> 7.1.6 on 4 August, 7.1.6 -> 7.1.8 on 12 August, each taking effect at the boot immediately after. Since vmwgfx is a kernel module I should have said so at the time. Mesa stayed at 3:26.1.6-1 throughout, so that is not a variable.

I do not think it explains anything - 7.1.8 with 3D off leaks harder than 7.1.5 did - but it belongs in the data.

-- The patch:

Still built and still verified here:

/usr/lib/libgallium-26.1.6-arch3.1.so vmw_winsys_to_dma_buffer absent
my staging/26.1 build at 2ed36c6 vmw_winsys_to_dma_buffer
present

                                            "Mesa 26.1.6 (git-2ed36c6b5d)"

Arch has not shipped a mesa containing it; 3:26.1.6-1 is still the current package here, so the fix has not reached this machine through the distribution.

In the 3D-off configuration llvmpipe is in use and the buffers are dumb buffers of 1920x1088x4, so I would not expect gallium svga to be involved at all. If the mechanism Zack described - prime exports with no deref/destroy ioctl, so gem_close does nothing - also applies on the dumb-buffer path, that would explain why this configuration keeps leaking while the mesa-side fix sits in svga.

I can run any of these, whichever is most useful to you. All four are set up here, so it is a matter of you saying which:

1. the patched build with 3D OFF, in the current configuration. This is the quickest - the build is in place and it takes a re-login. I expect it to change nothing, since svga is not loaded here, but that is worth establishing rather than assuming.
2. the patched build with 3D ON, 48 hours or more, against the +161 MB/h baseline above. Needs the VM powered down to change the host setting, so give me a day for it.
3. stock Arch kernel instead of the CachyOS one. Arch currently ships linux 7.1.8.arch1-3, which is the same version as the CachyOS 7.1.8 I am running, so that isolates the patch set rather than the version. I offered a vanilla kernel in my first mail and never did it; it installs alongside the current one, so it is low risk here.
4. any instrumentation you want, on either configuration - extra debugfs reads, a debug patch, different sampling.

Say which and I will run it.

-- One correction on the plasmashell crash:

In my 8 August mail I said the dmabuf import crash looked like a KDE bug and that I would report it to them. That was wrong. The message comes from libgallium, not from any KDE or Qt library, and the faulting thread is an llvmpipe rasteriser thread. It matches mesa issue #6438, which is still open. I will add my reproduction there instead.

Regards,

Jellis Onsea
AccessWeb

Op 13-08-2026 om 23:12 schreef Maaz Mombasawala:

Quoted 2 lines

That is good to know. Do you still see a memory leak with 3D off?

Signature · 15 lines
Met vriendelijke groeten,
AccessWeb ICT Solutions
AccessWeb.
	
ONSEA Jellis
AccessWeb ICT Solutions
Europaplein 29/7
3630 Maasmechelen
Tel BE +32 470 96 43 15 <tel:+32470964315>
Tel NL +31 6 492 757 98 <tel:+31649275798>
E-mail [email protected] <mailto:[email protected]>

Indien u een SLA-contract heeft, gelieve alle communicatie te voeren met
het e-mailadres gekoppeld aan uw SLA. Dit verzekert de correcte en
tijdige opvolging van uw vraag.
#3 lore raw

For the 3D enabled case, that sounds a lot like the memory leak for which I submitted the fix to mesa recently. The fix has been included in mesa version 26.1.7, could you try with that version? I see you're using mesa 26.1.6 right now.

Signature · 1 line
Maaz Mombasawala <[email protected]>
#4 lore raw

Hi Maaz,

Yes, it is set up here now.

One practical detail: 26.1.7 never reached this machine. Arch upgraded us from 26.1.6 to 26.2.0 in one step on 17 August, so rather than the release I am using the build we made on 7 August, which is 26.1.6 with your commit 2ed36c6 applied. I diffed that tree against the mesa-26.1.7 tag: src/gallium/winsys/svga/ and src/gallium/drivers/svga/ are identical, so for the svga paths it is that version. Our vmwgfx module reports 2.21.0.0, so have_drm_2_21 is true and the new branch is the one that runs.

Results will take a day or two, and I would rather explain why than send you a number too early. With 3D enabled our leak has run between 5 and 161 MB/hour, and the debugfs counter we track is logged in 10 MB steps, so a short window cannot resolve it. A ten-minute run last night came out flat, which says nothing either way. I will run a multi-hour window on stock mesa and an identical window on the patched build, under the same synthetic render load, and send you both.

Two things you may want to know in the meantime.

First, mesa 26.2.0 does not contain your fix. It was tagged on 5 August, a week before 26.1.7, so it predates the backport:

  mesa-26.1.6         29 Jul 2026   absent
  mesa-26.2.0         05 Aug 2026   absent    (what Arch ships today)
  mesa-26.1.7         12 Aug 2026   present
  origin/staging/26.2               present
  origin/main                       present

In the 26.2.0 tree, vmw_screen_dri.c:331 still reads

ret = drmPrimeHandleToFD(vws->ioctl.drm_fd, vsrf->sid, ...)

staging/26.2 and main both carry the fix, so 26.2.1 should bring it along. Until then every distribution that moves from 26.1.7 to 26.2.0 loses it again.

Second, enabling 3D on 26.2.0 took our desktop down, in the dmabuf path:

dmabuf import failed to mmap: Invalid argument (x4)
plasma-plasmashell.service: Main process exited, code=dumped,
status=11/SEGV

There is one reliable way to trigger it: hovering the mouse over a task manager icon of a running window, so that Plasma raises the window thumbnail preview. That killed plasmashell every single time. As long as we stayed away from those icons the session looked stable. A thumbnail preview is a dmabuf import of another client's buffer, which fits the error above.

Once it starts, systemd restarts plasmashell, the shell rebuilds the panel and dies again: three crashes within eight seconds, then the restart limit gave up and we were left with an empty desktop. A manual restart behaved the same way.

The precondition is 3D enabled together with LIBGL_ALWAYS_SOFTWARE=1, which is the configuration in our original report of 5 August. Removing that variable, so the session really runs on svga, makes it stable: the same hover over the same icons is now uneventful, and the desktop has been up since.

I am not claiming your fix addresses that. We have not tested it, and this was on 26.2.0, which does not have it. But it is the same handle export path and it is now reproducible on demand here, which it was not before. If a backtrace or an strace of the failing mmap would help, say the word.

Finally, a small thing in the patch itself, which does not affect us since we are on 2.21: in vmw_drm_surface_get_handle(), ret is declared uninitialised, and when have_drm_2_21 is false while vsrf->buf is non-NULL neither branch assigns it. The following "if (ret)" then reads an indeterminate value.

Best regards,
Jellis

Op 18-08-2026 om 00:02 schreef Maaz Mombasawala:

Quoted 4 lines

For the 3D enabled case, that sounds a lot like the memory leak for which I submitted the fix to mesa recently. The fix has been included in mesa version 26.1.7, could you try with that version? I see you're using mesa 26.1.6 right now.

#5 lore raw

For the 3D-enabled case, could you try with mesa 26.1.8 or 26.2.1, both of which contain my fix. Also if you could try the patch I just submitted on dri-devel - drm/vmwgfx: Return gem fd handle for scanout buffers. If you still see issues with these patches, let me know.

As for the 3D disabled case, I can see issues on my local machine and am working on a fix.

PS - Your emails are overly verbose and narrative, could you include only the actual problems you are facing. If you're using an llm to write these, please make them more terse and human readable. Thanks.

Signature · 1 line
Maaz Mombasawala <[email protected]>
#6 lore raw

Hi Maaz,

Updated today: mesa 26.2.1, and the kernel went 7.1.8 -> 7.2.0 in the same batch. 3D enabled, renderer is SVGA3D, vmwgfx reports 2.21.0.0.

The surface warning still fires, four times during session startup:

vmwgfx 0000:00:0f.0: [drm] User surface fd 157 (handle 49) is null. !user_srf

  WARNING: drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:958 at
  vmw_surface_handle_reference+0x297/0x320 [vmwgfx], CPU#2: 

kwin_wayland/4631

Not new - we have had it since 12 July - but it survives your fix.

Leak numbers will take a few days. I have no usable baseline on 26.2.0: the machine was mostly idle before the update - 27 of the last 42 hours were completely flat - and growth here follows render load, not uptime. Quoting a rate from that would be a startup curve, not a leak.

An intensive work period starts today, so I will send numbers from that, with the caveat that mesa and the kernel changed in the same update.

I have not tried your dri-devel scanout patch yet - we run distribution kernels here. Say if you want us to build it.

On the emails: you are right. English is not my first language so I use an LLM to write them. I will try to keep them short from now on.

Best regards,
Jellis

Op 21-08-2026 om 04:09 schreef Maaz Mombasawala:

Quoted 9 lines

For the 3D-enabled case, could you try with mesa 26.1.8 or 26.2.1, both of which contain my fix. Also if you could try the patch I just submitted on dri-devel - drm/vmwgfx: Return gem fd handle for scanout buffers. If you still see issues with these patches, let me know.

As for the 3D disabled case, I can see issues on my local machine and am working on a fix.

PS - Your emails are overly verbose and narrative, could you include only the actual problems you are facing. If you're using an llm to write these, please make them more terse and human readable. Thanks.

#7 lore raw
In reply to Maaz Mombasawala

Hi Maaz,

Short version: mesa 26.2.1 is running here with 3D on, and the leak is still there.

Setup: one boot, 119 h, a single kwin_wayland (6.7.4), mesa 3:26.2.1-1, kernel 7.2.0, renderer SVGA3D.

  TTM sys+mob    0.36 -> 16.73 GB
  objects        1948 -> 10365
  kwin_wayland   holds 8484 MB in 4894 objects
  free RAM       4.9 of 31 GB - we have to reboot today

It tracks rendering, not uptime. Idle nights (02:00-07:00) in this same boot:

  22 Aug  -0.03 GB       25 Aug  +0.00 GB
  23 Aug  +0.02 GB       26 Aug  +0.04 GB
  24 Aug  +1.88 GB   <- the one night an automated GUI test run was active

The surface warning still fires: 1168 WARNING blocks at vmw_surface_handle_reference in the last 27 hours. That is a window, not a total - journald has already rotated away the earlier part of this boot.

Correction to my previous mail: "four times during session startup" was wrong. It fires in bursts throughout the session.

We have not tried "drm/vmwgfx: Return gem fd handle for scanout buffers" we run distribution kernels here. Say the word and we will build it.

Best regards,
Jellis

Op 21-08-2026 om 04:09 schreef Maaz Mombasawala:

Quoted 9 lines

For the 3D-enabled case, could you try with mesa 26.1.8 or 26.2.1, both of which contain my fix. Also if you could try the patch I just submitted on dri-devel - drm/vmwgfx: Return gem fd handle for scanout buffers. If you still see issues with these patches, let me know.

As for the 3D disabled case, I can see issues on my local machine and am working on a fix.

PS - Your emails are overly verbose and narrative, could you include only the actual problems you are facing. If you're using an llm to write these, please make them more terse and human readable. Thanks.

#8 lore raw
Quoted 17 lines · Jellis Onsea | AccessWeb

Hi Maaz,

Short version: mesa 26.2.1 is running here with 3D on, and the leak is still there.

Setup: one boot, 119 h, a single kwin_wayland (6.7.4), mesa 3:26.2.1-1, kernel 7.2.0, renderer SVGA3D.

  TTM sys+mob    0.36 -> 16.73 GB
  objects        1948 -> 10365
  kwin_wayland   holds 8484 MB in 4894 objects free RAM       4.9 of 31 GB - we have to reboot today

It tracks rendering, not uptime. Idle nights (02:00-07:00) in this same boot:

  22 Aug  -0.03 GB       25 Aug  +0.00 GB
  23 Aug  +0.02 GB       26 Aug  +0.04 GB
  24 Aug  +1.88 GB   <- the one night an automated GUI test run was active

Quoted 5 lines

The surface warning still fires: 1168 WARNING blocks at vmw_surface_handle_reference in the last 27 hours. That is a window, not a total - journald has already rotated away the earlier part of this boot.

Correction to my previous mail: "four times during session startup" was wrong. It fires in bursts throughout the session.

We have not tried "drm/vmwgfx: Return gem fd handle for scanout buffers" we run distribution kernels here. Say the word and we will build it.

Yes please, can you go ahead and try that patch, it fixes some errors on kde and might fix this issue you are facing too.

Quoted 16 lines

Best regards,
Jellis

Op 21-08-2026 om 04:09 schreef Maaz Mombasawala:

Quoted 9 lines

For the 3D-enabled case, could you try with mesa 26.1.8 or 26.2.1, both of which contain my fix. Also if you could try the patch I just submitted on dri-devel - drm/vmwgfx: Return gem fd handle for scanout buffers. If you still see issues with these patches, let me know.

As for the 3D disabled case, I can see issues on my local machine and am working on a fix.

PS - Your emails are overly verbose and narrative, could you include only the actual problems you are facing. If you're using an llm to write these, please make them more terse and human readable. Thanks.

Signature · 1 line
Maaz Mombasawala <[email protected]>
#9 lore raw

Tried the scanout patch on kernel 7.2.0. Confirmed running:
[drm] Initialized vmwgfx 2.22.0.

No change here. GPUActive from /proc/meminfo:

    5 RDP sessions, 39 min open:   0.70 -> 3.97 GB
    then 42 min at zero sessions:  3.92 -> 4.73 GB

Not a single sample went down. Same as on 2.21.

It also keeps growing with zero sessions and small usage of the machine, so RDP is a good trigger, not the only one.

Build details if useful: distribution kernel (CachyOS 7.2.0-1), vmwgfx built out-of-tree from the matching source with clang 22.1.8, no LTO.

Regards,

Jellis

Op 27-08-2026 om 03:01 schreef Maaz Mombasawala:

Quoted 43 lines · Jellis Onsea | AccessWeb
Quoted 17 lines

Hi Maaz,

Short version: mesa 26.2.1 is running here with 3D on, and the leak is still there.

Setup: one boot, 119 h, a single kwin_wayland (6.7.4), mesa 3:26.2.1-1, kernel 7.2.0, renderer SVGA3D.

  TTM sys+mob    0.36 -> 16.73 GB
  objects        1948 -> 10365
  kwin_wayland   holds 8484 MB in 4894 objects free RAM       4.9 of 31 GB - we have to reboot today

It tracks rendering, not uptime. Idle nights (02:00-07:00) in this same boot:

  22 Aug  -0.03 GB       25 Aug  +0.00 GB
  23 Aug  +0.02 GB       26 Aug  +0.04 GB
  24 Aug  +1.88 GB   <- the one night an automated GUI test run was active

Quoted 5 lines

The surface warning still fires: 1168 WARNING blocks at vmw_surface_handle_reference in the last 27 hours. That is a window, not a total - journald has already rotated away the earlier part of this boot.

Correction to my previous mail: "four times during session startup" was wrong. It fires in bursts throughout the session.

We have not tried "drm/vmwgfx: Return gem fd handle for scanout buffers" we run distribution kernels here. Say the word and we will build it.

Yes please, can you go ahead and try that patch, it fixes some errors on kde and might fix this issue you are facing too.

Quoted 16 lines

Best regards,
Jellis

Op 21-08-2026 om 04:09 schreef Maaz Mombasawala:

Quoted 9 lines

For the 3D-enabled case, could you try with mesa 26.1.8 or 26.2.1, both of which contain my fix. Also if you could try the patch I just submitted on dri-devel - drm/vmwgfx: Return gem fd handle for scanout buffers. If you still see issues with these patches, let me know.

As for the 3D disabled case, I can see issues on my local machine and am working on a fix.

PS - Your emails are overly verbose and narrative, could you include only the actual problems you are facing. If you're using an llm to write these, please make them more terse and human readable. Thanks.

#10 lore raw

More data:

Now from vmwgfx_gem_info (3h uptime, KDE Wayland, three 1920x1080 outputs):

kwin_wayland 18.5 GB 4054 objects 2068 of them >= 1920x1080x4
plasmashell 1.0 GB 3383 objects 105
Xwayland 33 MB 18 objects 3

kwin's GEM total and GPUActive rise together (+0.13 vs +0.10 GB over the same 5 min), and 570 of its objects are down to a single GEM ref. Growth is bursty and tracks render activity, not uptime.

Your patch did fix its own target: zero gem_close errors this boot.

One thing that may be worth a look: mesa 26.2.1 (libgallium) logs

Failed referencing shared surface. SID <n>
Error -22

572 times this boot, across 123 distinct surface IDs, 402 of them in the hour with five RDP sessions open. I can't tell you whether that is new the pre-patch boot had too little comparable activity to compare against.

Op 27-08-2026 om 15:39 schreef Jellis Onsea | AccessWeb:

Quoted 65 lines

Tried the scanout patch on kernel 7.2.0. Confirmed running:
[drm] Initialized vmwgfx 2.22.0.

No change here. GPUActive from /proc/meminfo:

    5 RDP sessions, 39 min open:   0.70 -> 3.97 GB then 42 min at zero sessions:  3.92 -> 4.73 GB

Not a single sample went down. Same as on 2.21.

It also keeps growing with zero sessions and small usage of the machine, so RDP is a good trigger, not the only one.

Build details if useful: distribution kernel (CachyOS 7.2.0-1), vmwgfx built out-of-tree from the matching source with clang 22.1.8, no LTO.

Regards,

Jellis

Op 27-08-2026 om 03:01 schreef Maaz Mombasawala:

Quoted 43 lines · Jellis Onsea | AccessWeb
Quoted 17 lines

Hi Maaz,

Short version: mesa 26.2.1 is running here with 3D on, and the leak is still there.

Setup: one boot, 119 h, a single kwin_wayland (6.7.4), mesa 3:26.2.1-1, kernel 7.2.0, renderer SVGA3D.

   TTM sys+mob    0.36 -> 16.73 GB
   objects        1948 -> 10365
   kwin_wayland   holds 8484 MB in 4894 objects free RAM       4.9 of 31 GB - we have to reboot today

It tracks rendering, not uptime. Idle nights (02:00-07:00) in this same boot:

   22 Aug  -0.03 GB       25 Aug  +0.00 GB
   23 Aug  +0.02 GB       26 Aug  +0.04 GB
   24 Aug  +1.88 GB   <- the one night an automated GUI test run was active

Quoted 5 lines

The surface warning still fires: 1168 WARNING blocks at vmw_surface_handle_reference in the last 27 hours. That is a window, not a total - journald has already rotated away the earlier part of this boot.

Correction to my previous mail: "four times during session startup" was wrong. It fires in bursts throughout the session.

We have not tried "drm/vmwgfx: Return gem fd handle for scanout buffers" we run distribution kernels here. Say the word and we will build it.

Yes please, can you go ahead and try that patch, it fixes some errors on kde and might fix this issue you are facing too.

Quoted 16 lines

Best regards,
Jellis

Op 21-08-2026 om 04:09 schreef Maaz Mombasawala:

Quoted 9 lines

For the 3D-enabled case, could you try with mesa 26.1.8 or 26.2.1, both of which contain my fix. Also if you could try the patch I just submitted on dri-devel - drm/ vmwgfx: Return gem fd handle for scanout buffers. If you still see issues with these patches, let me know.

As for the 3D disabled case, I can see issues on my local machine and am working on a fix.

PS - Your emails are overly verbose and narrative, could you include only the actual problems you are facing. If you're using an llm to write these, please make them more terse and human readable. Thanks.