NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wired memory leak?



Luis Falcon <falcon%gnuhealth.org@localhost> writes:

> Hi, Greg
> On Sat, Nov 07, 2026 at 12:49:58PM -0500, Greg Troxel wrote:
>> BLUF: Setting "AccelMethod UXA" in xorg.conf avoids wired page leaks.
>> 
> Thanks for the update. I suppose is a combination of several factors.
>
> I don't have that option enabled, yet I have not experienced the wired
> memory leak issue. Xorg detects / uses Radeon driver. 

I realized that while "AccelMethod UXA" avoids the leak, there's
confusion underneath that.  UXA is a method for the Intel driver, vs SNA
that's newer but in theory not 100% baked.  The modesetting driver has
only one acceleration method, "glamor" (or none), and glamor is default.

So, if you ask for "UXA" in modesetting, that's an error, but the result
is
  [   181.339] (**) modeset(0): glamor disabled
so it's really interpreted as "choose accelmethod none, which disables
glamor"

With UHD 630, modesetting, and glamor disabled, I have no leak.  Wired
memory increased on starting X and has remained within 12198 to 12285
pages, over 4 days with firefox usage.

Looking at all the data in this thread, my current working belief, not
rigorously checked, is that for the leak to manifest you need:

  Intel graphics chip
  NetBSD 11, not NetBSD 10
  modesetting driver
  glamor enabled

and with that, the following chipsets are known to lead to leaks:

  Intel Haswell Integrated Graphics Device [he]
  Intel UHD Graphics 630 [gdt bouyer/intel?]
  Intel Ice Lake GT1 (perhaps "UHD Graphics G1") [RVP]

and the following seem not to leak:

  Intel HD Graphics 620 (GT2) [bouyer/intel?]
  Radeon 5450 [rhialto]
  Radeon ? [falcon]

Reports of leaking behavior, not clearly the same thing and not clearly
not the same thing (there could be two bugs):

  Ryzen 2400G [patrickgunsolley, unclear which driver]
  AMD A6 [patrickgunsolley, unclear which driver]


However, I'm unclear on if bouyer@ has shown the leak with the intel
driver (I get it that it's very hard to keep track of the twisty maze of
components) or shown not-leaking with modesetting (laptop).

Of course, the 


This is useful but hard to fully grasp:

  https://en.wikipedia.org/wiki/Intel_Graphics_Technology

My system is an i7-9700 "Intel 7th or 8th gen Core (Kaby Lake, Coffee
Lake)" (a 2019 Dell) and dmesg:
  i915drmkms0 at pci0 dev 2 function 0: Intel UHD Graphics 630 (rev. 0x02)

I think my UHD 630 is "Gen 9.5" and RVP's is Gen11.


Home | Main Index | Thread Index | Old Index