2

Or in other words ... . Does the DBMS somehow circumvent the OS Cache manager and acccess the memory directly OR it lets the OS do its job, behave as a normal process and use the concept of virtual memory?

1 Answer 1

5

Virtual Memory is an indirection mechanism that map virtual addresses to physical addresses and the translation occurs in hardware layer through PTEs. A process can refer and address only virtual memory. Only privileged execution (kernel) can address physical memory. I recommend you read a book on the subject, the classic being Windows Internals by Russinovich/Solomon.

Your explanation is asking though a completely different question, whether OS 'Caches Manager' is circumvented. Virtual Memory is not a cache and there is never any sort of 'caching' in any discussion of a memory manager architecture (on any OS). It is not clear what 'cache manager' are you referring to. Does SQL Server do buffered IO (ie. uses OS file cache)? Generally no, see How It Works: Bob Dorr's SQL Server I/O Presentation.

1
  • Thanks! I will have to look more into it. I have obviously mixed two different things together. Commented May 31, 2013 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.