Simon Marlow:
Simon Marlow wrote:
Duncan Coutts wrote:
On Wed, 2007-11-21 at 11:36 +1100, Manuel M T Chakravarty wrote:
On Mac OS X, 10.5, I get with todays head

Unexpected failures:
   openFile008(normal)

Details appended.

Tue Nov 20 03:47:57 PST 2007  Simon Marlow <[EMAIL PROTECTED]>
 * test repeated open/close of 1000 files

   M ./tests/ghc-regress/lib/IO/all.T +2
   A ./tests/ghc-regress/lib/IO/openFile008.hs


I've heard tell that MacOS X sets the limit on the number of open files per-process ridiculously low by default. Something in the range of 300.

Stderr:
openFile008: openFile008_testdir/file252: openFile: resource exhausted (Too many
 open files)

That would explain the failure.

Perhaps the test does not need so many files open all at once. On the
other hand if it's testing what used to be a performance bug where a
linear algorithm was being used for file locking, then perhaps the test
really does need lots of files to be open simultaneously rather than
just sequentially. Simon will know. If so perhaps the test can set a
ulimit to increase the number of open files allowed.
Ok, I'll take a look at this today and add a ulimit setting.

Now done, let me know if it helps.

Works now!

Cheers,
Manuel

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to