The G5 I'm using freezes fairly often (about once a day). After checking through Apple's knowledge base, it seems like the culprit is often bad Samsung RAM from Apple, which is what this machine has.
Your RAM may be running slower than its capacity—here’s the simple BIOS setting that unlocks its full speed.