Daemon using dbus to send messages seems to use lots of memory without release them.

Thiago Macieira thiago at kde.org
Tue Dec 25 05:48:30 PST 2012


On terça-feira, 25 de dezembro de 2012 14.34.31, Sanel Zukan wrote:
> I wrongly understood how DBus daemon was killed by kernel, so I simply
> run example program without valgrind. I'm not sure how much your
> system is constrained, but DBus can have big overhead; DBus may stared
> with goals to be light, but today definitely isn't.

Looks quite light to me:

$ ps -o pid,vsz,rss,start,command `pidof dbus-daemon`
   PID    VSZ   RSS  STARTED COMMAND
   861  31284  2032   Dec 08 /bin/dbus-daemon --system --address=systemd: --
nofork --systemd-activation
  1019  33188  2196   Dec 08 /bin/dbus-daemon --fork --print-pid 5 --print-
address 7 --session

What are your main issues? What happened to your case?

1019:  Total mapped memory:     33192 kB
1019:      of which is padding: 18412 kB
1019:     of which swapped out: 1284 kB
1019:    of which likely stack: 8328 kB mapped, 32 kB resident (28 kB main, 4 
kB aux threads)
1019:    of which are resident: 2360 kB, 1939 kB proportionally shared
1019:          total anonymous: 1800 kB (76.3%)
1019:                   Shared: 560 kB total (23.7% of RSS)
1019:                Breakdown: 560 kB clean (100.0%), 0 kB dirty (0.0%)
1019:                           556 kB code (99.3%), 4 kB RO data (0.7%), 0 kB 
RW data (0.0%)
1019:                           0 kB heap (0.0%), 0 kB stack (0.0%), 0 kB 
other (0.0%)
1019:                  Private: 1800 kB total (76.3% of RSS)
1019:                Breakdown: 0 kB clean (0.0%), 1800 kB dirty (100.0%)
1019:                           0 kB code (0.0%), 24 kB RO data (1.3%), 20 kB 
RW data (1.1%)
1019:                           1724 kB heap (95.8%), 32 kB stack (1.8%), 0 kB 
other (0.0%)
861:  Total mapped memory:     31288 kB
861:      of which is padding: 18412 kB
861:     of which swapped out: 292 kB
861:    of which likely stack: 8328 kB mapped, 12 kB resident (8 kB main, 4 kB 
aux threads)
861:    of which are resident: 2092 kB, 1574 kB proportionally shared
861:          total anonymous: 1432 kB (68.5%)
861:                   Shared: 660 kB total (31.5% of RSS)
861:                Breakdown: 660 kB clean (100.0%), 0 kB dirty (0.0%)
861:                           652 kB code (98.8%), 8 kB RO data (1.2%), 0 kB 
RW data (0.0%)
861:                           0 kB heap (0.0%), 0 kB stack (0.0%), 0 kB other 
(0.0%)
861:                  Private: 1432 kB total (68.5% of RSS)
861:                Breakdown: 16 kB clean (1.1%), 1416 kB dirty (98.9%)
861:                           0 kB code (0.0%), 24 kB RO data (1.7%), 24 kB 
RW data (1.7%)
861:                           1372 kB heap (95.8%), 12 kB stack (0.8%), 0 kB 
other (0.0%)


-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20121225/b2e504eb/attachment.pgp>


More information about the dbus mailing list