Linux Kernel: get_user_pages_fast

Mulyadi Santosa mulyadi.santosa at gmail.com
Sun Dec 23 23:07:03 EST 2012


On Sat, Dec 22, 2012 at 7:22 PM, Pablo Pessolani <ppessolani at hotmail.com> wrote:
> Hi Mulyadi:
>     I have developed Minix3 IPC primitives under Linux. One of it
> (sys_vcopy) allows to copy bytes from one process' user space to other
> process' user space.
>     Those IPCs use spinlocks to synchronize and get_user_pages()  to copy
> bytes and/or pages from one process' address space to the other. All it
> works fine and with acceptable performance. Now, I want to improve
> performance using RCU and the "fast" version of get_user_pages().

hmmm....check process_vm_rw_pages() at
http://lxr.linux.no/#linux+v3.7.1/mm/process_vm_access.c#L42

maybe that's what you need....

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list