You are not logged in.

#1 2010-09-09 07:01:50

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

X using over 1 gig RAM after viewing images

I open a folder with 5,630 images in it in Dolphin, with thumbnails on.  X spikes up to 1200M virt, 900 real.  Close dolphin, X's memory usage is unaffected.  Reopen folder, and now those figures are roughly doubled:

Jk1lj.png

I just -Syu-ed about an hour ago.  I first noticed this problem a week or two ago, but it had been some time since I opened this folder, so it could potentially have been latent for quite some time.

I'm not quite sure where I should be investigating (X? slim? dolphin?), so any hints of that sort would be much appreciated.  Of course, any information about the problem itself is, too. wink

Offline

#2 2010-09-09 07:07:50

Ogion
Member
From: Germany
Registered: 2007-12-11
Posts: 367

Re: X using over 1 gig RAM after viewing images

Neither being a solution nor an idea about what exactly is the problem. But, maybe you can turn off thumbnails or something for the time being to keep this from happening.

Ogion


(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant

Offline

#3 2010-09-09 07:21:47

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

Re: X using over 1 gig RAM after viewing images

Ogion wrote:

Neither being a solution nor an idea about what exactly is the problem. But, maybe you can turn off thumbnails or something for the time being to keep this from happening.

Well, yes, that will solve the immediate problem.  I would like to be able to use them, though, since it's difficult enough to find something in a folder that size *with* thumbs.

Offline

#4 2010-09-09 09:43:49

o1911
Member
From: Hobart, Australia
Registered: 2009-04-28
Posts: 106

Re: X using over 1 gig RAM after viewing images

Out of interest, what graphics card and drivers are you using?  I could be wrong, but I've only even seen Xorg stay sensible with open source drivers.  Both my proprietary nvidia and ati drivers make Xorg bloat significantly over time.


Arch x86_64

Offline

#5 2010-09-09 11:42:42

gorky
Member
From: Kraków, Poland
Registered: 2010-07-05
Posts: 96

Re: X using over 1 gig RAM after viewing images

For me it's almost certainly a bug in Dolphin. I suggest filing a bug report.

Xiong Chiamiov wrote:

I would like to be able to use them, though, since it's difficult enough to find something in a folder that size *with* thumbs.

Well, this seems to be rather a file management problem smile Have you ever considered splitting this catalog or using a photo management application?

Offline

#6 2010-09-10 10:04:41

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

Re: X using over 1 gig RAM after viewing images

o1911 wrote:

Out of interest, what graphics card and drivers are you using?  I could be wrong, but I've only even seen Xorg stay sensible with open source drivers.  Both my proprietary nvidia and ati drivers make Xorg bloat significantly over time.

I'm using the proprietary nvidia drivers.

gorky wrote:

For me it's almost certainly a bug in Dolphin. I suggest filing a bug report.

I have done so.

Xiong Chiamiov wrote:

I would like to be able to use them, though, since it's difficult enough to find something in a folder that size *with* thumbs.

Well, this seems to be rather a file management problem smile Have you ever considered splitting this catalog or using a photo management application?

They are all images from an imageboard, and don't gracefully fit into directories (would a picture of Azunyan go under "twin tails" or "K-On!"?).  What I need is a way of attaching lots of metadeta tags to the images and browsing by them.  I'm considering writing a FUSE driver that does so, along with perhaps some syncing with the site and other miscellanous stuff, but if you have any suggestions, I'm glad to take them.

Offline

#7 2010-09-10 12:27:16

gorky
Member
From: Kraków, Poland
Registered: 2010-07-05
Posts: 96

Re: X using over 1 gig RAM after viewing images

Xiong Chiamiov wrote:

What I need is a way of attaching lots of metadeta tags to the images and browsing by them.

So it sounds exactly like you should try a photo management application with good tag support smile
Finding one is is not so easy, though: https://bbs.archlinux.org/viewtopic.php?id=103846

However if you already use KDE, you should be very happy with DigiKam - it has certainly the best tag support I've seen in opensource applications.

Last edited by gorky (2010-09-10 12:28:12)

Offline

#8 2010-09-11 22:43:40

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

Re: X using over 1 gig RAM after viewing images

gorky wrote:

However if you already use KDE, you should be very happy with DigiKam - it has certainly the best tag support I've seen in opensource applications.

I'm an awesome user, but I use quite a few KDE applications, so I suppose I'm a KDE user who just doesn't use kwin.  Digikam looks quite awesome, thanks!

Offline

#9 2010-09-11 23:47:32

gorky
Member
From: Kraków, Poland
Registered: 2010-07-05
Posts: 96

Re: X using over 1 gig RAM after viewing images

no problem smile

In fact currently there is no application that comes even close to Digikam when it comes to tagging (I was said that KPhotoAlbum can manage to do it, but I feel lost in its UI).

But if one day you'll come into idea of getting rid of kdelibs - take a look at shotwell.
By now it has a little fraction of digikam's features - especially it cannot search by more than one tag - but it is being developed quite fast and looks very promising.

Offline

#10 2010-09-12 01:16:52

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: X using over 1 gig RAM after viewing images

Download a tool called "xrestop" and run it to see where X resources are allocated. Some process must be allocating these resources and doesn't free them after use.

Offline

#11 2010-09-14 02:13:54

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

Re: X using over 1 gig RAM after viewing images

(Apologies for the Fooly Cooly in the background - I didn't think to turn off terminal transparency until too late.)

After just starting up dolphin.
EE6oQ.png

After enabling thumbnail previews and waiting for memory use to stabilize.
I1EPo.png

xrestop's batch mode, at the same time.
xbGj2.png

xrestop after closing dolphin
HnLOi.png

free after closing dolphin.
bbpHp.png

It appears to me that xrestop definitely attributes the memory usage to dolphin, and shows nothing using that memory afterwards (but it's not available to the system).  This is my first encounter with xrestop, however, so I may be interpreting this miscorrectly.

I'm cross-posting this to the issue.

Offline

#12 2010-09-14 13:45:21

MadCat_X
Member
Registered: 2009-10-08
Posts: 189

Re: X using over 1 gig RAM after viewing images

If you're using Oxygen as the theme for KDE apps, you might find this of help.

Offline

#13 2010-09-14 14:17:48

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: X using over 1 gig RAM after viewing images

You also have to be real careful about reading too much into what various tools report as memory usage. Linux is real good about letting apps have memory if it is there and taking it back when necessary.  The main thing would be to avoid "thrashing" by making sure swap isn't being used. You "only" have 2gb, so it might get used a bit, but just because something is reporting a high memory usage, as long as the disk isn't thrashing because everything is swapping to disk, you should be okay.

Offline

#14 2010-09-14 18:31:37

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

Re: X using over 1 gig RAM after viewing images

As you can see by my last screenshot, no swap was being used.  I generally run at about 1 GB real used, with firefox being mostly responsible for that.

The issue is not with high memory usage; I expect that.  Rather, the memory used never gets reclaimed (and I ended up thrashing the disk continuously, which isn't fun).

Looking into those test builds of Oxygen now.

Edit:

Well, the 4.5.2 build of Oxygen didn't screw anything up, and it does seem to increase scrolling performance.  No luck on the memory-leaking front, though. hmm  I also tried changing themes, and that didn't seem to help, either.

Last edited by Xiong Chiamiov (2010-09-14 19:21:18)

Offline

Board footer

Powered by FluxBB