How to keep in RAM a number of text files?

Discussion in 'Server Operation' started by calande, May 10, 2006.

  1. calande

    calande New Member

    I have a chat application which manages many people chatting together. Chat sessions are stored in plain text files. Problem is that I think each time these text files are accessed, the system accesses the HDD instead of the RAM, and this takes heavier resources instead of accessing and keeping these text files in the RAM. Is there a way to lower access to HDDs, load these text files into the RAM and keep them there? (Or something similar)
    Thanks,
     
  2. tensor

    tensor New Member

    Mount a tmpfs partition and place the files there. This will give you a RAM disk.
    "man mount" and search for tmpsf.
     
  3. calande

    calande New Member

    Thanks, yeah, I've used ramfs, it's great to reduce disk i/o :)
     

Share This Page