open-iscsi / rtslib-fb

Python library for configuring the Linux kernel-based multiprotocol SCSI target (LIO)
Apache License 2.0
73 stars 90 forks source link

when I call API: /api/disk to create a disk in arm environment, it often suspends in function: UserBackedStorageObject(StorageObject)::_enable() #177

Closed pgh-pamela closed 3 years ago

pgh-pamela commented 3 years ago

Hello, when I call API: /api/disk to create a disk in arm environment, it often suspends in function: UserBackedStorageObject(StorageObject)::_enable()

The log in rbd-target-api.log as follows, there is no success return or fail return. image

The fd list of process: rbd-target-api as follows: image

If I want success to create the rbd image, I must reboot the node. What should I do if I want use it normally.

pgh-pamela commented 3 years ago

The root cause of the problem is component:tcmalloc,after I remove the component, it works well. The tcmalloc causes tcmu runner suspend, then rbd-target-api can't modify the kernel configuration. image

maurizio-lombardi commented 3 years ago

Interesting, so it appears to be a bug in tcmalloc

pgh-pamela commented 3 years ago

Yes, it seems a bug in tcmalloc on ARM environment, and it works well on x86