|
|
|
|
| perl: File::LinearRaid crashing with Can't locate Carp/Heavy.pm in @INC |
|
Problem: When trying to create a new() File::LinearRaid object, perl crashes with the following error message:
"Can't locate Carp/Heavy.pm in @INC"
|
|
Solution: A single File::LinearRaid object uses one file descriptor for every file component. If you are using a large array of files and/or a large number of raid objects, the total number of open file descriptors is likely to exceed the max limit per process.
Check the limit using "ulimit -n"
If this is indeed the problem, either redesign your program or raise the per process limit. Example: "ulimit-n 2048"
To make the change permanent, edit "/etc/security/limits.conf"
Note that there is also a maximum number for the entire system, if you run into this limit as well then you really need to reconsider your use of file descriptors. (Do you REALLY need all of those files open at the same time?)
|
|
|
|
|
|
This is free technical advice without any warranties.
Use at your own risk. Solutions offered may not apply to your particular problem at all.
Opinions and views expressed in the articles are the authors' personal
and may not necessarily reflect or coincide with those of Ano-Tech Computers.
We take no responsibility if anything bad happens from following any of
the intructions given. If you don't understand and accept this, please
contact us for personal assistance instead.
To read our full disclaimer, go
here.
We welcome anyone who is willing to contribute to this public knowledge base,
contact siteadmin@atc.no
if you have information you would like to share. The idea is not to replace
the commercial support sites, but to publish those hard-to-find
solutions you've found yourself looking for over and over again.
Show all articles