the SIZE of ram has no effect on your overclock, the SPEED of the ram has an effect on it, but only above a certain point. Light overclocking can be done without affecting, or being affected by, your ram.
For example, I can OC my Q6600 from 2.4ghz to 3ghz without having to OC the ram as well... but if I want to OC my CPU further it will OC the ram at the same time. Making Ocing past that point more complicated. And potentially dependent on the quality of my ram.
Start by reading the overclocking guides that are stickied in the THIS FORUM. they have valuable information about the terms and the way things work. Notice there is not an i7 OC guide yet, so after reading the core2quad and core2duo OC guide go and look up information about how overclocking an i7 DIFFERS from overclocking those, because it DOES, and there are certain risks of damaging your CPU