Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Temporary usage of RAM memory

by Anonymous Monk
on Apr 10, 2014 at 21:35 UTC ( [id://1081878]=note: print w/replies, xml ) Need Help??


in reply to Temporary usage of RAM memory

No, memory doesn't work like that.

The computer program that is called operating system generally restricts allocating memory (often RAM) only to running processes

So to persist RAM allocation past the life of your program, you need another constantly running program , a daemon / service, one specifically designed to persist RAM allocations ... like shared memory

And you need a special interface to communicate with said memory keepalive program, like IPC::ShareLite, Apache::SharedMem, IPC::Shareable

You don't need to use mysql, you can use a regular file with proper flocking

Replies are listed 'Best First'.
Re^2: Temporary usage of RAM memory
by thanos1983 (Parson) on Apr 11, 2014 at 08:34 UTC

    To: Anonymous Monk

    Thank you for the reply and the analysis on my question. I was not even aware of this capabilities. I will take a look and propably I will apply this solution to my problem. ;)

    Thank you for your time and effort.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1081878]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-23 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found