Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ace-users] How to configure ACE to support epoll on linux with a large number of Reactor?

245 views
Skip to first unread message

曦 朱

unread,
Sep 22, 2011, 1:23:16 AM9/22/11
to ace-...@list.isis.vanderbilt.edu


Hi,all:
We meet a problem here.
Now we develop a server to support a lot of connections on linux.So we decide to use the epoll feature.We refer to some documents to compile ACE to support the epoll,and it works well if the number of ACE_Reactor is not so big.But if the number of Reactor is more than 405, segmentation fault happens when some client try to connect the server.By the way , I have change the open file number limitation by -ulimit -n,so it's not the case. And the steps I install ACE is as below:
first: ./configure
second: add the macros ACE_USE_DEV_POLL_REACTOR_FOR_REACTOR_IMPL  and ACE_HAS_LIMITED_SELECT into the /build/ace/config.h.

BTW,if I delete the ACE_HAS_LIMITED_SELECT,the program dumped when the number of FD come to FD_SIZE (1024).
If I delete the ACE_HAS_LIMITED_SELECT and modify the FD_SIZE to 60000,the server works well but I don't think that is the right way.If some one has experience about this please give me some advices.Thanks a lot.
BTW,my environment is Suse 11 linux +ACE5.6.5.

Douglas C. Schmidt

unread,
Sep 25, 2011, 9:20:00 PM9/25/11
to bruce_...@hotmail.com, ace-...@cse.wustl.edu
Hi Bruce,

You're using an old version of ACE. Please upgrade to ACE 6.0.4,
which you can download from

http://download.dre.vanderbilt.edu

The DOC group at Vanderbilt University only provides "best effort"
support for non-sponsors for the latest release, as described in

http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/docs/ACE-bug-process.html

Thus, if you need more "predictable" help for earlier versions of
ACE+TAO, I recommend that you check out

http://www.dre.vanderbilt.edu/support.html

for a list of companies that will provide you with ACE+TAO commercial
support.

Thanks,

Doug
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: d.sc...@vanderbilt.edu

0 new messages