Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
memory leak in gnome-shell on my system... for others too?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 117
Location: above the flames and the ashes

PostPosted: Fri Jul 08, 2011 3:49 pm    Post subject: memory leak in gnome-shell on my system... for others too? Reply with quote

Have others observed a memory leak with gnome-shell?

I ran the following script upon logging in to Gnome, running from another tty (ALT+CTRL+F1) then came back to my graphical X running on tty8 and just let the mouse sit there idle. I stopped collecting data after 45 min as you can see in the graphic. On my system, gnome-shell clearly "leaks" memory at a rate of ~2 MB/min. Here is the script I wrote to simply makes two columns in a logfile, one for gnome-shell's mem RSS and the second for a simple time stamp. You can graph it if you want but just inspecting the raw data shows a clear trend!

http://img638.imageshack.us/img638/825/idlel.png

Code:
#!/bin/bash
for i in {1..6000}; do
    number=$(ps -A --sort -rss -o comm,rss | head -n 3 | grep gnome-shell | awk '{ print $2 }')
    correct=$(echo "scale=2;$number/1024" | bc)
    echo "$correct $i" >> /dev/shm/mem_usage.txt
    sleep 60s
done


As I said in the first paragraph, I'm looking for some others to confirm this behavior on their own systems via this method. Please post in this thread with your results to inform a bugreport to upstream.

Thanks!
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Mon Jul 11, 2011 7:11 pm    Post subject: Reply with quote

Moved from Desktop Environments to Unsupported Software.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
elisiano
n00b
n00b


Joined: 03 Oct 2011
Posts: 3

PostPosted: Tue Nov 15, 2011 11:59 am    Post subject: Re: memory leak in gnome-shell on my system... for others to Reply with quote

graysky wrote:
Have others observed a memory leak with gnome-shell?

I ran the following script upon logging in to Gnome, running from another tty (ALT+CTRL+F1) then came back to my graphical X running on tty8 and just let the mouse sit there idle. I stopped collecting data after 45 min as you can see in the graphic. On my system, gnome-shell clearly "leaks" memory at a rate of ~2 MB/min. Here is the script I wrote to simply makes two columns in a logfile, one for gnome-shell's mem RSS and the second for a simple time stamp. You can graph it if you want but just inspecting the raw data shows a clear trend!

http://img638.imageshack.us/img638/825/idlel.png

Code:
#!/bin/bash
for i in {1..6000}; do
    number=$(ps -A --sort -rss -o comm,rss | head -n 3 | grep gnome-shell | awk '{ print $2 }')
    correct=$(echo "scale=2;$number/1024" | bc)
    echo "$correct $i" >> /dev/shm/mem_usage.txt
    sleep 60s
done


As I said in the first paragraph, I'm looking for some others to confirm this behavior on their own systems via this method. Please post in this thread with your results to inform a bugreport to upstream.

Thanks!



Hi graysky,
despite I didn't measure like you did, I notice a leakage as well!
Sometimes it gets so bad that it responds to actions literally with seconds of delay. The maximum I saw, gnome-shell was using 4.5 GB of memory.

Normally killing the process brings things back to normal, but there is something wrong in all of that :)

This behavior is present in both my systems (desktop and laptop). Both x86_64 architectures, I don't know if this is present also on 32 bits.

Cheers, Elisiano
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum