Bug 43751 - [TTM] Out of kernel memory
Summary: [TTM] Out of kernel memory
Status: RESOLVED OBSOLETE
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 14:18 UTC by Petr Grigoriev
Modified: 2013-04-24 21:06 UTC (History)
9 users (show)

See Also:
Kernel Version: 3.4.4
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
Config of working linux-3.7.4 (71.15 KB, text/plain)
2013-02-05 20:11 UTC, cyberbat
Details

Description Petr Grigoriev 2012-06-25 14:18:07 UTC
i5 8GB 8600gt_512MB nouveau
ubuntu 12.04 i386
vmware 8.0.4, kde, virtualbox 4.1.18, firefox, chrome, chromium, opera, dolphin, smplayer
after one-two hours in kernel 3.4.3, 3.4.4 "[TTM] Out of kernel memory", all windows switch slows down. In /var/log/system many messages in second "[TTM] Out of kernel memory"
on generic-pae 3.2.0-26.41 (3.2.19) all norm in three days running


may be vmware nouveau 3D bug: [TTM] Out of kernel memory?
Comment 1 Petr Grigoriev 2012-07-08 21:43:20 UTC
kde, firefox, chrome, chromium, opera,
dolphin, smplayer, vmware 8.0.4, virtualbox 4.1.18

latest updates.

after two-three hours computer slow down and big kernel error. in log tail 30 min many errors "[TTM] Out of kernel memory"
Comment 2 Petr Grigoriev 2012-07-08 21:44:19 UTC
degraded - on 3.2.21 all right, two days in too configuration work normally.
Comment 3 Petr Grigoriev 2012-07-22 19:24:26 UTC
on 3.2.23 all right
on 3.5 kernel  [TTM] Out of kernel memory
Comment 4 wmotti 2012-11-22 08:34:19 UTC
Same problem here with 3.6.6 kernel
Comment 5 Alexey Neyman 2012-12-20 07:24:37 UTC
Same issue here:

Also Nvidia 8600, on HP dv9700 laptop:

01:00.0 VGA compatible controller: NVIDIA Corporation G86 [GeForce 8600M GS] (rev a1)

The same problem easily reproduced by running easytag (GTK app) under KDE. Using Ubuntu 12.10, kernel 3.5.0.

There were no such issue with Ubuntu 12.04 (kernel 3.2.0).
Comment 6 ewhite 2013-01-21 04:48:13 UTC
after about two days of up-time, xorg goes to 100% cpu.  shortly thereafter  receive the following:
Jan 17 19:18:32 acan kernel: [TTM] Out of kernel memory
Jan 17 19:18:32 acan kernel: [TTM] Out of kernel memory
Jan 17 19:18:32 acan kernel: radeon 0000:0f:00.0: object_init failed for (8192, 0x00000006)
Jan 17 19:18:32 acan kernel: [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (8192, 4, 4096, -12)

this has occurred with both nvidia FX1800 w/nouveau driver and ati FMV2250.

0f:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI FireMV 2250 [1002:719b] (prog-if 00 [VGA controller])
        Subsystem: Advanced Micro Devices [AMD] nee ATI Device [1002:0602]
        Flags: bus master, fast devsel, latency 0, IRQ 24
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f5000000 (64-bit, non-prefetchable) [size=64K]
        I/O ports at e000 [size=256]
        [virtual] Expansion ROM at f5020000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Express Endpoint, MSI 00
        Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit+
        Kernel driver in use: radeon

system is HP Z600 w/2 x X5650 and 12GB memory.

Linux acan 3.4.11-2.16-desktop #1 SMP PREEMPT Wed Sep 26 17:05:00 UTC 2012 (259fc87) x86_64 x86_64 x86_64 GNU/Linux

distribution is opensuse 12.2.
Comment 7 am.devel 2013-01-23 17:02:02 UTC
Has this been resolved? I'm using 3.4.20 and I see this issue every time.
Comment 8 cyberbat 2013-02-03 19:43:52 UTC
I have just the same thing on 3.6.11 kernel:
Feb  3 06:54:27 cybernest kernel: [329369.962274] [TTM] Out of kernel memory
Feb  3 06:54:27 cybernest kernel: [329369.962279] radeon 0000:01:00.0: object_init failed for (4096, 0x00000002)
Feb  3 06:54:27 cybernest kernel: [329369.962281] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (4096, 2, 4096, -12)

I use xorg-server-1.13.1 (xf86-video-ati-7.0.0) and mesa-9.0.1. I can provide more info if needed.
Comment 9 cyberbat 2013-02-05 20:11:50 UTC
Created attachment 92571 [details]
Config of working linux-3.7.4

Tried a kernel 3.7.4 for some days and it seems to work with config attached.
Comment 10 cyberbat 2013-02-10 14:18:28 UTC
After a week uptime still have this error even on linux 3.7.4
Comment 11 Peter Barth 2013-02-19 21:55:39 UTC
I have the same problem with ati card (Radeon HD 6670):

...
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (4096, 6, 4096, -12)
[TTM] Out of kernel memory
[TTM] Out of kernel memory
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (4096, 6, 4096, -12)
...

This happened with 3.5.x, 3.6.x and currently with 3.7.6. Last known good state is kernel 3.2.13.

At some point the OOM-Killer kicks in, however, that does not help. I can kill any app, stop X and my displaymanager, stop mostly any service there is and that does not help.

/proc/meminfo shows (and that gets worse):
MemTotal:       32880920 kB
MemFree:          729688 kB
Buffers:             728 kB
Cached:         25403768 kB
SwapCached:            0 kB
Active:          3202980 kB
Inactive:       25110208 kB
Active(anon):    3178992 kB
Inactive(anon): 25065012 kB
Active(file):      23988 kB
Inactive(file):    45196 kB
...

sync ; echo 3 > /proc/sys/vm/drop_caches does not help. The memory is gone and at some point I have to restart to regain memory.

If that helps, userspace is: xf86-video-ati 7.0.0, mesa 9.0.1, xorg-server 1.13.1
Comment 12 Peter Barth 2013-02-28 19:08:52 UTC
Seems to be fixed for me with 3.8.0. No kernel-crash/reboot for 3 days, yay!
Comment 13 Jérôme Glisse 2013-03-21 20:54:35 UTC
Closing
Comment 14 John Paul Funk 2013-04-17 00:54:36 UTC
I'm running kernel 3.8.7 and still having this issue.  dmesg is full of these lines:

[126466.384749] [TTM] Out of kernel memory
[126466.384752] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (4096, 6, 4096, -12)

This problem started after updating Kubuntu 12.10 a few days ago.  Latest kernel does not fix the issue.
Comment 15 Jérôme Glisse 2013-04-24 19:12:04 UTC
This is a kwin bug, kwin select msaa visual which is problematic, there is also a fix in mesa git. In no case this is a kernel bug
Comment 16 Peter Barth 2013-04-24 21:06:27 UTC
I'll give mesa git a try and hope to be able to switch back to kwin soon. However, shouldn't the memory be freed after killing kwin and after shutting down xdm and so on? But that's not the case, the error resides.

Note You need to log in before you can comment on or make changes to this bug.