Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th May 2006, 16:38
calande calande is offline
Junior Member
 
Join Date: May 2006
Location: Curitiba, PR - Brazil
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Question How to keep in RAM a number of text files?

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,
__________________
Charles A. Landemaine.
_____________________________
Empresa de hospedagem de sites | Empresa de criação de sites | Fórum sobre hospedagem de sites
Reply With Quote
Sponsored Links
  #2  
Old 7th January 2008, 18:11
tensor tensor is offline
Member
 
Join Date: Jul 2007
Posts: 51
Thanks: 11
Thanked 9 Times in 6 Posts
Default

Mount a tmpfs partition and place the files there. This will give you a RAM disk.
"man mount" and search for tmpsf.
Reply With Quote
  #3  
Old 7th January 2008, 18:17
calande calande is offline
Junior Member
 
Join Date: May 2006
Location: Curitiba, PR - Brazil
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks, yeah, I've used ramfs, it's great to reduce disk i/o
__________________
Charles A. Landemaine.
_____________________________
Empresa de hospedagem de sites | Empresa de criação de sites | Fórum sobre hospedagem de sites
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pure-FTPd downloading Leedude Server Operation 2 9th May 2006 01:16
all my site go to /var/www/ Absolusteph Installation/Configuration 14 11th March 2006 22:27
from http to https after installation? Mahir Installation/Configuration 25 7th December 2005 21:40
Problem with instalation indicator72 Installation/Configuration 38 16th November 2005 12:39
treat rar files as text Hellbound General 0 14th September 2005 19:27


All times are GMT +2. The time now is 22:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.