Over the last few weeks it has been extremely frustrating. My macbook would just freeze every 5 seconds for no particular reason at all, I already did everything I can to try and solve this problem. However, I found no hardware problems which led me to think this was a software issue. Therefore I even resetted my whole mac back into factory settings (took me 17hours) but it still lags like crazy. no page outs, a lot of free RAM space. SMART utility says that there are no errors with my hard-drive. I even have enough disk space (much more than 10%). Even Disk Utility says everything is fine... I gave the "purge" command on my terminal and cleared all of the library caches. This is driving me insane, I have tried everything possible to try and get rid of this annoying 5 second lags. Even typing this on the forums took me about an hour because I can only type for 5 seconds before the computer lags for a 10+ seconds. I really don't want to buy a new computer because this model is a mid-2012 13inch Macbook Pro (its just a little over 1 year old).