You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do the remote methods doGetRemoteBuffers and doCreateRemoteBuffer include AddDependency and RemoveDependency, while the local methods do not?
#2017
Open
fduxzbin opened this issue
Nov 18, 2024
· 2 comments
Why do the remote methods doGetRemoteBuffers and doCreateRemoteBuffer in vineyard include AddDependency and RemoveDependency? However, there are no related operations in the local methods doCreateBuffer and doCreateBuffers. There is only AddDependency but no RemoveDependency in doGetBuffers.
Please explain the specific role of Dependency in detail. If I perform AddDependency first and then RemoveDependency for all get and create operations, will there be any problems?
The text was updated successfully, but these errors were encountered:
fduxzbin
changed the title
Why do the remote methods doGetRemoteBuffers and doCreateRemoteBuffer in vineyard include AddDependency and RemoveDependency? However, there are no related operations in the local methods doCreateBuffer and doCreateBuffers. There is only AddDependency but no RemoveDependency in doGetBuffers. Please explain the specific role of Dependency in detail. If I perform AddDependency first and then RemoveDependency for all get and create operations, will there be any problems?
Why do the remote methods doGetRemoteBuffers and doCreateRemoteBuffer include AddDependency and RemoveDependency, while the local methods do not?
Nov 18, 2024
Hi @fduxzbin, thanks for reporting this issue. Could you please tell us what problem you have encountered?
The reason why I raised this question is that I encountered a scenario where, when it was necessary to release memory, none of the objects were spilled because all objects had Dependency, resulting in a failure to release memory. I found that when you create and get remote objects, you add Dependency before create/get, and then remove Dependency after create/get, thereby achieving immediate release of the object and adding it to the LRU. When it needs to be spilled, it is spilled immediately. My question is, why is there no corresponding operation for local methods when the above operation on remote objects is reasonable. How to avoid the problem of not releasing locally created/get immediately.
Why do the remote methods doGetRemoteBuffers and doCreateRemoteBuffer in vineyard include AddDependency and RemoveDependency? However, there are no related operations in the local methods doCreateBuffer and doCreateBuffers. There is only AddDependency but no RemoveDependency in doGetBuffers.
Please explain the specific role of Dependency in detail. If I perform AddDependency first and then RemoveDependency for all get and create operations, will there be any problems?
The text was updated successfully, but these errors were encountered: