Thread: Avoiding Page File

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    10

    Avoiding Page File

    Is there any way to specify that you want something loaded to memory and not to the page file?

    I have an array which should easily fit in memory, 600mb on 2056, but it insists on loading it to the page file.

    Any help?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    OS and compiler?

    gg

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    10
    Unix/gcc

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    You really should let the OS manage memory.
    Look into using mmap() to map the file into your process's address space.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. Problems passing a file pointer to functions
    By smitchell in forum C Programming
    Replies: 4
    Last Post: 09-30-2008, 02:29 PM
  3. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 04:14 AM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM