Subject: Re: Can't start domU
To: None <port-xen@NetBSD.org>
From: Jed Davis <jdev@panix.com>
List: port-xen
Date: 06/21/2005 08:33:44
In article <42B7B808.50603@iki.fi>,
Martti Kuparinen  <martti.kuparinen@iki.fi> wrote:
> Hi!
> 
> I was trying to start 30 virtual machines as a final stress test for
> my Xen server but it fails like this for the 24th domU. I've increased
> kern.maxfiles to 500000 but it's still failing. Any ideas?
[]
> Error: Error creating domain: Couldn't listen on localhost:9624: (7, 'No 
> address associated with hostname').
> Using config file "/var/run/netbsd.25.conf".
> Error: Error creating domain: Couldn't listen on localhost:9625: (24, 
> 'Too many open files').

That's the number of descriptors per process -- here, xend -- not for
the system as a whole (that'd be "Too many open files in system"). 

Tossing a "ulimit -n 1024" or similar into xend's rc script should do
the trick; there might be a nicer way to do that.  (For one-shot use,
"sysctl -w proc.NNN.rlimit.descriptors.soft=1024" looks like it works.)


-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))