当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 9 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : Ubuntu 10.04 X.org內存洩漏bug报告
帖子发表于 : 2010-04-25 19:05 

注册: 2007-05-25 5:59
帖子: 14
地址: Danmark
送出感谢: 0 次
接收感谢: 0 次
原文在此,
https://bugs.launchpad.net/ubuntu/+sour ... bug/565981
详细报告在下,关键内容已用红色标明,
[Problem]
Memory leak. Fix to glx 1.4 backport did not deallocate gem objects properly.

[Background]
Red Hat backported glx 1.3 and 1.4 support from xserver 1.8. These patches were taken by Debian as patches 03_fedora_glx_versioning.diff and 04_fedora_glx14-swrast.diff, and so Ubuntu took them in order to remain in sync with Debian. Other distros using xserver 1.7 have likewise adopted these backports.

Subsequent testing by Ubuntu identified an xserver crash that occurs with these patches enabled when closing Clutter apps. A partial fix was implemented in Ubuntu based on upstream work, and the issue believed solved, but further testing has shown that a slow memory leak is present, causing issues such as described below, which can result in system instability after a day or two of uptime (depending on memory quantity and usage). Distros that don't include support for Clutter obviously won't see the bugs.

Following these findings, Debian has dropped the glx patches. Ubuntu is evaluating fixing the patches vs. following Debian's approach, being mindful of any userspace apps that may have come to depend on glx 1.3/1.4 functionality.

[Original Report]
There has been some buzz the last days about excessive swapping and OOM conditions. It can seem like the kernel memory use is increasing since the user processes seem not to grow unusually.

/sys/kernel/debug/dri/0/gem_objects shows that the GEM object bytes number is increasing. One way to reproduce, is this:

$ for t in `seq 1 10`; do eog /usr/share/backgrounds ; echo `grep "object bytes" /sys/kernel/debug/dri/0/gem_objects` `ps --noheaders ocomm,vsz,rss $(pidof X)`; done
142376960 object bytes Xorg 25812 15372
145907712 object bytes Xorg 25812 15372
150458368 object bytes Xorg 25812 15372
154816512 object bytes Xorg 25812 15372
159244288 object bytes Xorg 25812 15372
163721216 object bytes Xorg 25812 15372
168148992 object bytes Xorg 25812 15372
172699648 object bytes Xorg 25812 15372
177152000 object bytes Xorg 25812 15372
181530624 object bytes Xorg 25812 15372

It shows that the Xorg process is not growing, but gem objects are. Similarly counting and summing objects show there are gem objects adding up (with refcount 2) but not disappearing again when the application closes:
awk '/name/{ i++; s+= $4 } END{print i " " s}' /sys/kernel/debug/dri/0/gem_names

These issues have been seen on intel and ati, with the lucid kernel as well as the mainline 2.6.34 snapshot.


ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: xorg 1:7.5+5ubuntu1
Uname: Linux 2.6.34-999-generic i686
Architecture: i386
Date: Sun Apr 18 15:59:21 2010
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: xorg
system:
distro: Ubuntu
codename: lucid
architecture: i686
kernel: 2.6.34-999-generic

报告显示只有使用了glx的显卡驱动才会出现该内存泄漏问题,而intel和ati的驱动则没有出现这个问题。


页首
 用户资料  
 
2 楼 
 文章标题 : Re: Ubuntu 10.04 X.org內存洩漏bug报告
帖子发表于 : 2010-04-25 19:09 
头像

注册: 2008-11-01 20:43
帖子: 17328
系统: 自动检测比较好
送出感谢: 44
接收感谢: 11
不关心!


_________________
谁是我?KL.Uiq8 YinMeng


页首
 用户资料  
 
3 楼 
 文章标题 : Re: Ubuntu 10.04 X.org內存洩漏bug报告
帖子发表于 : 2010-04-25 19:09 
头像

注册: 2008-11-21 20:26
帖子: 36913
送出感谢: 1
接收感谢: 36
LZ煋了


_________________
讨厌我的人可以试着点一下
浏览全部ubuntu技巧


页首
 用户资料  
 
4 楼 
 文章标题 : Re: Ubuntu 10.04 X.org內存洩漏bug报告
帖子发表于 : 2010-04-25 19:50 
头像

注册: 2010-04-06 15:57
帖子: 80
送出感谢: 0 次
接收感谢: 0 次
我发现我的CPU有时莫名其妙的高,什么都没做,占用率90+,郁闷


页首
 用户资料  
 
5 楼 
 文章标题 : Re: Ubuntu 10.04 X.org內存洩漏bug报告
帖子发表于 : 2010-04-26 23:41 

注册: 2005-09-13 4:56
帖子: 1015
系统: Ubuntu QQ
送出感谢: 0 次
接收感谢: 38
我也感觉我这儿的内存泄漏没有解决,虽然ubuntu号称fix了


_________________
添加ppa后只更新此ppa:
update-ppa()
{ sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/$1.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
}
写入~/.bashrc,source一下,就可以直接用,是不是很方便?觉得方便就按个赞。


页首
 用户资料  
 
6 楼 
 文章标题 : Re: Ubuntu 10.04 X.org內存洩漏bug报告
帖子发表于 : 2010-04-26 23:47 

注册: 2008-06-23 14:42
帖子: 308
送出感谢: 0 次
接收感谢: 0 次
funicorn 写道:
我也感觉我这儿的内存泄漏没有解决,虽然ubuntu号称fix了


人开发组为此忙了好一阵,结果似乎跟咱的还不是一档子事儿


页首
 用户资料  
 
7 楼 
 文章标题 : Re: Ubuntu 10.04 X.org內存洩漏bug报告
帖子发表于 : 2010-04-27 11:00 
头像

注册: 2009-04-03 16:06
帖子: 547
送出感谢: 1
接收感谢: 2
非常郁闷ing,难得发现fglrx这么流畅,竟然内存泄漏 :em21


页首
 用户资料  
 
8 楼 
 文章标题 : Re: Ubuntu 10.04 X.org內存洩漏bug报告
帖子发表于 : 2010-04-28 11:45 

注册: 2008-01-02 20:40
帖子: 8
送出感谢: 0 次
接收感谢: 0 次
希望早点修复吧


页首
 用户资料  
 
9 楼 
 文章标题 : Re: Ubuntu 10.04 X.org內存洩漏bug报告
帖子发表于 : 2010-04-28 11:55 
头像

注册: 2007-02-27 21:47
帖子: 1486
地址: NN
送出感谢: 2
接收感谢: 0 次
译错了吧,These issues have been seen on intel and ati, with the lucid kernel as well as the mainline 2.6.34 snapshot. 在intel和ati都有这个问题,而不是说“而intel和ati的驱动则没有出现这个问题” :em06


_________________
Core i5, 512G + SSD 20G, DDRIII 8G


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 9 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译