[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Dbus application consumes full cache memory , during Tx and Rx of message using Dbus API- Memory
From:       Lawrence D'Oliveiro <ldo () geek-central ! gen ! nz>
Date:       2023-08-15 1:45:12
Message-ID: 20230815134512.715ab9b7 () theon ! geek-central ! gen ! nz
[Download RAW message or body]

On Mon, 14 Aug 2023 16:16:25 +0530, deepak jewargi wrote:

> I have implemented a dbus application using dbus-1 API's on the linux
> platform.
> 
> Facing issues ,when we run conftinuously in a loop. dbsu Tx (public)and
> dbus Rx (subscribe)  runs out of cache memory  and  both Tx and Rx
> getting terminated  attached source and header files,

Is there something missing? I see no main(). Also I notice you are
using threads. Mixing D-Bus calls across threads is not
recommended--you should confine them to your main thread. Not sure what
your "event2" framework is, either. Are you sure that works OK?

Here <https://github.com/ldo/slow_dbus_server> is a completely
self-contained example of using D-Bus with threads, written in straight
C and using standard poll(2) calls to manage its event loop.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic