Increase number of Binder threads

1,212 views
Skip to first unread message

Eyal Bellisha

unread,
Jun 23, 2014, 5:01:55 AM6/23/14
to android-...@googlegroups.com
Hi,
I am using a platfom that supports multiple users simoultaneously, but has only one system server.
As the number of users increases, the binder is having a hard time creating binder threads inside the system_server (and I believe that inside the servicemanager too).
Where is that limit defined?
How can I configure the binder to increase its memory size?
Support more concurrent threads? Support more fds?

Thanks

Dave Smith

unread,
Jun 24, 2014, 12:58:19 AM6/24/14
to android-...@googlegroups.com
The binder thread count is set in the driver using the BINDER_SET_MAX_THREADS ioctl.  In the framework, it is set in ProcessState.cpp:

The default value of 15 is set in the open_driver() method.  The setThreadPoolMaxThreadCount() method is only used in a few select processes to modify this value (e.g. surfaceflinger sets the value to 4).
Reply all
Reply to author
Forward
0 new messages