Re: Locking user space buffer in physical mem using get_user_pages

2007-11-30 Thread Mulyadi Santosa
Hi again.. > FYI > Found something in Documentation/vm/page_migration (Section B. how > migrate_pages() works) that kinda confirms our expectations.. > " The refcount of the page is examined and we back out if references > remain otherwise we know that we are the only one referencing this page >

RE: Locking user space buffer in physical mem using get_user_pages

2007-11-30 Thread Tuytschaever, Tom
Hi, > > Since both of us (and no one else joins this thread so far) > came to the same point, I guess we implicitly agree that > somehow Linux 2.6.x VM checks this (reference?) counter and > doesn't swap this kind of page. > FYI Found something in Documentation/vm/page_migration (Section B. h

Re: Locking user space buffer in physical mem using get_user_pages

2007-11-30 Thread Mulyadi Santosa
Hi.. First of all, thank you for sharing your finding. Actually, I came to the same conclusion too yesterday, but I didn't have enough free time to explain what I have found completely. Sorry for that... After digging into the source of get_user_pages I found that at a certain point, page_cac

RE: Locking user space buffer in physical mem using get_user_pages

2007-11-30 Thread Tuytschaever, Tom
> Hi... > > > Hi... > >> As most of you will already know, one can use get_user_pages to get a > >> struct pages list of a certain user space buffer. > >> While doing this, get_user_pages also locks the pages into physical > >> mem (preventing them from being swapped out to disk, or moved within

RE: Locking user space buffer in physical mem using get_user_pages

2007-11-29 Thread Tuytschaever, Tom
Hi... > Hi... >> As most of you will already know, one can use get_user_pages to get a >> struct pages list of a certain user space buffer. >> While doing this, get_user_pages also locks the pages into physical >> mem (preventing them from being swapped out to disk, or moved within >> phys mem)

Re: Locking user space buffer in physical mem using get_user_pages

2007-11-29 Thread Mulyadi Santosa
Hi... As most of you will already know, one can use get_user_pages to get a struct pages list of a certain user space buffer. While doing this, get_user_pages also locks the pages into physical mem (preventing them from being swapped out to disk, or moved within phys mem) for usage with e.g. DMA.

Locking user space buffer in physical mem using get_user_pages

2007-11-29 Thread Tuytschaever, Tom
Please ignore my prvious posting, my apologies to post in HTML, Outlook tricked me (again) Below the exact same posting in text format -- Dear Subscribers, As most of you will already know, one can use ge

Locking user space buffer in physical mem using get_user_pages

2007-11-28 Thread Tuytschaever, Tom
Dear Subscribers, As most of you will already know, one can use get_user_pages to get a struct pages list of a certain user space buffer. While doing this, get_user_pages also locks the pages into physical mem (preventing them from being swapped out to disk, or moved within phys mem) for usage wi