Strange PC Lag

imdan

Reputable
Apr 23, 2014
5
0
4,510
First off, I am not sure if this is the correct sub forum to post this problem; please move the thread to the appropriate place if need be.

I recently built a new pc by myself about five months ago. Until today I did not have any issues whatsoever. It seems when I load something, my pc will receive massive lag spikes that will cause everything on the screen to be frozen and unresponsive. However, I can still move around my mouse cursor but clicking has no effect. The freeze time lasts anywhere from 15 seconds to over a minute. This is also apparent when I try to play Starcraft II. For those familiar with the game whenever I build something and load up a new unit/building sprite I would get a lag spike that causes my screen to freeze. After about 30 secs everything returns to normal. The system boot time has also been affected by this issue. Before today, my boot time was about 10-15 seconds. Now when booting up there is a black screen for about 2-3 minutes before moving onto the windows logo screen with progress wheel. Even as I type this thread I have received two different sporadic lag spikes. One lag freezes everything but I am still able to type.The words just appear after lag spike is gone. The second lag gives me a not responding error with firefox and a progress wheel on my cursor. Chrome has also been greatly affected by the lag spikes to the point that is usable. On a typical day I use chrome to listen to music via youtube while I play sc2. I have since uninstalled Chrome.

In terms of malware and viruses, I ran Windows Defender and Malwarebyte scans. Both came out clean. My friend suggested that it might be a hard drive problem so I downloaded Crystaldrivemark to test my hdd performance. Seq speeds were about ~150 for both read and write. In addition I ran prime95 with no noticeable issues.

Does anyone have any ideas what this issue could be? I am really confused as to where the problems stems. If anyone has any advice I would greatly appreciate it.

Temperatures seem to be fine. CPU at idle is ~35-40. CPU at 100% is ~65. GPU at idle is ~31.
PC specs for reference:
CPU: Intel i5 4670k (Has not been overclocked)
Cooler: Cooler Master Hyper 212 Plus
Motherboard: ASRock Z87 Pro4
GPU: EVGA 750ti FTW
HDD: Western Digital Blue Caviar 1TB
PSU: XFX TS550
OS: Windows 8.1 64bit

Please let me know if any additional information is needed. Thanks in advance.
 
Solution
disabling services is not a fix, it is a workaround for problems in your drive subsystem.
people often only quick format drives rather than waiting several hours for a full format to complete.
The quick format will not detect sectors that have correctable read errors, windows 8.x will attempt to find and move the data off of these sectors and may have to read each spot hundreds of times before it gets a proper read and can relocate the data and mark the sector as bad. It starts this after your system is Idle for 5 mins and before your drive goes to sleep. Often it just does not get enough time and you should set your system power options to high performance and leave windows running overnight so it can complete the process.

Or it...

aolish

Distinguished
Dec 15, 2012
62
0
18,660
There are a couple of things you can do to try and pinpoint the source of the problem. Just in case you haven't, have you tried factory defaults on the bios? You just never know what accidental changes might of occurred. Give it a go, if that doesn't work this could very well be an OS gone bad issue. To try and figure this out, download a Linux variant to a USB stick (Ubuntu perhaps) and boot off the USB stick and browse the web for a bit and see if the lag occurs. If the lag occurs (which you obviously don't want to happen) then there MIGHT be a possible hardware problem. If not, it could be an OS corrupt issue or another software issue that is causing the lag. A quick remedy for this is to completely format and reinstall Windows. Other things you can try though before you do that is:

-Make sure your Chipset drivers are up to date.
-Test your ram with Memtest86
-Do another virus check using another vendor just in case defender might of missed anything.

Keep us posted. =]
 

imdan

Reputable
Apr 23, 2014
5
0
4,510
Thanks for the reply. I ran memtest86 and no errors were found after one pass. Also, my drivers should be up to date.

Strangely enough, after performing memtest86 there has been a slight performance boost. Boot times have been reduced closer to ~20 secs. However lag spikes still occur although less frequent. Could you link me to a guide on how to utilize linux/ubuntu as you described? I am unfamiliar with the platform. Thanks again.
 

aolish

Distinguished
Dec 15, 2012
62
0
18,660
I hope it goes well. Though just a guess, even though you are using a separate OS on a separate interface like the USB port. I think it would be better if you installed Ubuntu on an ENTIRELY separate HDD if at all possible to get the best possible determination. The USB interface might be slower compared with your traditional options interfaces on your board.

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

EDIT: You might need a USB stick that is larger than 2GB. Also be sure to backup all of your data before you do this for precautionary reasons. :D
 

imdan

Reputable
Apr 23, 2014
5
0
4,510
Unfortunately I do not have a separate HDD so I will have to see what I can do with a usb drive.

I also noticed that during period of lags my disk usage/activity spikes up to around 100%. In one lag instance, the following process seemed to be using my hard drive the most: Service host: Local System (Network Restricted)
9UtNVOd.png


Other instances of lag caused adobe flash to crash or disk usage to spike but no process seemed to be the problem. Could this be signs that my hard drive is about to go bad?
Hqv2HkM.png

 
disabling services is not a fix, it is a workaround for problems in your drive subsystem.
people often only quick format drives rather than waiting several hours for a full format to complete.
The quick format will not detect sectors that have correctable read errors, windows 8.x will attempt to find and move the data off of these sectors and may have to read each spot hundreds of times before it gets a proper read and can relocate the data and mark the sector as bad. It starts this after your system is Idle for 5 mins and before your drive goes to sleep. Often it just does not get enough time and you should set your system power options to high performance and leave windows running overnight so it can complete the process.

Or it could be one of the various bugs LOL
BIOS bug update BIOS
Chipset driver bugs Update CPU Chipset driver,
corrupted file system should be self corrected unless you have certain malware infecting the file system.
run cmd.exe as a admin then run the system file checker
sfc.exe /scannow (see if it finds corruption in a core windows file)
corrupted search index database : disable the windows search index service, if the drive use returns to normal
then delete the windows search index database and recreate it via the UI.
sometimes it searches down a directory and hits a problem and just goes into a endless loop searching the same directory over and over. It will cause you disk usage to become 100% and might make the database grow very large.
the database is located C:\ProgramData\Microsoft\Search\Data\Applications\Windows\Windows.edb
you can search for windows.edb
my file size is about 25.1 MB on this system I just installed a few days ago.
 
Solution