Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754280Ab0HYU7S (ORCPT ); Wed, 25 Aug 2010 16:59:18 -0400 Received: from waste.org ([173.11.57.241]:53584 "EHLO waste.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754239Ab0HYU7N (ORCPT ); Wed, 25 Aug 2010 16:59:13 -0400 Subject: DRM-related kmalloc-32 memory leak in 2.6.35 From: Matt Mackall To: Christoph Lameter , David Airlie Cc: David Rientjes , Pekka Enberg , Linux Mailing List In-Reply-To: References: <1282623994.10679.921.camel@calx> <1282663241.10679.958.camel@calx> Content-Type: text/plain; charset="UTF-8" Date: Wed, 25 Aug 2010 15:59:09 -0500 Message-ID: <1282769949.3007.7.camel@calx> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1999 Lines: 52 On Tue, 2010-08-24 at 10:37 -0500, Christoph Lameter wrote: > On Tue, 24 Aug 2010, Matt Mackall wrote: > > > kmalloc-32 1113344 1113344 32 128 1 : tunables 0 0 > > 0 : slabdata 8698 8698 0 > > > > That's /proc/slabinfo on my laptop with SLUB. It looks like my last > > reboot popped me back to 2.6.33 so it may also be old news, but I > > couldn't spot any reports with Google. > > Boot with "slub_debug" as a kernel parameter > > and then do a > > cat /sys/kernel/slab/kmalloc-32/alloc_calls > > to find the caller allocating the objets. Still present in 2.6.35. Appears to be DRM: 845 drm_vm_open_locked+0x72/0x109 age=43/37572/59269 pid=2089 cpus=0-1 That's after about a minute of uptime. Grows to 100k in about a day. dmesg bits: [ 0.834653] [drm] Initialized drm 1.1.0 20060810 [ 0.834986] pci 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [ 0.834995] pci 0000:00:02.0: setting latency timer to 64 [ 1.002572] mtrr: type mismatch for e0000000,10000000 old: write-back new: write-combining [ 1.002580] [drm] MTRR allocation failed. Graphics performance may suffer. [ 1.019880] acpi device:03: registered as cooling_device2 [ 1.021520] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input3 [ 1.021543] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no) [ 1.021855] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0 This is with: 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03) -- Mathematics is the supreme nostalgia of our time. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/