zenoh icon indicating copy to clipboard operation
zenoh copied to clipboard

[Bug] Memory leak when feature shared-memory enabled

Open OlivierHecart opened this issue 2 years ago • 2 comments

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
  1. On the same host repeatedly start z_put example:
$ while true; do ./target/debug/examples/z_put; done
  1. Monitor z_sub virtual memory:
$ pidstat -C z_sub -r

System info

Zenoh commit: 0ee66760a85564c0a54ec4475e3d369d2b6aefa1

OlivierHecart avatar Dec 19 '22 11:12 OlivierHecart

@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?

Mallets avatar Jun 13 '24 14:06 Mallets

@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.

yellowhatter avatar Jun 13 '24 14:06 yellowhatter