Announcement

Collapse
No announcement yet.

kded4 memory leak and CPU hog

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    kded4 memory leak and CPU hog

    Since recently, about a week maybe, kded4 seems to have a memory leak.
    Immediately after booting up it runs in about 23Mb of memory but this grows to around 700Mb of RAM 12 hrs. later, by that time it can use up to 50% of CPU power.

    When I kill the service the memory becomes available again but then I'm loosing some things like the hot keys.

    I see several reports of such errors but they are mostly over a year old and without finding a remedy.

    Any ideas how to tackle this?

    #2
    Re: kded4 memory leak and CPU hog

    Please run System Monitor (ksysguard) to check kded4 memory usage. Here's an example:
    http://www.youtube.com/v/6vKNFLYXSG8?fs=1
    ASROCK Z87 Pro4 - i5 4670K - R9 270x ☞ Triple Boot: KDE NEON ★ Windows 10 ★ Windows 7

    Comment


      #3
      Re: kded4 memory leak and CPU hog

      That's how I got the numbers in the OP
      Press CTRL+ESC

      Comment


        #4
        Re: kded4 memory leak and CPU hog

        I had seen this once or twice in the past few months, maybe. But not recently. never found what caused it. This was 4.6 in Natty though.

        kded4 manages or uses a fair number of services or modules, including some things in system settings. Finding which thing is causing it may be difficult. Some application or service is acting up, but which one

        Comment


          #5
          Re: kded4 memory leak and CPU hog

          Originally posted by Teunis
          That's how I got the numbers in the OP
          Press CTRL+ESC
          Great could you please post the detailed memory info here especially library usage.
          ASROCK Z87 Pro4 - i5 4670K - R9 270x ☞ Triple Boot: KDE NEON ★ Windows 10 ★ Windows 7

          Comment


            #6
            Re: kded4 memory leak and CPU hog

            Code:
            Process 9556 - kded4
            
            Summary
            
            The process kded4 (with pid 9556) is using approximately 116.1 MB of memory.
            It is using 115.2 MB privately, and a further 9.3 MB that is, or could be, shared with other programs.
            Dividing up the shared memory between all the processes sharing that memory we get a reduced shared memory usage of 952.0 KB. Adding that to the private usage, we get the above mentioned total memory footprint of 116.1 MB.
            Library Usage
            
            The memory usage of a process is found by adding up the memory usage of each of its libraries, plus the process's own heap, stack and any other mappings, plus the stack of its 4 threads. 
            Private
            more
            97072 KB	[heap]
            16264 KB	/usr/lib/nvidia-current/libnvidia-glcore.so.260.19.06
            708 KB	/usr/lib/libQtWebKit.so.4.7.0
            492 KB	/usr/lib/nvidia-current/libGL.so.260.19.06
            188 KB	/usr/lib/libkdeui.so.5.6.0
            Shared
            more
            1200 KB	/usr/lib/libQtGui.so.4.7.0
            1008 KB	/usr/lib/libQtCore.so.4.7.0
            944 KB	/usr/lib/libkdecore.so.5.6.0
            876 KB	/usr/lib/libkdeui.so.5.6.0
            636 KB	/lib/libc-2.12.1.so
            Totals
            
            Private	117928 KB	(= 1024 KB clean + 116904 KB dirty)
            Shared	9524 KB	(= 9524 KB clean + 0 KB dirty)
            Rss	127452 KB	(= Private + Shared)
            Pss	118880 KB	(= Private + Shared/Number of Processes)
            Swap	0 KB
            That's after about an hour and a half of running, starting off at about 23 ,000 KB

            Comment


              #7
              Re: kded4 memory leak and CPU hog

              There are several different things you can try to fix the issue, go through each of them one by one until you find the solution
              [list type=decimal][*]Set the compositing type to xrender[*]Disable nepomuk: http://ubuntuku.org/16/how-to-disable-nepomuk-akonadi/[*]Upgrade to latest KDE version[*]Upgrade your nvidia driver: https://help.ubuntu.com/community/Bi...erHowto/Nvidia.[/list]
              ASROCK Z87 Pro4 - i5 4670K - R9 270x ☞ Triple Boot: KDE NEON ★ Windows 10 ★ Windows 7

              Comment


                #8
                Re: kded4 memory leak and CPU hog

                Thanks for the ideas Ubuntuku

                I've just updated the nVidea driver, completely disabled nepomuk and am trying the xrender option.

                But first indications are there is still memory being lost.
                Now it's well past bed time...

                Comment


                  #9
                  Re: kded4 memory leak and CPU hog

                  Overnight I left the computer on.
                  This morning kded4 was using occupying some 700MB of RAM.
                  And it's not at all clear which specific service is the culprit.

                  I downloaded and ran the Live CD of 11.04 (64bit) and found it has the same behaviour, kded4 just keeps growing.
                  They do have KDE4.6 in common...

                  Comment

                  Users Viewing This Topic

                  Collapse

                  There are 0 users viewing this topic.

                  Working...
                  X