eclipse-zenoh / zenoh

zenoh unifies data in motion, data in-use, data at rest and computations. It carefully blends traditional pub/sub with geo-distributed storages, queries and computations, while retaining a level of time and space efficiency that is well beyond any of the mainstream stacks.
https://zenoh.io
Other
1.43k stars 150 forks source link

[Bug] Memory leak when feature shared-memory enabled #406

Open OlivierHecart opened 1 year ago

OlivierHecart commented 1 year ago

Describe the bug

The opening and closing of a transport session with a localhost process (peer or router) leads to a memory leak when feature shared-memory is enabled and even if it is not used. For each opened and close transport session, the observed virtual memory increases of 8k bytes.

To reproduce

  1. Start z_subexample:
    $ z_sub
  2. On the same host repeatedly start z_put example:
    $ while true; do ./target/debug/examples/z_put; done
  3. Monitor z_sub virtual memory:
    $ pidstat -C z_sub -r

System info

Zenoh commit: 0ee66760a85564c0a54ec4475e3d369d2b6aefa1

Mallets commented 3 months ago

@yellowhatter could you verify if this issue is still relevant with the rework SHM being done in https://github.com/eclipse-zenoh/zenoh/tree/dev/1.0.0?

yellowhatter commented 3 months ago

@yellowhatter could you verify if this issue is still relevant with the rework SHM being done in https://github.com/eclipse-zenoh/zenoh/tree/dev/1.0.0?

Ok, I'll do.