Walk and Run

Walk and Run

Leon Ho  //  Founder of Stepcase (http://stepcase.com) and Lifehack (http://lifehack.org).

Jun 24, 2010 / 6:16am

Memory usage of ruby vs ruby-enterprise

Using normal ruby:

--------- Apache processes ----------

PID    PPID   VMSize   Private  Name

-------------------------------------

32394  1      12.1 MB  0.2 MB   /usr/sbin/httpd.worker

32406  32394  15.3 MB  0.6 MB   /usr/sbin/httpd.worker

32455  32394  15.3 MB  0.6 MB   /usr/sbin/httpd.worker

32550  32394  15.2 MB  0.5 MB   /usr/sbin/httpd.worker

### Processes: 4

### Total private dirty RSS: 1.97 MB

 

 

-------- Nginx processes --------

 

### Processes: 0

### Total private dirty RSS: 0.00 MB

 

 

----- Passenger processes -----

PID    VMSize    Private  Name

-------------------------------

32401  3.8 MB    0.3 MB   /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/ApplicationPoolServerExecutable 0 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/bin/passenger-spawn-server  /usr/bin/ruby  /tmp/passenger.32394

32402  18.7 MB   7.5 MB   Passenger spawn server

32414  83.3 MB   54.9 MB  Passenger ApplicationSpawner: /var/srv/scbackend

32418  117.6 MB  89.3 MB  Rails: /var/srv/scbackend

32440  88.5 MB   60.1 MB  Rails: /var/srv/scbackend

32461  86.5 MB   58.1 MB  Rails: /var/srv/scbackend

### Processes: 6

### Total private dirty RSS: 270.05 MB

 

Using ruby-enterprise:
--------- Apache processes ----------
PID    PPID   VMSize   Private  Name
-------------------------------------
30613  1      12.1 MB  0.2 MB   /usr/sbin/httpd.worker
30636  30613  15.3 MB  0.5 MB   /usr/sbin/httpd.worker
30638  30613  15.1 MB  0.4 MB   /usr/sbin/httpd.worker
30646  30613  15.3 MB  0.6 MB   /usr/sbin/httpd.worker
### Processes: 4
### Total private dirty RSS: 1.64 MB

-------- Nginx processes --------

### Processes: 0
### Total private dirty RSS: 0.00 MB

---- Passenger processes -----
PID    VMSize   Private  Name
------------------------------
30620  4.0 MB   0.3 MB   /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/ext/apache2/ApplicationPoolServerExecutable 0 /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.14/bin/passenger-spawn-server  /usr/local/bin/ruby  /tmp/passenger.30613
30621  17.3 MB  5.2 MB   Passenger spawn server
30630  93.0 MB  3.7 MB   Passenger ApplicationSpawner: /var/srv/scbackend
30660  97.3 MB  30.9 MB  Rails: /var/srv/scbackend
30662  95.0 MB  25.0 MB  Rails: /var/srv/scbackend
30664  93.0 MB  9.0 MB   Rails: /var/srv/scbackend
30666  93.0 MB  3.9 MB   Rails: /var/srv/scbackend
30668  93.0 MB  26.1 MB  Rails: /var/srv/scbackend
### Processes: 8
### Total private dirty RSS: 104.02 MB

 

Loading mentions Retweet

Comments (0)

May 21, 2010 / 10:26pm

What's the ACTUAL use cases for iPad?

Let's review my expected and actual use cases of iPad!
  • A presentation tablet. Hope Apple will release a VGA cable soon!
    • The actual use case for business. I haven't got a VGA cable yet, but I use iPad to present and pitch.
  • A digital photo frame. Black piano color. Very cool.
    • Seldom.
  • An alarm clock, sitting next to my bed.
    • iPad is next to my bed when I sleep, but I still use iPhone as my alarm clock.
  • A dashboard. Show me all the stats and metrics I need.
    • There are no apps for that yet, but I really want one!
  • A newspaper and magazine stand.
    • It becomes my magazine stand!
  • A game console.
    • Not yet. I don't see any good games, yet.
  • An eBook reader? I am not convinced by its battery life and readability. I own a Kindle and the readability of e-ink is quite close to paper. Let's see how iPad feels.
    • Surprisingly I use iPad more often for eBooks than Kindle now. Even though e-ink treats my eyes better than LCD, I don't want to carry two devices around. There's really an edge of a multi-purposes device.

Loading mentions Retweet

Comments (0)

Jan 27, 2010 / 9:07pm

iPad - The surprises and how I will use it

Yes, I stayed up for the event. I couldn't wait on the announcement and see how it will affect people's daily life. As there were so many rumors circulating around before the announcement, most of the stuff in the event are underwhelming. There are some surprises though:

  • $499 as the lowest price. Right price point to compete with Kindle DX.
  • Keyboard dock is very cool.
  • iWork for iPad.
  • No camera. With camera, you can do video conferencing on iPad and other possibilities. Now it is crippled.
  • Uses MicroSIM. Why are they using this new "standard" when there aren't many carriers supporting it? Is it another way of "locking" the device?

How I will use iPad:
  • A presentation tablet. Hope Apple will release a VGA cable soon!
  • A digital photo frame. Black piano color. Very cool.
  • An alarm clock, sitting next to my bed.
  • A dashboard. Show me all the stats and metrics I need.
  • A newspaper and magazine stand.
  • A game console.
  • An eBook reader? I am not convinced by its battery life and readability. I own a Kindle and the readability of e-ink is quite close to paper. Let's see how iPad feels.
How will you use it?
Loading mentions Retweet

Comments (2)

Jan 4, 2010 / 6:28am

Power Napping

If you lack of sleep recently, try a power nap to supplement it.

  • Drink coke, coffee or green tea before you nap.
  • As soon as you finish the drink, set an alarm of 15 minutes.
  • Wake up as soon as the alarm goes off. It's counterproductive if you sleep more than 20 minutes.

Loading mentions Retweet

Comments (1)

Dec 30, 2008 / 12:18am

Stepcase office's new coffee machine!!

Semi-auto machine, but it is a good one!!

 Photos by Steadycam Premium on iPhone.

     
Click here to download:
Stepcase_offices_new_coffee_ma.zip (1024 KB)

Loading mentions Retweet

Comments (0)

Dec 25, 2008 / 8:32am

Decorated christmas tree and can't-get-my-hands-off gadgets

     
Click here to download:
Decorated_christmas_tree_and_c.zip (9196 KB)
Loading mentions Retweet

Comments (0)

Dec 21, 2008 / 3:38am

My friend's new dog.. Very cute...

Photo by Steadycam Premium on iPhone.

Loading mentions Retweet

Comments (0)

Dec 21, 2008 / 1:14am

Cute Christmas Sheep!

Photo by Steadycam Premium on iPhone

Loading mentions Retweet

Comments (0)

Dec 20, 2008 / 5:09am

Need to bring the Christmas tree all the way from Shatin to home

Photo by Steadycam Premium and CameraBag on iPhone

Loading mentions Retweet

Comments (0)

Dec 13, 2008 / 10:00am

Yummy birthday dinner tonight... Look like I will have another great one tomorrow :)

Shots by Steadycam on iPhone -
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=298256007&mt=8

     
Click here to download:
Yummy_birthday_dinner_tonight..zip (253 KB)

Loading mentions Retweet

Comments (0)