VirtualLock issue

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



According to Knowledge Base article 94996, VirtualLock does *not* lock pages into physical
memory, but locks them into the working set. The documentation of VirtualLock still
claims that the pages are locked into physical memory, and article 94996 has been removed
from the Knowledge Base.

Does anyone have any idea what the truth is? Note that Microsoft's haphazard pruning of
important articles (while retaining hopelessly obsolete articles on 16-bit Windows 3.0)
may simply indicate incompetent database management (no surprises here), or they may have
actually changed the implementation to correspond to the documentation; there is no easy
way to tell at this point short of conducting some complex experiments.

Anyone have any idea what the real truth is here?
joe
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth
.



Relevant Pages

  • Re: File Mapping
    ... there is an information on VirtualLock in MSDN that is a bit conflicting to another MSDN articles. ... In the VirtualLock API description it says that the pages are *absolutely* locked into physical memory. ... VirtualLockcauses pages to be locked into an application's working set; it does not lock them absolutely into ... Depending upon memory demands on the system, the memory manager may vary the number of pages a process can lock. ...
    (microsoft.public.windowsxp.embedded)
  • Re: File Mapping
    ... "The system is free to swap out any virtually locked pages if it swaps out the whole process. ... How can I lock a page in memory, to prevent it from being swapped out? ... VirtualQuery, VirtualLock, GetProcessWorkingSetSize and SetProcessWorkingSetSize. ...
    (microsoft.public.windowsxp.embedded)
  • Re: [ltt-dev] [RFC git tree] Userspace RCU (urcu) for Linux (repost)
    ... My confusion -- I was testing my old approach where the memory barriers ... I tried removing the second parity switch from the writer. ... LOCK operations. ...
    (Linux-Kernel)
  • Re: [ltt-dev] [RFC git tree] Userspace RCU (urcu) for Linux (repost)
    ... My confusion -- I was testing my old approach where the memory barriers ... I tried removing the second parity switch from the writer. ... LOCK operations. ...
    (Linux-Kernel)
  • Re: [ltt-dev] [RFC git tree] Userspace RCU (urcu) for Linux (repost)
    ... My confusion -- I was testing my old approach where the memory barriers ... I believe you were actually looking for a memory barrier here, ... LOCK operations. ... A LOCK operation should almost always be paired with an UNLOCK operation. ...
    (Linux-Kernel)