Is there concept of large pages on Vista?

Discussion in 'Windows Vista Drivers' started by Praveen Kumar Amritaluru, Jul 5, 2007.

  1. Hi,

    Is there a concept of large pages on Vista?
    What is the maximum size of contiguous physical memory that is possible to
    allocate from an app on Vista and above?
    I would like to write an app that allocate a huge contiguous physical
    memory and fill it with data and pass it down to
    network driver for xmitting (for test purposes)?
    Is there a call available that I can use from within my app. The app is
    written in C.

    Regards,
    -Praveen
     
    Praveen Kumar Amritaluru, Jul 5, 2007
    #1
    1. Advertisements

  2. How much is "huge contiguous physical memory"? How is your network card
    moving the data from host memory to the card? I mean, is it DMA with a
    common buffer (a big common buffer) or rather scatter-gather DMA?

    Have a nice day
    GV
     
    Gianluca Varenni, Jul 5, 2007
    #2
    1. Advertisements

  3. Yes- VirtualAlloc with MEM_LARGE_PAGES. However, that doesn't guarantee
    larger than the large page size as physically contiguous - e.g. if you take
    more than one page, they need not be physically contiguous

    BTW, directly sharing memory between a driver and a user mode app is almost
    always the wrong way to go. Use the inverted call model with overlapped
    pended IOCTLs instead.
     
    Skywing [MVP], Jul 5, 2007
    #3
  4. You cannot allocate physical memory from the app in any Windows version.
     
    Maxim S. Shatskih, Jul 6, 2007
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.