Intel graphics memory leak, and a possible solution

You think you have found a bug? Let us know about it.
Post Reply
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

Intel graphics memory leak, and a possible solution

Post by GJones »

With the current Slackware kernel (2.6.37.6), certain OpenGL programs will leak huge amounts of memory, quickly overrunning both RAM and swap. This doesn't happen with other kernels or other video chipsets, and can be reproduced quite reliably.

I banged my head against this for a while, and was considering a distro switch, until I stumbled across a simple and entirely unintuitive solution - booting with the 'noapic' kernel parameter. This eliminated the memory leakage entirely as far as I could tell.

I have no idea why this is; usually (in my experience) the need for noapic is signified by random freezes or kernel panics. If I had to guess, I'd say maybe there's something buggy in this kernel about the handling of interrupts from the video hardware; but really I'm talking off the top of my head here. Anyway, the point is it works for some reason; so if any of you have been having issues with 3D on this kernel and Intel chipsets, it's something you might want to try, even if your machine doesn't officially require noapic.

(NB: I'm not sure how big the performance impact of noapic is. Since IIRC it routes all IO interrupts to one core, I suspect the impact would increase quickly with the number of cores.)
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: Intel graphics memory leak, and a possible solution

Post by gapan »

This is strange. I only have intel graphics cards and I've seen nothing like this. Also, nobody else reported anything similar here or in slackware.
Image
Image
User avatar
Tim CowChip
Posts: 304
Joined: 27. May 2011, 03:35
Location: Cascade Locks, OR

Re: Intel graphics memory leak, and a possible solution

Post by Tim CowChip »

GJones wrote: This doesn't happen with other kernels
There is another kernel you can try.
ImageImage
Post Reply