This mail is probably naive. Sorry.
I want to set up a cache, storing html templates and perl widgets (held
in MySQL) that are regularly eval'd. I want to attach timestamps and hit
counts to each stored scalar, to help decide which are the most
important values to cach, and allow updates to the cache if values are
changed. I'm also looking at IPC::Cache.
Now, I only have 128MB RAM. When I'm populating the hash, I can limit
the size of the cache to available RAM by reading freemem from
/proc/meminfo, so I don't run into swap space.
However, when I undef a range of hash values, the free memory in
/proc/meminfo doesn't increase - it seems permanently allocated.
Does anyone have any thoughts on how I can judge whether I have space to
add a value to a cache, or whether I need to clean out unused vales from
the cache.
--Nigel Wetters
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]