Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Make use of 2GB of RAM + some virtual mem

Make use of 2GB of RAM + some virtual mem

Scheduled Pinned Locked Moved System Admin
questionsysadminperformancehelp
2 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John M Drescher
    wrote on last edited by
    #1

    I am writing an application that needs to have in memory 40+ ( 30 to 60 MB ) images. Only four or five of them need to be viewed at a time. The application is running on a dual processor athlon 1.2 MP with 2GB of RAM. The problem is that Win2k server and professional limit the user process address space to 2GB and 2GB for the system. Advanced server will allow 3GB for user but I don't want to have to upgrade the OS again. The question what is the best way to allow my application to use most of the system's RAM and also allow it to use the swapfile for additional virtual memory. Can I use mem mapped files and only map them into my process space when I need to view the image. What about AWE?

    R 1 Reply Last reply
    0
    • J John M Drescher

      I am writing an application that needs to have in memory 40+ ( 30 to 60 MB ) images. Only four or five of them need to be viewed at a time. The application is running on a dual processor athlon 1.2 MP with 2GB of RAM. The problem is that Win2k server and professional limit the user process address space to 2GB and 2GB for the system. Advanced server will allow 3GB for user but I don't want to have to upgrade the OS again. The question what is the best way to allow my application to use most of the system's RAM and also allow it to use the swapfile for additional virtual memory. Can I use mem mapped files and only map them into my process space when I need to view the image. What about AWE?

      R Offline
      R Offline
      Rassman
      wrote on last edited by
      #2

      mem mapped files would allow your OS to take care of the virtual memory for you, parts that your app is currently using will be shipped into real ram as you use it anyway. But in graphics this swap can be a be unintelligent, portions of yuor graphic can (and probably will) be shipped out whilst your app is working on another part (assuming non contigious memory blocks). But this might be too slow for your graphics work. So, perhaps a compromise, claim a contigious global space (locked) of a size suitable for one of your graphics, and then swap each of your graphics into here yourself to work on. You may then be able to refine it by deciding which parts of your code need the graphic in your own swap area (for speed) and which don't. We do it for the joy of seeing the users struggle.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups