Hi all,
For those who would like to set custom values for ulimit then here is
the recommendation from Jon Bakken at FermiLab:
<quote>
I put this kind of special setup in the
d-cache/jobs/dcache.local.sh file that is sourced on startup.
I need 'ulimit -n 32768' for all the connections we have here.
I also have alot in d-cache/jobs/dcache.local.run.sh that is executed on
startup. For example, this is where I verify pnfs, the pool structure, the
amount of /tmp, etc. Everything I've found that I want to make sure is
"right" before starting. Patrick has it set up so if this script returns
failure, the cell startup is aborted. That's saved me lots of headaches.
My installation scripts automatically create these dcache.local.sh and
dcache.local.run.sh files everytime I do an update. Those 2 files are
supposed to be locally configured, so I wouldn't especially like it if
the dcache install scripts started writing to those files, too.
</quote>
You can find examples of the two files referred to above here:
http://www.ph.ed.ac.uk/~gcowan1/dcache/dcache.local.run.sh.pool
http://www.ph.ed.ac.uk/~gcowan1/dcache/dcache.local.sh.pool
Note, however, that they are customised for use at FermiLab. Should give
us some ideas though.
Cheers,
Greig
|