[RV515] Playing flash video causes memory hogging

Bug #563400 reported by Vish
This bug report is a duplicate of:  Bug #565981: [KMS] gem objects not deallocated. Edit Remove
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-ati

When Playing flash video for some time, i notice that the memory usage jumps and is very high.
The swap is also used up. And nearly 70-80% RAM and 50% of swap [total swap 3.39 GiB] gets used.
I have rarely ever noticed such high swap usage.

This happens only while playing flash videos in firefox or Chrome[ium]

Wasnt happening earlier , it is a regression

From #ubuntu-x
 <Sarvatt> vish: yeah I'm experiencing the same problem with intel right now, disabling BO reuse in driconf fixes it

 <Sarvatt> might end up having to default BO reuse to off

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: xserver-xorg-video-intel 2:2.9.1-3ubuntu3
ProcVersionSignature: Ubuntu 2.6.32-20.30-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-20-generic i686
Architecture: i386
CheckboxSubmission: a488dc8580a64da042cc99114e54d55a
CheckboxSystem: 5484a8dd99f006173bd2ac53fa4837c2
Date: Thu Apr 15 03:05:27 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20091209)
MachineType: Acer, inc. Aspire 5670
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-20-generic root=UUID=3e905623-5a65-47ef-a1d0-d8fba363d773 ro quiet splash
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: xserver-xorg-video-intel
dmi.bios.date: 01/12/07
dmi.bios.vendor: Acer
dmi.bios.version: v1.3239
dmi.board.name: Bodensee
dmi.board.vendor: Acer, Inc.
dmi.board.version: Not Applicable
dmi.chassis.type: 1
dmi.chassis.vendor: Acer, Inc.
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAcer:bvrv1.3239:bd01/12/07:svnAcer,inc.:pnAspire5670:pvrNotApplicable:rvnAcer,Inc.:rnBodensee:rvrNotApplicable:cvnAcer,Inc.:ct1:cvrN/A:
dmi.product.name: Aspire 5670
dmi.product.version: Not Applicable
dmi.sys.vendor: Acer, inc.
system:
 distro: Ubuntu
 codename: lucid
 architecture: i686
 kernel: 2.6.32-20-generic

01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon Mobility X1400 [1002:7145]
 Subsystem: Acer Incorporated [ALI] Device [1025:0094]

Revision history for this message
Vish (vish) wrote :
description: updated
tags: added: regression-potential
Vish (vish)
description: updated
Bryce Harrington (bryce)
Changed in xserver-xorg-video-intel (Ubuntu):
status: New → Confirmed
Revision history for this message
Dimmuxx (dimmuxx) wrote :

Workaround fixes it for me too.

Revision history for this message
Dimmuxx (dimmuxx) wrote :

It seems that turning off BO reuse just slows it's down but it still grows a lot.

Revision history for this message
Robert Hooker (sarvatt) wrote :

the BO reuse comment was in regards to intel, Vish has an ATI though.

affects: xserver-xorg-video-intel (Ubuntu) → xserver-xorg-video-ati (Ubuntu)
description: updated
summary: - Playing flash video causes memory hogging
+ [RV515] Playing flash video causes memory hogging
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-ati - 1:6.13.0-1ubuntu5

---------------
xserver-xorg-video-ati (1:6.13.0-1ubuntu5) lucid; urgency=low

  * Add 103_new_pci_ids.patch: Add support for newer ATI hardware. Adds
    PCI IDs for a number of RV7xx chips and one Redwood.
  * Revert recent performance enhancement work included in 6.13.0, as it
    appears to regress performance fairly severely in some circumstances
    such as using googleearth.
    (LP: #564181, #563400)
    + 0001-Revert-r600-exa-further-cleanup-use-the-object-struc.patch
    + 0002-Revert-r600-cleanup-wasteful-variables.patch
    + 0003-Revert-r600-reduce-function-call-overhead.patch
    + 0004-Revert-r6xx-EXA-fix-swapped-domains-in-kms-UTS.patch
    + 0005-Revert-r6xx-EXA-Xv-add-a-R600SetAccelState-function.patch
    + 0006-Revert-r6xx-EXA-always-use-a-temp-surface-for-overla.patch
    + 0007-Revert-r6xx-EXA-always-use-the-accel_state-state-in-.patch
    + 0008-Revert-r6xx-EXA-Xv-track-src-dst-domains.patch
 -- Bryce Harrington <email address hidden> Fri, 16 Apr 2010 15:20:49 -0700

Changed in xserver-xorg-video-ati (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Vish (vish) wrote :

I'm reopening this bug , since I still having the memory problem.

I'm not sure where the bug lies but will track it down [try to ;-) ]

Changed in xserver-xorg-video-ati (Ubuntu):
status: Fix Released → New
Revision history for this message
Tormod Volden (tormodvolden) wrote :

I do not know if the growing gem objects is the real issue, but I filed a bug 565981 for that. Note that I could reproduce the gem object growth also with xserver-xorg-video-ati 1:6.12.192-2ubuntu2.

Revision history for this message
Vish (vish) wrote :

I'm marking the bug as a dup of Bug 565981 , since i can confirm wgrant's comment #5 there ,downgrading does prevent the memory problem.

Revision history for this message
Roberto (rgs) wrote :

I commented on bug #565981 and people told me to fill a new bug (because it seems to be a different issue), so it seems that this is not a duplicate.

The "object bytes" count does not drop for me, it keeps growing and growing on fully updated Ubuntu 10.04 (no external repositories, no ppa, just plain Ubuntu installation). The 2GB of RAM and most swap gets full at around 5-7 days of uptime, swapping becomes extreme and must be rebooted. I have ATI radeon RV280, free driver, and KMS enabled.

Revision history for this message
Vish (vish) wrote :

@Roberto Gordo Saez : Yes, there is a memory leak somewhere when uptime is more than ~2 days , but when i filed this bug it was because the gem objects would *rapidly* increase when playing a flash video and not decrease after stopping a flash video. which does not happen now.

There is *still* a bug in the recent kernel , but the problem is no one knows where :(

I dont think there is even a bug both that[mostly since know no one really knows where the problem is ]. if you file a bug , kindly let us know as well :)

Revision history for this message
Roberto (rgs) wrote :

Ah, OK thanks. There are lots of similar bugs in the list, I added comments to several of them but I'm not sure if it is already there or not... I guess I should file a new bug report anyways but maybe later, I need the computer so I will "fix it" by downgrading to an old Ubuntu version for now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.