You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Santosh Gangadhar <sa...@wirkle.com> on 2009/09/15 13:14:48 UTC
Performance of Async IO for database bound application
Hi all,
Just want to validate if it possible to get fair performance and scalability
using ExecutorFilter with a thread pool of 100-150 threads? In such a
condition the IO service threads will contend with the executor threads
(100-150) for CPU. But if it is made sure that IO service threads do not
perform only CPU bound operations then they should get the CPU without
waiting much because the executor threads will mostly be waiting on database
IO. Is this presumption correct or is something missing?
Thanks,
Santosh.
--
Santosh Gangadhar
Technical Lead, Wirkle
http://www.wirkle.com
+91 989.902.2981 (Mobile)
https://twitter.com/santo_tweets
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Wirkle is a leading product engineering firm focused on developing software
products for the mobile including telecom grade client/server platforms, SMS
applications and Mobile Internet (WAP). The Company has designed, developed,
maintained, supported, tested and ported several mobile platforms for
hundreds of handsets of Nokia, Sony Ericsson, Samsung, LG, Motorola,
Blackberry, Pocket PC and iPhone.
Wirkle's expertise in the mobile space spans Social Networking, Instant
Messaging, Location Based Services, Multimedia Streaming, Banking,
Enterprise applications, Payments, Barcode Scanning and beyond. Millions of
mobile users across the globe today are using products developed by Wirkle
through various carriers across multiple geographies including North America
– AT&T, Sprint/Nextel, Boost Mobile; Europe – Telenor; Asia – Airtel, Idea
and more. For more information please visit: www.wirkle.com
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Re: Performance of Async IO for database bound application
Posted by Ashish <pa...@gmail.com>.
Santosh,
I am slightly confused here. Not sure if I understood things correctly.
AFAIK, we can't control thread scheduling in Java and the spec
recommends against it.
For VM, all shall be threads, be it IOService or from executor chain.
If you want, you can share the same Executor for IoService as well as
in FilterChain.
You can create an Executor beforehand and pass it on while initalizing
IoService.
Don't think, adding high number of threads shall scale you application.
I guess you are evaluating this for one of Wirkle's platform.
thanks
ashish
On Tue, Sep 15, 2009 at 4:44 PM, Santosh Gangadhar <sa...@wirkle.com> wrote:
> Hi all,
>
> Just want to validate if it possible to get fair performance and scalability
> using ExecutorFilter with a thread pool of 100-150 threads? In such a
> condition the IO service threads will contend with the executor threads
> (100-150) for CPU. But if it is made sure that IO service threads do not
> perform only CPU bound operations then they should get the CPU without
> waiting much because the executor threads will mostly be waiting on database
> IO. Is this presumption correct or is something missing?
>
> Thanks,
> Santosh.
>
>
> --
> Santosh Gangadhar
> Technical Lead, Wirkle
> http://www.wirkle.com
> +91 989.902.2981 (Mobile)
> https://twitter.com/santo_tweets
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Wirkle is a leading product engineering firm focused on developing software
> products for the mobile including telecom grade client/server platforms, SMS
> applications and Mobile Internet (WAP). The Company has designed, developed,
> maintained, supported, tested and ported several mobile platforms for
> hundreds of handsets of Nokia, Sony Ericsson, Samsung, LG, Motorola,
> Blackberry, Pocket PC and iPhone.
>
> Wirkle's expertise in the mobile space spans Social Networking, Instant
> Messaging, Location Based Services, Multimedia Streaming, Banking,
> Enterprise applications, Payments, Barcode Scanning and beyond. Millions of
> mobile users across the globe today are using products developed by Wirkle
> through various carriers across multiple geographies including North America
> – AT&T, Sprint/Nextel, Boost Mobile; Europe – Telenor; Asia – Airtel, Idea
> and more. For more information please visit: www.wirkle.com
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
--
thanks
ashish
Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal