Browse thread
[Caml-list] Will Ocaml use a 4-way SMP box without splitting the program into separate processes?
- Mattias Waldau
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Mattias Waldau <mattias.waldau@a...> |
| Subject: | [Caml-list] Will Ocaml use a 4-way SMP box without splitting the program into separate processes? |
As I understand it, Ocaml has one master lock for handling threading. Doesn't this mean that a process can never use more than one processor? And if that is true, following Xavier Leroy idea "Using separate processes for the HTTP server/servlet container and for the servlets (but not starting a new servlet process on each request like CGI does)" is the only scalable way to go. Because, I don't think a solution that doesn't use a SMP-machine effectively is a good solution. > [mailto:owner-web-caml@quatramaran.ens.fr]On Behalf Of William Chesters > Depends on the kind of market you are thinking of. The performance we > get out of Melati+postgres on a cheap PC is adequate for the great > majority of all known websites, without really trying. If you put a > good ocaml-based equivalent on a 4-way SMP box talking to a database > on another box, you would be comfortably into the hundreds of hits per > second I reckon. What have I misunderstood? /mattias ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr