Keep a file in memory an any cost
Bryn M. Reeves
bmr at redhat.com
Wed May 11 19:19:28 UTC 2011
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.
More information about the users
mailing list