Overhead

Eric Hodel | Wed, 15 Feb 2006 08:07:00 GMT

It seems to be Apache and mod_proxy that are making the images slower. ab shows going straight to webrick gives approximately 110 requests per second for -c 100 -n 1000 while webrick via mod_proxy gives approximately 90 requests per secord for the same settings. I wish I could go straight to webrick from the load balancer.

Posted in

MogileFS + NFS = hard

Eric Hodel | Tue, 14 Feb 2006 08:22:00 GMT

Just to salvage my brain, here’s what I need to do to make it work on 43 Things & co.:

  • Make sure www has a homedir (actually, no, fix the code to not need sendfile())
  • Make sure mogstored is set up with a umask of 002
  • Make sure www is in the mogilefs group for all hosts
  • Mount all the nfs shares in the right spots

Posted in ,

FakeMutex

Eric Hodel | Wed, 11 Jan 2006 01:23:00 GMT

Adding Mutex makes things slower, but you don’t always need it. For our memcache library I’d like to avoid performing locking when we’re running single-threaded (since that’s what happens most of the time). So, I came up with the idea of FakeMutex that simply yields inside its #synchronize method.

FakeMutex doesn’t give back all the performance of not having locking at all, but it does prevent the code from being messed up with lots of tests to see if we should try to lock or not.

Read more...

Posted in ,

Yay! Faster!

Eric Hodel | Thu, 22 Sep 2005 09:52:00 GMT

Bob did some database tuning, and I did some process-size limit tuning, and we nearly cut request time in half:

<samp>2 Days ago:

Request Times Summary:         Count   Avg     Std Dev
ALL REQUESTS:                  628528  0.503   2.632

ThingsController#view:         131293  0.996   3.007
PeopleController#view:         64614   0.519   1.458
RssController#uber:            60804   0.229   1.013
PeopleController#progress:     32300   0.689   1.268
RssController#entries:         31898   0.397   0.943

Yesterday:

Request Times Summary:         Count   Avg     Std Dev
ALL REQUESTS:                  761867  0.273   1.960

ThingsController#view:         148546  0.582   3.060
PeopleController#view:         79980   0.241   0.215
RssController#uber:            68893   0.173   1.591
PeopleController#progress:     57876   0.369   0.186
EntriesController#view:        45982   0.097   0.090</samp>

Posted in

I love unit tests

Eric Hodel | Sun, 18 Sep 2005 08:01:00 GMT

I just discovered we’ve had a23 broken RSS feeds since February!

Posted in , ,

Older posts: 1 2