Avoiding Page File

This is a discussion on Avoiding Page File within the C Programming forums, part of the General Programming Boards category; Is there any way to specify that you want something loaded to memory and not to the page file? I ...

  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,642
    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,642
    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, 01:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21