memory usage/leaks ?

Harald Koenig koenig at tat.physik.uni-tuebingen.de
Thu Sep 4 21:57:49 CEST 2008


On Sep 04, Holger Freyther wrote:

> > "gsmget" seems to be another candidate eingchecked for memory leaks:
> 
> gsmget is dead (not leaked to death though). With todays mornings merge to 
> asu.stable illume/e-wm will use dbus directly to get the information. So keep 
> an eye on the e process if it is leaking mem now.

good to know, thanks! and yes, you're right:

now it's enlightment which got so big that a fork/clone of enlightment fails, so I can't start any new apps from e.


root at om-gta02:~# uptime
 21:45:00 up 20:17,  2 users,  load average: 1.65, 1.18, 0.95

root at om-gta02:~# free
             total       used       free     shared    buffers     cached
Mem:        123856     121756       2100          0         24       8224
-/+ buffers/cache:     113508      10348
Swap:            0          0          0

root at om-gta02:~# ps up 1576
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      1576  8.7 50.1  73932 62140 ?        S    01:29 105:53 enlightenment -profile illume


from "strace -p 1576" while trying to start "batmon" (insert your favourite app;)

stat64("/usr/share/applications/batmon.desktop", {st_dev=makedev(31, 6), st_ino=48390, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=1, st_size=228, st_a
pipe([29, 30])                          = 0 
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x4082ca08) = -1 ENOMEM (Cannot allocate memory)
write(2, "Failed to fork process\n", 23) = 23                                                                                                                                               
write(2, "\n*** ECORE ERROR: Ecore Magic Ch"..., 80) = 80
write(2, "  Input handle is wrong type\n   "..., 112) = 112                                                                                                                                 
write(2, "*** NAUGHTY PROGRAMMER!!!\n*** SP"..., 91) = 91



and from x.log:

Failed to fork process

*** ECORE ERROR: Ecore Magic Check Failed!!!
*** IN FUNCTION: ecore_exe_free()
  Input handle is wrong type
    Expected: f7e812f5 - Ecore_Exe (Executable)
    Supplied: 00000000 - <UNKNOWN>
*** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!




furthermore, both e and dbus-deamon use up much cpu while the FR is "idle" :

top - 21:50:22 up 20:22,  2 users,  load average: 0.57, 0.92, 0.92
Tasks:  67 total,   1 running,  66 sleeping,   0 stopped,   0 zombie
Cpu(s): 27.8%us,  5.7%sy,  0.0%ni, 66.2%id,  0.0%wa,  0.0%hi,  0.3%si,  0.0%st
Mem:    123856k total,   121652k used,     2204k free,       24k buffers
Swap:        0k total,        0k used,        0k free,     7804k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1537 root      20   0 12816  10m  392 S 16.5  8.6 168:48.62 dbus-daemon
 1576 root      20   0 73932  60m 1244 S 10.5 50.2 106:16.85 enlightenment
 3530 root      20   0  2388 1136  896 R  4.4  0.9   0:02.33 top
 1398 messageb  20   0  2248  616  392 S  1.0  0.5  11:02.65 dbus-daemon
 1577 root      20   0 86900 7976 2156 S  1.0  6.4  14:21.11 qpe
 3476 root      20   0  2400  476  296 S  0.6  0.4   0:03.87 dropbear


root at om-gta02:~# opkg list_installed e-wm
e-wm - 0.16.999.043+svnr35727-r12 - 

Harald
--
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
                                                       \/\/\/\/\/\/\/\/\/
Harald Koenig                                           //  /     \\  \
koenig at tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^



More information about the devel mailing list