"Ghz" is a measurement of operations per second. It's about speed, not memory.
I assume you're referring to a CPU? Most modern processors have a range of frequencies (operations per second) at which they can run. Clocking up higher (=faster = more operations per second) requires more power and produces more heat. In lots of situations (particularly laptops or mobile, but even in desktops too) CPUs are heat constrained. In other words if they run at their highest speed they'll generate too much heat and have to slow themselves down to avoid getting to hot. In some situations you end up power constrained (it could run faster but the CPU is drawing more than it's rated power).
To try and balance performance and heat/power, modern...