[Digikam-devel] [Bug 131277] Memory leak in image editor

Rainer Krienke krienke at uni-koblenz.de
Mon Jul 24 12:38:05 BST 2006


Am Montag, 24. Juli 2006 11:25 schrieb glaurent at telegraph-road.org:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=131277
>
>
>
>
> ------- Additional Comments From glaurent telegraph-road org  2006-07-24
> 11:25 ------- krienke : 'free' won't tell you anything useful about this
> problem. The fact that swap space is not recovered is perfectly normal, it
> won't be until the processes that have been swapped on disk are swapped
> back into memory. The only thing you should look at is the size of the
> digikam process while it's running.

You are right processes are beeing swapped out, but since I did not start any new 
processes during my tests (except for digikam itself) the swap space should only 
grow when digikam is started for the first time. However I can repeat this behaviour. So if I 
terminate digikam then start it again and look at the very same photos then 
terminate digikam and start it again etc... then swap space usage is increasing 
with each try. This is not normal. Here is a sequence of free calls after I terminated 
digikam. After the free call I restarted it and looked at the very same photos again. 
All in all I did this 10 times (see numbers I added). And after the 10th try the system used 1.4GB swap whereas 
it had no swap usage initially. Below you can see how swap  usage is increasing 
each time I restarted digikam and looked at the photos:

1                   total       used       free     shared    buffers     cached
Mem:          1012        796        215          0         45        519
-/+ buffers/cache:        231        780
Swap:            0          0          0
[krienke at bliss:~] 619 > free -m
 2                  total       used       free     shared    buffers     cached
Mem:          1012        856        156          0          5        538
-/+ buffers/cache:        312        699
Swap:         2055          0       2055
[krienke at bliss:~] 619 > free -m
3                   total       used       free     shared    buffers     cached
Mem:          1012        718        293          0          4        351
-/+ buffers/cache:        363        649
Swap:         2055        251       1803
[krienke at bliss:~] 619 > free -m
4                    total       used       free     shared    buffers     cached
Mem:          1012        591        420          0          5        363
-/+ buffers/cache:        222        789
Swap:         2055        363       1691
[krienke at bliss:~] 619 > free -m
5                    total       used       free     shared    buffers     cached
Mem:          1012        647        364          0          3        362
-/+ buffers/cache:        282        729
Swap:         2055        538       1516
[krienke at bliss:~] 619 > free -m
6                    total       used       free     shared    buffers     cached
Mem:          1012        541        470          0          2        304
-/+ buffers/cache:        235        776
Swap:         2055        692       1362
[krienke at bliss:~] 619 > free -m
7                    total       used       free     shared    buffers     cached
Mem:          1012        530        481          0          1        256
-/+ buffers/cache:        272        740
Swap:         2055        927       1127
[krienke at bliss:~] 619 > free -m
8                    total       used       free     shared    buffers     cached
Mem:          1012        507        504          0          1        246
-/+ buffers/cache:        259        752
Swap:         2055       1117        937
[krienke at bliss:~] 619 > free -m
 9                   total       used       free     shared    buffers     cached
Mem:          1012        590        422          0          1        335
-/+ buffers/cache:        252        759
Swap:         2055       1229        825
[krienke at bliss:~] 619 > free -m
10                    total       used       free     shared    buffers     cached
Mem:          1012        557        454          0          2        270
-/+ buffers/cache:        285        726
Swap:         2055       1485        569
[krienke at bliss:~] 619 >   


Next I terminated my KDE session and kdm as well and restarted it and logged in again. 
The swap space was still used. This should not happen as I think.  
Am I the only one having this behaviour?

Thanks
Rainer
-- 

---------------------------------------------------------------------------
Rainer Krienke, Universitaet Koblenz, Rechenzentrum, Raum A022
Universitaetsstrasse 1, 56070 Koblenz, Tel: +49 261287 -1312, Fax: -1001312
Mail: krienke at uni-koblenz.de, Web: http://www.uni-koblenz.de/~krienke
Get my public PGP key: http://www.uni-koblenz.de/~krienke/mypgp.html
---------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20060724/ab8ee64f/attachment.sig>


More information about the Digikam-devel mailing list