Re: Keep a file in memory an any cost



On 05/11/2011 07:32 PM, Joe Zeff wrote:
On 05/11/2011 11:19 AM, Alain Spineux wrote:
How can I keep it in memory all the time ?
I can read it at regular interval, but this is a little over kill ?

Is there a reason that you don't do the obvious: read it into an array,
use it and then if needed write it out again when the program exits?

And have it all chucked onto the swap device when we're under memory pressure
and reclaiming user pages that haven't been touched in a while? How does that help?

Regards,
Bryn.

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines