Parallel Processing on shared hosting

software development

#1

How do services such as Dreamhost handle multi-threaded applications? Will they refuse to run or will they overlook the fact that you’re stealing every processor they have?

For example a server side program that was originally designed for a dual core CPU, will Dreamhost allow the program to use up two processors?


#2

I’ve seen some users complain that their applications were killed.

You may want to refer to this article http://wiki.dreamhost.com/index.php/Persistent_Processes

and these two posts http://discussion.dreamhost.com/showthreaded.pl?Cat=&Board=forum_troubleshooting&Number=68829&page=&view=&sb=&o=&vc=1#Post68829

http://discussion.dreamhost.com/showthreaded.pl?Cat=&Board=forum_troubleshooting&Number=64031&Search=true&Forum=All_Forums&Words=killed&Match=Entire Phrase&Searchpage=1&Limit=25&Old=allposts&Main=64031

as long as your proces is not expensive, it will be fine here

Save [color=#CC0000]$97[/color] (max discount) on dreamhost plans by using promo code: [color=#CC0000]97CRAZY[/color].


#3

I agree, I have a feeling that DH will let you run the application, and it will use both CPUs, however, if an application is designed to use multiple CPUs, it’s quite possible that it is very CPU-intensive.
If you know that your application is going to cost a lot of CPU-time, I would test it on a comparable non-Dreamhost machine first, or test it on DH servers at night, when load times are lower, and keep a very close eye on the output of the “top” command.
I can pretty much guarantee that Dreamhost will prohibit you from continuing to run the process if it starts to slow down the system. I think it’s best not to attract their attention at all unless it’s absolutely necessary. If you don’t have them watching over your shoulder, you probably have a little more leeway in what you can afford to run. :slight_smile:


Patrick
http://inmyholyopinion.com
http://patrick.salami.name


#4

Answers that, much appreciated :slight_smile: