Multi-processing or Multi-threading?
Much has been said about whether multi-threading is more efficient than multi-processing.
Apache 2.0 has introduced the MPM Worker Model which supports multi-threading in addition to the earlier multi-processing model.
But just how efficient is multi-threading vis-à-vis multi-processing in the context of enterprise software?
I recently did some consultancy for a high-volume web-service facing performance issues, which was exposing a legacy system and running on Apache with mod_gsoap library for SOAP handling.
During the architecture review, I discovered the system uses multi-process (process per request) model, where each request runs for a few seconds. The system receives ~1000 concurrent requests at peak hours and ~600000 requests / day.
I was considering moving to a process-pool + thread-pool model, and decided to quantify the expected benefits through a small app-specific prototype as follows:
Apache 2.0 has introduced the MPM Worker Model which supports multi-threading in addition to the earlier multi-processing model.
But just how efficient is multi-threading vis-à-vis multi-processing in the context of enterprise software?
I recently did some consultancy for a high-volume web-service facing performance issues, which was exposing a legacy system and running on Apache with mod_gsoap library for SOAP handling.
During the architecture review, I discovered the system uses multi-process (process per request) model, where each request runs for a few seconds. The system receives ~1000 concurrent requests at peak hours and ~600000 requests / day.
I was considering moving to a process-pool + thread-pool model, and decided to quantify the expected benefits through a small app-specific prototype as follows:
- Process Model Scenario:
N child processes spawned in a test run, each process handles 1000 requests. Total number of requests = N * 1000
- Process-Pool/Thread-Pool Scenario:
M child processes spawned in a test run, where each process spawns P worker threads. Each thread handles 1000 requests. Total number of requests = M * P * 1000
In both the cases, total number of requests is constant for a given test run.
Based on this prototype, I got the following results on a Linux FC4 box, Intel Core Duo processor with 1 Gb RAM:
In both the cases, total number of requests is constant for a given test run.
Based on this prototype, I got the following results on a Linux FC4 box, Intel Core Duo processor with 1 Gb RAM:
1 comment:
A worthwhile Betting Strategy incorporates both a reliable Selection System and a sound Staking Plan. You can't buy a good Betting Strategy, although it may well be true that the individual components themselves can be purchased. Both the acceptance of the need for a worthwhile Betting Strategy and the will to apply it properly must emanate from within you. Once you have acknowledged that satisfying such a need is vital to your betting success, you then have to work hard at (i) finding a good Selection System and (ii) deciding upon an appropriate Staking Plan that best suits your particular style and budget (and which won't bankrupt you - because many have the potential to do so).
football betting [url=http://www.pulsebet.com][img]http://www.betus.com/images/newsite1024/images/logos/logo.png[/img]uk football betting[/url]
For all you know, a 12-year-old kid can do better than you. Why? With a limited stash, he has to be careful, so he thinks twice before placing a bet. That's one of the many football betting tips you have to learn. You have to think about the health of your bankroll before you place a bet. You should know how much your bet would earn you. You might fall for placing a £3000 just to win £30! What a disaster. [url=http://www.pulsebet.com]football bets[/url] Myth #6: Wiseguys bet more on games they really like.
Reality: More than any misconception, this myth probably best illustrates the difference between how professionals and amateurs think. A professional gambler believes that if a game is worth betting, it's worth betting significantly. Professional bettors generally wager approximately the same amount on every game they play. The concept of a "best bet" is a media creation that is foreign to professional sports bettors. Professional gamblers believe all their bets are good ones; that's why they make them.
There are many ways in which men can get away with playing with their balls, much to the chagrin of wives and girlfriends, and one of them is when they’re playing football. Football, more commonly known as soccer in the United States, has taken most of the world by storm – from being one of Europe’s, South America’s, and Africa’s favorite pastime to being the latest craze in far east Asia and the United States.
Post a Comment