> On Wed, 2007-02-14 at 00:18 -0500, Chris King wrote: > > Hi, > > > > I got curious about fthreads and decided to try implementing the > > Shootout's "cheap concurrency" test [1]. However I'm encountering > > very odd problems. > > BTW: there is a 'performance' target in the build system which > builds a custom driver and spawns threads and sends them messages. > > This test make 500,000 threads and sends each one a message. > On my AMD64 this takes 2 seconds: this is a transaction > rate of 500K/sec. This easy solves the so-called '10K' problem, > in fact it makes it into a joke.
Not quite - the c10k problem is to do with serving thousands of clients, i.e. disk->network traffic. felix's considerable contribution to this has been the complete removal of the scheduler consideration*, pushing the issue back to the OS's socket/disk IO implementation and related readiness interfaces**. In felix this part is handled by the demux and faio components. So, in fact felix gives you the freedom to completely ignore, in style, the artificial 10k barrier, _provided_ your operating system can hack the io. * you don't have to worry about stacks, nor rewriting all your code as a state machine. ** so the question now is, which OSes can handle the c10k prob? select-like, not so sure, win32 IOCP was a contender, osx 10.3 less so, kernel panicking at around the 6000 connection mark and for solaris evtport and linux epoll it's hard for me to say because I always run them virtualised on a mac..., anyway, felix's performance for these interfaces/operating systems should look exactly like this: http://bulk.fefe.de/scalability/ If it doesn't, it's a bug. Unfortunately neither felix nor demux are mentioned on the c10k kegel page. http://www.kegel.com/c10k.html ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language