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,
Mount a tmpfs partition and place the files there. This will give you a RAM disk. "man mount" and search for tmpsf.