← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 367377] Re: High load average, disk read, no apparent reason - 2.6.28-11

 

I'm confirming this. My restart X cycle happens at approximately once every 5 or 6 hours of usage. The symptoms are exactly as mentioned, but with an addition. /proc/dri/0/gem_objects shows a large number of GEM objects allocated, but the number of GEM objects does not really matter. What really matters is the memory consumption (the figure on the second line) of the GEM objects. When this hits approximately 2G, my system will almost slow to a halt. Starting or closing any application becomes a pain, and almost any action in particular can cause intense swapping to occur (I'm assuming that the large disk I/O is swapping, because iotop does not show anything). The kernel I am running is 2.6.30 rc5, from http://kernel.ubuntu.com/~kernel-ppa/mainline/. But that said, I don't believe this to be a kernel bug. If it was, I don't think restarting Xorg would cause all the cached memory (as shown in by free) to be freed up, as well as the swap. I've also found that the following patch to libdrm can slow down the memory leak issues considerably, but not stop it:
Index: drm-snapshot-2.4.11+git20090519.f355ad89/libdrm/intel/intel_bufmgr_gem.c
===================================================================
--- drm-snapshot-2.4.11+git20090519.f355ad89.orig/libdrm/intel/intel_bufmgr_gem.c	2009-05-20 14:56:16.000000000 +0800
+++ drm-snapshot-2.4.11+git20090519.f355ad89/libdrm/intel/intel_bufmgr_gem.c	2009-05-20 14:57:20.000000000 +0800
@@ -83,7 +83,7 @@
 /* Only cache objects up to 64MB.  Bigger than that, and the rounding of the
  * size makes many operations fail that wouldn't otherwise.
  */
-#define DRM_INTEL_GEM_BO_BUCKETS	14
+#define DRM_INTEL_GEM_BO_BUCKETS	0
 typedef struct _drm_intel_bufmgr_gem {
     drm_intel_bufmgr bufmgr;
 


** Changed in: xserver-xorg-video-intel (Ubuntu)
       Status: New => Confirmed

-- 
High load average, disk read, no apparent reason - 2.6.28-11
https://bugs.launchpad.net/bugs/367377
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-video-intel in ubuntu.