Jump to content
Sign in to follow this  
martinlest2

FS2004 & CPU Core Affinity settings

Recommended Posts

Hi. I tried that but (may be a separate glitch - very odd), now, no matter what value I put in for the affinity, 01,02,03. (with or without the zero) 0E, 0F etc. etc, I always get cores1-4 active - same result every time. I've given up on the whole thing for now!

Share this post


Link to post
Share on other sites

 

 


FS04 is a single core program, it runs on one thread only

It was written in the single core era, but it is ~not~ single threaded. (As to how the workload is distributed over the 30 or so threads - hard to say. Task Manager doesn't dig that deep.) In any case when you spread the affinity, the CPU's internal architecture does the heavy lifting to make it happen, so results are like so many things with FS - hardware-dependent.
 

Share this post


Link to post
Share on other sites

 

 


when I look at the affinity settings via Task Manager, FS9 is using cores 2, 3 & 4, not CPUs 2, 3 & 4
In WIN XP, where do you find core useage data? I see only CPU.

 

I am wondering what effect running in full-screen or windowed mode has on FS9 performance.

Certainly the graphics are handled *totally* differently.

What about CPU activity? 

 

There's often discussion about "my FS9 does this, or that" but hardly ever distinction about windowed mode 

Share this post


Link to post
Share on other sites

Why do people keep saying that Windows processes run on core 0? They typically don't have an affinity either, and they'll run wherever the kernel wants them to, which is an available processor.

 

Honestly, unless you write your own pre-emptive multitasking kernel, you're probably worse at scheduling processes than the folks who wrote the NT kernel task scheduler. Leave things alone.

 

Cheers!

Luke


Luke Kolin

I make simFDR, the most advanced flight data recorder for FSX, Prepar3D and X-Plane.

Share this post


Link to post
Share on other sites

All,

 

FS04 is a single core program, it runs on one thread only. if you want to adjust which core it uses that is fine,. and you may notice a difference because of what else you are running on core zero. Anything after that is the ol' fish oil effect.

 

True very true. FS9 is a single core program. Affinity mask won't make a difference. However there was a program wrote about a year or so ago for Intel and AMD cpu's to run on multi core systems. It was called auto cpu affinity for FS 2004. It had to be started before FS9 was started, and it would allocate the process across all 4 processors.


Bill McIntyre

Asus Rampage V Extreme, Intel Core I7 6950X (10 core)@ 4.5, 32GB's Crucial Ballistics DDR4 MEM, 1 Crucial M.2 4TB SSD, 4 Crucial-2TB SSD, Corsair H115i CPU liquid cooler, NVIDIA RTX 2080TI Founders Edition, LG 34" HD Curved Monitor, 2 Dell 27" Monitors, Sound Blaster Audigy X, 1Kw PC Power & Cooling Power Supply, Corsair Obsidian Full tower Case.  FSX-SE, MFFS 2020, PD3 v5.4, WIN10 Pro x64                                                                                                                                             

Share this post


Link to post
Share on other sites

True very true. FS9 is a single core program. Affinity mask won't make a difference. However there was a program wrote about a year or so ago for Intel and AMD cpu's to run on multi core systems. It was called auto cpu affinity for FS 2004. It had to be started before FS9 was started, and it would allocate the process across all 4 processors.

 

Snake oil. There's nothing that can allocate a single thread across multiple processors.

 

Cheers!

Luke


Luke Kolin

I make simFDR, the most advanced flight data recorder for FSX, Prepar3D and X-Plane.

Share this post


Link to post
Share on other sites

I think some here must be confusing thread with process. FS runs in a single process, but with multiple threads. And yes threads on a single process can run on multiple processors, as determined by the process affinity mask. To insist FS is confined to a single core, much less a a single thread is just plain wrong.

 

Share this post


Link to post
Share on other sites

I think some here must be confusing thread with process. FS runs in a single process, but with multiple threads. And yes threads on a single process can run on multiple processors, as determined by the process affinity mask. To insist FS is confined to a single core, much less a a single thread is just plain wrong.

 

While FS9 may have multiple threads, only one is doing any meaningful work.

 

Cheers!

Luke


Luke Kolin

I make simFDR, the most advanced flight data recorder for FSX, Prepar3D and X-Plane.

Share this post


Link to post
Share on other sites

recently we had nonsense about fs9 using 1024x1024 textures.  now fs9 is multicore capable? 

 

sad.


i9-10900k @ 5.1GHz 32G XMP-3200 | RTX3090 | 3T m.2 | Win11 | vkb-gf ultimate & pedals | virpil cm3 throttle | 55" 4k UHDTV | HP R-G2 VR | DCS

 

 

 

Share this post


Link to post
Share on other sites

FS9 never has been multicore. This is a fact. However, Windows can pick any core (physical/virtual) any time, run FS9 there and in the next second (or even clock cycle) run it in another core. Part of the discussion here is if there is any advantage in restricting the cores FS9 can use. I can remember seeing this discussion since HT appeared.

 

For me, I've just got my answer (select only physical cores, let Windows decide which one), but I'll have to test it before being happy with this solution.

 

True very true. FS9 is a single core program. Affinity mask won't make a difference. However there was a program wrote about a year or so ago for Intel and AMD cpu's to run on multi core systems. It was called auto cpu affinity for FS 2004. It had to be started before FS9 was started, and it would allocate the process across all 4 processors.

 

That program didn't get to be enough snake oil for me. In my old P4 2.8 HT I gained some stability, in my current AMD Athlon 64x2 4000+ desktop didn't notice anything... and in my i5 laptop (see my specs) I gained some stutters.


Best regards,
Luis Hernández 20px-Flag_of_Colombia.svg.png20px-Flag_of_Argentina.svg.png

Main rig: self built, AMD Ryzen 5 5600X with PBO enabled (but default settings, CO -15 mV, and SMT ON), 2x16 GB DDR4-3200 RAM, Nvidia RTX3060 Ti 8GB, 256 GB M.2 SSD (OS+apps) + 2x1 TB SATA III SSD (sims) + 1 TB 7200 rpm HDD (storage), Viewsonic VX2458-MHD 1920x1080@120 Hz, Windows 10 Pro. Runing FSX-SE, MSFS and P3D v5.4 (with v4.5 default airports).

Mobile rig: ASUS Zenbook UM425QA (AMD Ryzen 7 5800H APU @3.2 GHz and boost disabled, 1 TB M.2 SSD, 16 GB RAM, Windows 11 Pro). Running FS9 there... sometimes on just battery! FSX-SE also installed, just in case. 

VKB Gladiator NXT Premium Left + GNX THQ as primary controllers. Xbox Series X|S wireless controller as standby/travel.

Share this post


Link to post
Share on other sites

@
Ultimately test, and use what works best on your system. Affinity settings really make no difference on how FS2004 runs, and for some, appears to make things worse.

@@Martin
Sounds like you've given up on the whole thing for now, and I too will now bow out of the fish and Snake oil discussions.
Let me explain one thing quickly re your config issue. I use many FS9.cfg files that all reside in the root folder of FS2004. Each FS9.cfg file has a different name depending upon what aircraft I'll fly etc. This switch /CFG:NORMAL-fs9 for me, tells FS2004 to use my FS9.cfg file called "NORMAL-FS9.cfg" which is located in the root folder of FS2004. If you used /CFG:NORMAL-fs9 in your batch, you just told FS2004 to create a new FS9.cfg file called "NORMAL-FS9.cfg". I suspect if you look in your FS2004 root folder, you'll now have a "NORMAL-FS9.cfg" file which will contain default settings. If you wanted to, you could copy and paste your original FS9.cfg file into the "NORMAL-FS9.cfg" and use it. Neumanix was correct in saying to discard the /CFG:NORMAL-fs9 section. Sorry for the confusion on that.

RJ

Share this post


Link to post
Share on other sites

True very true. FS9 is a single core program. Affinity mask won't make a difference. However there was a program wrote about a year or so ago for Intel and AMD cpu's to run on multi core systems. It was called auto cpu affinity for FS 2004. It had to be started before FS9 was started, and it would allocate the process across all 4 processors.

 

it was "fs_affinity_v2_267238.zip" available at AVSIM library.

I dont know how it works, but it avoids long 100 percent use of one cpu and keeps it cooler!

Share this post


Link to post
Share on other sites

Hi,

 

if I remember correct, this tool made my FS slightly slower. However, when running FS2004, I never experienced such "asymetric" usage of my two cores as shown in the screenshots within the named archive.

 

Regards,

Harald


   Harald Geyer
   Gründer der Messerschmitt Freunde Dresden v. V.

lYI9iQV.jpg

Share this post


Link to post
Share on other sites

here are my pics:

 

 

 

 

 

 

 

 

 

Edited by firehawk44
Photo deleted; Both exceed 1600W and 400KB limits. Both photos over 900KB

Share this post


Link to post
Share on other sites

I only gave up on this because for some annoying reason, whatever value I enter for 'xx' to set the affinity, it always results in just Cores 1,2,3 &4 working. Cores 0,5,6&7 always remain unchecked in the set affinity box. What I was after was to get FS9 working either on just Core 2 (or 4, or 6), or preferably, so that no single core is running at 100% whilst the others are basically idle, on 2 and 4 and 6.

I am not sure why people keep saying that FS9 will only run on one core despite all the evidence to the contrary. I assume they get their information/disinformation from the internet, just repeating what 'gurus' have said elsewhere. Are there any Intel or AMD CPU engineers posting here, or is it just 'internet hearsay'? (Yes, "sad": thanks for your 'helpful' contribution to the discussion, kdfw_). The tired old forums game of a few people trying to make everyone else look misinformed in comparison to them.. :Yawn:

 

FS9 was designed to run on one core, OK, but irrespective of performance issues, when you set the CPU affinity so that FS9 runs on more than one processor, the fact that, instead of now Core0 being at 100% most of the time, you see FS9 now working across more than one core in the Task Manager performance tab (and any other CPU usage monitor you may care to try) shows that it does run on multiple cores if you set it up that way. Maybe it wasn't supposed to run on more than one core and maybe it's not a good idea - but it clearly can do so.

As I said, I was really interested in experimenting with this since when running FS9 my i7-950 runs with Core0 at 100% and the other cores hardly used. Importantly, the temperatures of cores 2-7 are consistently some 15 degrees lower than the hard working Cores 0 (and 1), so spreading the load must make sense from a hardware point of view.

If I could get FS9 working on cores 2, 4 & 6, or maybe just two of those cores, I'd go for it, at least as an experiment, but no setting I make in the batch file enables this. With eight cores showing, how can I set this up?

Martin

Share this post


Link to post
Share on other sites

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...