Skip to content

Weblog About Jim Jim's Resume Discussion Mailing List Search
  You are not logged in Link icon Log in Link icon Join
You are here: 900,000 processes in Erlang

This Thread

1 message

(no replies yet)

Twitter Updates
Pro Services

Jim Roepcke specializes in WebObjects (Java), Plone (Zope, Python), and Cocoa (Objective-C).

  • consultation
  • development
  • documentation
  • mentoring

Contact Jim for more information.

Python Tutorial

I presented the Introduction to Python for Plone developers tutorial at the first Plone conference in October 2003. Slides and Video are available to all on the plone.org site.

Badges

Proud Member of the ACM

Proud Member of the Association for Computing Machinery

RSS reader for Mac OS X

NetNewsWire: More news, less junk. Faster

Fantasy Trading of HBWT at:

Listed on BlogShares

Design by:

Powered by Plone
Blog Directory - Blogged
Log in
Name

Password

 
I forgot my password; please send me a new one.
 
 

900,000 processes in Erlang

Message Details
Posted
1/24/2008; 4:49 AM by Jim Roepcke
Last Modified
1/24/2008; 4:50 AM by Jim Roepcke
In Response To
(#Top of Thread.)
Label
None.
Read Count
142
Message Body
I started up an Erlang shell with a one million process limit. (erl +P 1000000)

I then fired up the multiple consumer / multiple producer problem I whipped up for my concurrency class, and asked for 400,000 consumers and 500,000 producers. It actually worked!

I tried it with about 100,000 processes first, and that was no problem, but I was skeptical that it would start nearly a million processes. But it appeared to work fine. My machine was getting really HOT and unhappy so I stopped it and haven't had time to prove correctness on that sample yet, but at a glance it looked like it was doing the right thing.

One of the nicest things about this was it was automatically using both cores in my MacBook Pro without having to write a single line of code to ask it to do that. Maybe that's not earth-shattering these days, but it's nice anyway. :-)

Geez, I'm still mesmerized by that Rick Nash goal from last week's post!

I want to try out my program on my graphics prof's 8-core Mac Pro and see how many processes I can start on it. Muuuuhahahaha!!!

Replies
None.

September 2008
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30  
Aug Oct
 
Sponsors
Research

Jim Roepcke is Willing to Fail

Books

I'm currently reading:

I'm currently reading Programming Erlang

I co-authored:

I co-authored this book