lotsa lotsa lotsa FDs
lotsa lotsa lotsa FDs
- Subject: lotsa lotsa lotsa FDs
- From: email@hidden
- Date: Thu, 20 Apr 2006 16:42:22 -0700
Hello, all ...
I'm writing server software that handles (and test clients that
initiate) thousands of simultaneous socket connections. When I test,
I generally do this:
PugsleyButt:~/devstuff/event_test jmzorko$ sh
sh-2.05b$ ulimit -n 3010
sh-2.05b$ ulimit -s 65536
... in the terminal window for the server and the client (and I often
do them on the same box), before running the test server (C++) and
the test client (Perl, but I also use iTunes as a test client when I
test with an MP3 stream). Yet, often when I do this, my machine
(1.5ghz PowerBook G4) gets all wonky ... I can't launch new processes
or kill old ones, I can't check email, launch Safari, etc. I
basically get the spinning beach ball everywhere and it all goes pear-
shaped.
... so I figure i'm not doing it right. Is ulimit -n / -s not
enough? Can I do something else to allow for the thousands of
descriptors i'll be creating / using?
Regards,
John
Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden