Why I like CouchDB

I struggle a lot with CouchDB, but this is why I like it:

top - 21:51:21 up 150 days, 23:57, 14 users,  load average: 0.00, 0.03, 0.05
Tasks: 164 total,   1 running, 163 sleeping,   0 stopped,   0 zombie
Cpu0  : 71.5%us, 11.6%sy,  0.0%ni, 16.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu1  : 70.2%us, 12.9%sy,  0.0%ni, 16.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu2  : 72.8%us,  8.7%sy,  0.0%ni, 18.2%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu3  : 70.4%us, 10.8%sy,  0.0%ni, 18.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu4  : 72.3%us, 12.1%sy,  0.0%ni, 15.6%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu5  : 77.0%us,  9.5%sy,  0.0%ni, 13.5%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu6  : 69.1%us, 12.9%sy,  0.0%ni, 17.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu7  : 56.9%us, 11.6%sy,  0.0%ni, 31.5%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   8191788k total,  8038260k used,   153528k free,      164k buffers
Swap:   642592k total,    51628k used,   590964k free,  7005724k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND  
27708 couchdb   20   0  530m 113m 2104 S  563  1.4   1149:06 beam.smp 
31479 couchdb   20   0  207m  59m 1644 S   24  0.7  31:33.97 couchjs  
31947 couchdb   20   0  206m  58m 1660 S   24  0.7   6:54.28 couchjs  
31189 couchdb   20   0  250m 134m 1652 S   24  1.7  26:58.28 couchjs  
31481 couchdb   20   0  209m 135m 1652 S   23  1.7  31:35.52 couchjs    
31956 couchdb   20   0  206m  44m 1660 S   23  0.6  10:08.71 couchjs  

That is, eight cores actually being used. I don’t know what magic is in Erlang, but is is super cool to see the beam.smp process go to town and chew up CPU when it has to do so.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s