Shawn Corey:
> Saurabh Singhvi:

>> the external binary is HUGE in terms of ram usage so i need a way to
>> keep it loaded in the memory
>> so that i can keep passing the next parameters, instead of loading
>> it each time.
>
> If you're running UNIX you can set the binary's sticky bit. See `man
> chmod` and `man 2 chmod`. The sticky bit tells UNIX to leave the
> program in RAM for a little while in case it is called again very
> soon.

If the binary allocates the massive amount of memory at init and frees
it at exit, then you still need a malloc-cloak that keeps that memory at
hand. Maybe 'daemonize' can be adjusted to do that.

-- 
Affijn, Ruud

"Gewoon is een tijger."



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to