performance on davidchua https://dchua.com/tags/performance/ Recent content in performance on davidchua Hugo -- gohugo.io en-us Thu, 03 Dec 2015 00:00:00 +0000 Getting Multi-threaded Thin to Work in Development (Rails 4) https://dchua.com/posts/2015-12-03-getting-thin-to-work-in-development/ Thu, 03 Dec 2015 00:00:00 +0000 https://dchua.com/posts/2015-12-03-getting-thin-to-work-in-development/ Rails 4 If you’re attempting to run thin to work in threaded mode for the very first time, you might encounter that no matter what you do, your site won’t load. Running $ thin start --threaded Will return the typical startup output >> Thin web server (v1.5.1 codename Straight Razor) >> Maximum connections set to 1024 >> Listening on 0.0.0.0:3005, CTRL+C to stop But you’ll never be able to access the site no matter what you do. In OSX, SD Card transfers can be painfully slow https://dchua.com/posts/2014-03-24-in-osx/ Mon, 24 Mar 2014 00:00:00 +0000 https://dchua.com/posts/2014-03-24-in-osx/ Over the weekend, I was trying to experiment with some SD card images for the UDOO Board. When copying a new image into my SD Card, I realized that I was getting a really ridiculous slow writing speed of 1MB/s. This means that an 7GB image will take 100+ minutes just to copy. It didn’t feel right with me and doing some quick googling, I’ve found out that if I’m doing a dd directly to /dev/diskX which is where the sdcard is normally mounted, I’ll be subjected to this slow speed.