Ideally, you should perform maintenance on your computer at least every 6 months. This includes running a virus scan, backing up data, defragmenting/optimizing the hard drive, and performing disk cleanup. Additionally, you should clean your keyboard and mouse, dust off the inside of the computer, and check the fans for excessive dust buildup.