Posted: January 22nd, 2010 | Author: Huyen Tue Dao | Filed under: Development | Tags: 360flex, conference, interview, speaking | No Comments »
Shameless self-promotion do followeth. Forgive me. And come to see my presentation at 360|Flex. O.o
360FLEX – THE SPEAKERS – HUYEN TUE DAO
Posted: January 5th, 2010 | Author: Huyen Tue Dao | Filed under: Development | Tags: amdahl's law, formula, performance, speedup | No Comments »
Okay, I promise I will try very hard not to bore you in the next few hundred words. But basically I just want to present a way of determining how much faster a system will be if you speedup one (or more) or its components.
Say that you have an enhancement that can be made to speedup some part of an application.
And say that you know how much runtime you can save with the enhancement.
And say that you know what fraction of the total runtime that part of the application takes up.
Then you can determine how much you will speedup the application as a whole by making that enhancement.
Why is this valuable?
You might be in a situation where you have to justify time and effort spent (and fancy formulas help to dazzle the crowd).
You might have two different enhancements or changes that could be made but only have time to do one. Which should you choose?
You might just want to know how badass your idea really is.
So, I present to you Amdahl’s Law:




Formulas borrowed lovingly from Hennessy + Patterson’s Computer Architecture: A Quantitative Approach
You could use this formula for any other performance metric. For example, if you were more concerned with memory consumption, the formulas still hold: just replace “runtime” with “memory use” and “speedup” with “memory reduction.”
Hope you find this helpful someday. I’ll try to keep so many equations out of the next post.
Posted: January 3rd, 2010 | Author: Huyen Tue Dao | Filed under: Technology | Tags: counter, hard disk, main memory, mom, refrigerator | 5 Comments »
I guess it’s my bad for using the word “memory” interchangeably for main memory and hard disk space to my parents. They’re pretty computer enthusiastic but don’t quite know all the ins and outs yet. I built them a new box with plenty of RAM this time around since that had been the big issue before, dragging the old box down. I assured them that “You have plenty of memory.” So fast forward a few months and I get a call saying that the “Computer says it’s running out of memory. You said we had plenty of memory!” Yikes.
I tried to find a way to explain the problem without getting all bogged down in tech details, so I tried to explain it like this:
Mom, your computer has two kinds of memory. One is called its “main memory,” and the other is called the “hard drive.” They both store information, but they’re pretty different. Think of your main memory as your kitchen counter. When you’re cooking you do your actual work there. You can put some stuff on the counter but not a lot, but when you need stuff on hand to grab quickly you put it there. Also in general you can’t leave stuff on your counter forever. You only use your kitchen counter when you’re cooking. Think of the hard drive as your refrigerator. Its for long term storage. You can put a lot more stuff in there, but it takes a little more time to go over, open the door, look for what you need (especially say if it’s hiding behind the milk), and bring it over to the counter where you’re actually doing stuff.

Your main memory.
Omelet fixings not included.

Your hard disk.
Need to defrag the eggs.
So when we upgraded your “main memory” we were giving you a bigger counter so you’d have more space to fit more stuff. That helps a lot if you’re making something really complicated or just doing a lot of cooking. But I forgot that you like to take a lot of photographs. Think of it as how you like to grow lots of your own veggies at home which you then store in the fridge. So after putting so many homegrown tomatoes in the fridge you basically ran out of fridge space (ran out of “hard drive” space). So what we need to do is get you a bigger refrigerator or at least an extra, maybe smaller one to hold just your veggies or drinks or something like that.
My mom really seemed to like and understand that pretty well. I had originally gone with long-term vs. short-term memory, but our family is all about the food-service business so I thought maybe going-with-what-you-know would help.
I suppose if you want to get really into it you could compare a cutting board to a cache, but maybe that’s a little too nerdy. O.o
I hope if you ever need ‘xplain to your mom or another loved one that this helps a little.
Now excuse me, I think I might have put that zip file I need behind the milk.