title: How do you pre allocate memory to a process in solaris?
body: <p>My problem is:</p>
  
  <p>I have a perl script which uses lot of memory (expected behaviour because of caching). But, I noticed that the more I do caching, slower it gets and the process spends most of the time in sleep mode.</p>
  
  <p>I thought pre-allocating memory to the process might speed up the performance.</p>
  
  <p>Does someone have any ideas here?</p>
  
  <p><strong>Update</strong>:</p>
  
  <p>I think I am not being very clear here. I will put question in clearer way:</p>
  
  <p>I am not looking for the ways of pre-allocating inside the perl script. I dont think that would help me much here. What I am interested in is a way to tell OS to allocate X amount of memory for my perl script so that it does not have to compete with other processes coming in later.</p>
  
  <p>Assume that I cant get away with the memory usage. Although, I am exploring ways of reducing that too but dont expect much improvement there.
  FYI, I am working on a solaris 10 machine.</p>