Jump to content
Sign in to follow this  
do_denver2

CPU spikes every few minutes causing low FPS and stutters

Recommended Posts

So, I have everything working pretty well, overall I'm quite pleased with v 2.3 as far as FPS go.  I've got sliders fairly close to max, using ORBX Global/Vector, REX, ASN, add on airports, My Traffic, with no tweaks in P3D.cfg.  I've got HT turned off on my 3770k 4.7ghz.   Typically things are very smooth, and my overall CPU usage is around 50%, core 0 is usually at 100% and the other 3 cores much lower.  Everything is fine in add on GA, just cruising around for fun.

 

However whenever I take my two tubes up, the Aerosoft Airbus or the new Lionheart Learjet, while going at crusie speeds, I notice that randomly every few minutes or so core 0 dips and the other three cores hit 100%, which causes a drop in FPS and heavy stutters, which can last for several seconds.  I've been monitoring things with process explorer, and the spikes come in the P3D process, not some other software running on my machine.  This never happens during takeoff or landing, and I'm assuming it's some issue with texture loading, like it's trying to catch up, although I don't really have blurries or anything noticable happening to the textures so I'm not sure.  I mean everything looks fine.

 

Has anyone else experienced anything like this, or have any suggestions?  Other than this issue I'm having, the sim really runs well.

Share this post


Link to post

Checked yer temps?... Might be throttling…


My first sim flight simulator pD25zEJ.jpg

 

Take a ride to Stinking Creek! http://youtu.be/YP3fxFqkBXg Win10 Pro, GeForce GTX 1080TI/Rizen5 5600x  OCd,32 GB RAM,3x1920 x 1080, 60Hz , 27" Dell TouchScreen,TM HOTAS Warthog,TrackIR5,Saitek Combat Rudder Pedals HP reverbG2,Quest2

Share this post


Link to post

Maybe too many hard page faults? Do you know LatencyMon for monitoring?

Spirit

Share this post


Link to post

I'm interested with this also as I observe exactly the same behaviour on my system.

 

It has been worse with 2.3 as now the system hesitates a split second and i see that a window appears but i'm unable to see what's is writen in it as it disapear as soon.

 

I tried disabling things like fsuipc autosave that can do save at regular interval but no change.


Pierre

P3D when its freezing in Quebec....well, that's most of the time...
C-GDXL based at CYQB for real flying when its warming up...

Share this post


Link to post

Maybe too many hard page faults? Do you know LatencyMon for monitoring?

Spirit

Hard page faults aren't errors  lol ;-)


 

André
 

Share this post


Link to post

Oh wow, I really hope someone can work out what's causing this behaviour and, more importantly, come up with a solution. I am plagued by exactly the same problem, sailing smoothly along at 50 or 60fps and then for no obvious reason frames plummet to 6 or 7 accompanied by dreadful stuttering. This continues for several seconds before matters return to normal. From my experiments, higher settings appear to increase the frequency of these events but even lowering settings drastically doesn't make them go away completely. I cannot force them to happen and I cannot spot any triggers. Not running any diagnostic software but Task Manager isn't revealing any unusual activity that might point to an explanation. My GPU and CPU temps are also fine. I'm now 100% committed to P3D but this issue is driving me round the bend and really spoiling my enjoyment! Fingers crossed someone gets to the bottom of this.

Share this post


Link to post

Yeah I can't figure it out.  I tried with HT on, I tried turning off various things like water, weather, traffic... But it doesn't matter, every few minutes Cores 1-3 hit 100%, FPS gets erratic and there are stutters.

Share this post


Link to post

Hard page faults aren't errors  lol ;-)

Did I say it's an error? But if there are too much then it may be a bad situation for your system.

Spirit

Share this post


Link to post

What OS? I am running 7 and do not have those issues, but I am not running all of the addons that you are. I do have ORBX PNW.

 

Bob

Share this post


Link to post

Does it do the same with no add-ons? I suggest disabling them all and add them back one by one to find the culprit. This is not an issue in basic P3D. I run with ASN, FTX Global, Vector, openLC, MyTrafficX, Aivlasoft EFT and don't have the issue.

 

Also check that your OS isn't doing some routine task.

 

Vic


 

RIG#1 - 7700K 5.0g ROG X270F 3600 15-15-15 - EVGA RTX 3090 1000W PSU 1- 850G EVO SSD, 2-256G OCZ SSD, 1TB,HAF942-H100 Water W1064Pro
40" 4K Monitor 3840x2160 - AS16, ASCA, GEP3D, UTX, Toposim, ORBX Regions, TrackIR
RIG#2 - 3770K 4.7g Asus Z77 1600 7-8-7 GTX1080ti DH14 850W 2-1TB WD HDD,1tb VRap, Armor+ W10 Pro 2 - HannsG 28" Monitors
 

Share this post


Link to post

That sounds like throttling. 


Ryzen 5 1600x - 16GB DDR4 - RTX 3050 8GB - MSI Gaming Plus

Share this post


Link to post

Did I say it's an error? But if there are too much then it may be a bad situation for your system.

Spirit

Lol Spirit apology correct you didn't.

Ps. it's not only the amount but the type of hard page fault ;-)

 

For the interested ones under us:

 

Memory Performance Counters

The following counters all have to do with the management of memory issues. In addition, there will counters that assist in the determination of whether the problem you are having is really a memory issue.

  • Memory : Page Faults/sec. This counter gives a general idea of how many times information being requested is not where the application (and VMM) expects it to be. The information must either be retrieved from another location in memory or from the pagefile. Recall that while a sustained value may indicate trouble here, you should be more concerned with hard page faults that represent actual reads or writes to the disk. Remember that the disk access is much slower than RAM.

  • Memory : Pages Input/sec. Use this counter in comparison with the Page Faults/sec counter to determine the percentage of the page faults that are hard page faults.

    Thus, Pages Input/sec / Page Faults/sec = % Hard Page Faults. Sustained values surpassing 40% are generally indicative of memory shortages of some kind. While you might know at this point that there is memory shortage of some kind on the system, this is not necessarily an indication that the system is in need of an immediate memory upgrade.

  • Memory : Pages Output/sec. As memory becomes more in demand, you can expect to see that the amount of information being removed from memory is increasing. This may even begin to occur prior to the hard page faults becoming a problem. As memory begins to run short, the system will attempt to first start reducing the applications to their minimum working set. This means moving more information out to the pagefiles and disk. Thus, if your system is on the verge of being truly strained for memory you may begin to see this value climb. Often the first pages to be removed from memory are data pages. The code pages experience more repetitive reuse.

  • Memory : Pages/sec. This value is often confused with Page Faults/sec. The Pages/sec counter is a combination of Pages Input/sec and Pages Output/sec counters. Recall that Page Faults/sec is a combination of hard page faults and soft page faults. This counter, however, is a general indicator of how often the system is using the hard drive to store or retrieve memory associated data.

  • Memory : Page Reads/sec. This counter is probably the best indicator of a memory shortage because it indicates how often the system is reading from disk because of hard page faults. The system is always using the pagefile even if there is enough RAM to support all of the applications. Thus, some number of page reads will always be encountered. However, a sustained value over 5 Page Reads/sec is often a strong indicator of a memory shortage. You must be careful about viewing these counters to understand what they are telling you. This counter again indicates the number of reads from the disk that were done to satisfy page faults. The amount of pages read each time the system went to the disk may indeed vary. This will be a function of the application and the proximity of the data on the hard drive. Irrelevant of these facts, a sustained value of over 5 is still a strong indicator of a memory problem. Remember the importance of "sustained." System operations often fluctuate, sometimes widely. So, just because the system has a Page Reads/sec of 24 for a couple of seconds does not mean you have a memory shortage.

  • Memory : Page Writes/sec. Much like the Page Reads/sec, this counter indicates how many times the disk was written to in an effort to clear unused items out of memory. Again, the numbers of pages per read may change. Increasing values in this counter often indicate a building tension in the battle for memory resources.

  • Memory : Available Memory. This counter indicates the amount of memory that is left after nonpaged pool allocations, paged pool allocations, process' working sets, and the file system cache have all taken their piece. In general, NT attempts to keep this value around 4 MB. Should it drop below this for a sustained period, on the order of minutes at a time, there may be a memory shortage. Of course, you must always keep an eye out for those times when you are simply attempting to perform memory intensive tasks or large file transfers.

  • Memory : Nonpageable memory pool bytes. This counter provides an indication of how NT has divided up the physical memory resource. An uncontrolled increase in this value would be indicative of a memory leak in a Kernel level service or driver.

  • Memory : Pageable memory pool bytes. An uncontrolled increase in this counter, with the corresponding decrease in the available memory, would be indicative of a process taking more memory than it should and not giving it back.

  • Memory : Committed Bytes. This counter indicates the total amount of memory that has been committed for the exclusive use of any of the services or processes on Windows NT. Should this value approach the committed limit, you will be facing a memory shortage of unknown cause, but of certain severe consequence.

  • Process : Page Faults/sec. This is an indication of the number of page faults that occurred due to requests from this particular process. Excessive page faults from a particular process are an indication usually of bad coding practices. Either the functions and DLLs are not organized correctly, or the data set that the application is using is being called in a less than efficient manner.

  • Process : Pool Paged Bytes. This is the amount of memory that the process is using in the pageable memory region. This information can be paged out from physical RAM to the pagefile on the hard drive.

  • Process : Pool NonPaged Bytes. This is the amount of memory that the process is using that cannot be moved out to the pagefile and thus will remain in physical RAM. Most processes do not use this, however, some real-time applications may find it necessary to keep some DLLs and functions readily available in order to function at the real-time mode.

  • Process : Working Set. This is the current size of the memory area that the process is utilizing for code, threads, and data. The size of the working set will grow and shrink as the VMM can permit. When memory is becoming scarce the working sets of the applications will be trimmed. When memory is plentiful the working sets are allowed to grow. Larger working sets mean more code and data in memory making the overall performance of the applications increase. However, a large working set that does not shrink appropriately is usually an indication of a memory leak.

Interesting read here also:

https://stackoverflow.com/questions/5684365/what-causes-page-faults

 

 

Cheers


 

André
 

Share this post


Link to post

I cleared out my DLL file so no add ons other than scenery add ons.  Normally, core 0 is at 100 at the other 3 cores much less, and everything is smooth and fine.  However, every few minutes cores 1-3 all go to 100% and there are problems.  I use core temp and the temperatures seem ok, so I don't think it's throttling, but I can lower my clock speeds and voltage and test.

Share this post


Link to post

May or may not be relevant but i was having spikes and drops in fps (but only in certain regions like New Orleans.. turned out vector, specifically the cvx scenery.cfg entry was to blame).


MSI z690-a Unify; 1000 watt evga SuperNova Platinum; 12900kf at 1.255 adaptive LLC6, auto avx, auto Pcore, E-4.0ghz, Ring-4.1ghz, PL 241watt (Cine96c, games 83c case side On); DDR5 Gskill F5-6400J3239G16GA2-TZ5RS  at 6400mhz autovolt, Kraken x73 360mm; Thermaltake v51 Case; Gigabyte 4090 OC;  VR-Varjo Aero;  AstronomicallySpeaking:

Share this post


Link to post

Thanks I'll try disabling that.  It's not throttling, as I monitored with AIDA64 and CPU temps didn't go above 80 and the graph never indicated any throttling, even during the spikes.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...