Re: moving pages from one process to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 6, 2010 at 6:37 PM, MK <stardust496@xxxxxxxxx> wrote:
> Hi list,
>
> I want to "move pages" from one userspace process to another userspace
> process. The reason to do this is to avoid the overhead of copying. I
> could ofcourse use shared memory but unfortunately, the data I have is
> being generated by a third party vendor and I have no control over
> where it gets generated. All I get is a few pages of data that I now
> want to "gift" to the other process.

You just need to update the destination process's page table entries
to point to the page & delete the existing page table mappings from
the source process.
Thats all you need to do to achieve this.

Venkatram Tummala
>
> I looked at vmsplice and splice but neither seem to fit the bill.
> vmsplice  can be used only to move into a pipe but not out. splice is
> apparently currently broken, and even then, the moving is only
> advisory , it can end up copying if it wants to.
>
> I am wondering how I can go about writing something like this?  Is
> this idea just fundamentally impossible in linux or can I somehow
> implement it?
>
> Thanks a lot,
> MK
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux