Comments (2)
This is my code
fn rdma_get_item<'a>(&mut self, py: Python<'a>) -> PyResult<&'a PyArray<u8, Dim<[usize; 1]>>> {
let mut lmr = some_function();
let lmr_len = (&lmr).length();
let lmr_data_ptr = *lmr.as_mut_ptr();
let lmr_data = unsafe { Vec::from_raw_parts(lmr_data_ptr, lmr_len, lmr_len) };
std::mem::forget(lmr);
let py_array = lmr_data.into_pyarray(py);
Ok(py_array)
}
from async-rdma.
jemalloc strategy does not give up this memory even lmr.drop() is not called.
I donβt quite understand the meaning of this sentence.
Do you mean: Je free the memory even drop is not called?
I think lmr.drop() -> jemalloc::free()
will not be called if you use forget(lmr)
, and the memory should keep the allocated state(is this what you mean give up?).
But, we have not conducted any analysis or testing on transferring MR between different frameworks. Welcome contributions of complete application cases and discussions on potential issues.
from async-rdma.
Related Issues (20)
- run example server panic HOT 3
- Automatically detect the device model and modify the immediate data flag
- Crate examples won't compile. HOT 5
- [Feature] How to register Memory Region on specific memory address? HOT 1
- support append for memory region HOT 3
- JEMALLOC_RETAIN defined cause memory allocate failed HOT 3
- bump rust toolchain
- Failed to run example on ubuntu server 20.04 HOT 1
- [BUG] mr_allocator related bug when dealing two big lmr with one rdma object HOT 1
- confusion about support for Infiniband and mlx5? HOT 4
- insufficient contiguous memory was available to service the allocation request
- Support working with existing apps HOT 6
- RDMA Soundness Scope
- Support different allocator and event_listener for cloned Rdma
- How many types of rdma network cards does async-rdma support? HOT 2
- Check more hardware limitations
- Encounter a doubt when using MR in async-rdma HOT 9
- how should the work of safety check be done? HOT 3
- Connection timeout between servers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from async-rdma.