st_imbob has asked for the wisdom of the Perl Monks concerning the following question:
The code below fails at 256, although ulimit would indicate that it shouldn'thost> ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 8192 coredump(blocks) unlimited nofiles(descriptors) 3072 vmemory(kbytes) unlimited
How to proceed? We built perl 5.8 with useperlio=define d_sfio=undef but that didn't work, presumably because perlio uses stdio. Any experience with sfio, or any indication that it will solve the problem? It seems that 64-bit perl would use the 64-bit stdio libraries that are not broken, but we need DBD::Oracle, and that seems to require 64-bit Oracle, and we are not quite there yet.#!/usr/bin/perl use FileHandle; for ($i=0;$i<2048;$i++){ $fd = new IO::File; sysopen($fd, "$i", O_WRONLY | O_CREAT) or die "stopped at: $i: + $!\n"; $fd{"$i"} = $fd; } for ($i=0;$i<2048;$i++){ $fh = $fd{"$i"}; print $fh "test\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need lots of filehandles under Solaris
by Abigail-II (Bishop) on Sep 25, 2003 at 23:37 UTC | |
|
Re: Need lots of filehandles under Solaris
by Fletch (Bishop) on Sep 26, 2003 at 01:33 UTC | |
by st_imbob (Novice) on Sep 26, 2003 at 02:31 UTC | |
by st_imbob (Novice) on Sep 29, 2003 at 17:18 UTC | |
|
Re: Need lots of filehandles under Solaris
by graff (Chancellor) on Sep 26, 2003 at 02:09 UTC |