Re: "Move memory" in no time
- From: Jan Panteltje <pNaonStpealmtje@xxxxxxxxx>
- Date: Thu, 23 Mar 2006 13:08:20 GMT
On a sunny day (Thu, 23 Mar 2006 09:49:40 +0100) it happened Johannes Singler
<singler@xxxxxxxxxx> wrote in <dvtnf5$4bn$1@xxxxxxxxxxxxxxxxxxxxxxxxx>:
Hi there!I do not get it, say you have allocated that space with malloc, now you
For API compatibility, I need to move a large block of data to another
place in memory. I really need to only _move_ it, I don't need the
original data any more. So far I call memcpy and free up the original
space afterwards. Now I was wondering if there is a kernel call that
achieves this by just changing some page table entries. In this case, no
transfer would be necessary and the move should be much faster.
Is this possible? Can we maybe abuse some mmap-related calls for that?
Thanks,
Johannes
have a pointer to it.
When you want to 'move' it means something else should get in the place of
the space used by that pointer.
Then leave that space and let the 'something else' use a different space?
.
- Follow-Ups:
- Re: "Move memory" in no time
- From: Johannes Singler
- Re: "Move memory" in no time
- References:
- "Move memory" in no time
- From: Johannes Singler
- "Move memory" in no time
- Prev by Date: Re: proxy achitecture
- Next by Date: feature tests for pthreads implementation and configuration?
- Previous by thread: "Move memory" in no time
- Next by thread: Re: "Move memory" in no time
- Index(es):
Relevant Pages
|