You can get it to 3.9GHz on all 4 cores on certain motherboards and in order to reach 4GHz you'll need 102.78 BCLK which overclocks the RAM, hard drive, north chipset, etc. but shouldn't be too big of an issue until you go over 105 BCLK. Turn off turbo, speed step and set LLC to 5 (I think it was) and leave voltage at default. I use an ASRock Z77 Pro4 with an i5 3550 and it runs 3.9GHz beautifully.
Otherwise on most motherboards, you'll only able to get to 3.7GHz.