Jump to content
Sign In to follow this  
A Nonny Moose

Tech note on multiprocessing

7 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

I have been aware for some time that some members have had success with running the game with multiprocessing enabled, and I had run experiments that showed this does indeed work.  However, they were quick empirical tests of short duration.

 

Today, I change the -CPUCount parameter to 2 and ran my very largest city.  The session lasted 17 minutes and I make the following comments:

 

  1. I ran the System Monitor program on a second desktop.  It clearly showed that the program was using the second processor, and graphically the indication was that the load was being shared pretty much equally with a maximum of 60% of each processor.  The statistics panel often showed the CPU usage over the 50% mark (of one processor) which can only happen if you are using more than one CPU.
     
  2. The game, which at this density of over 825K Sims on a large tile, mostly filled up, ran much more smoothly.  From the way the processors were divided (running in software rendering), I conjecture that the multitasking was split between the simulation and the display processing.  Went very well, while it lasted.
     
  3. I managed to do some internal saves while running, but when I tried one the game crashed immediately, terminating my session.

 

I reset my CPU count back to 1.  I don't crash much at all with this setting.

 

From this little test I conclude that the game accumulates whatever causes crashes more quickly if you give it more processor.  Not terribly surprising.  I conjecture that more frequent internal saves might solve this, and even though they are faster in this situation, I am afraid that the game is not worth the candle in this regard.

 

This test was run under control of Ubuntu 14.04 LTS with wine-1.7.17.

 

If anyone with a Windows system tries this, please add your results to this thread.  If you have some way to monitor your session it would be useful. Thanks.

  • Like 1

Beware: Emancipated user.  No Windoze for me.
The teacher opens the door but the student must enter himself. - Ancient Chinese Saying

Every minute of hate in which one indulges oneself is sixty seconds of happiness lost.
Music expresses that which cannot be put into words and that which cannot remain silent. -- Victor Hugo
If you always do what you've always done, you'll mostly get what you've always got.
JohnNewSig.gif
"We have met the enemy, and he is us" - Walt Kelly

Come join us at the Moose Factory

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I can happily report both on win 7, that my quad core 64bit system does not cause sc4 to crash even after what is now about 5 hours of play so far, I did try it before that and had it crash when using a NAM item, but it's a known issue.

System specs are as follows.

CPU: amd athlon II x4 640 64bit
OS: win 7 ultimate x64
Memory: 4gb DDR3
GPU: Nvidia 520GT PCI-E
HDD, Seagate GoDesk 2TB (that's where it's installed to)
Version: Sc4 Steam ver, modifiers for 1920x1080 resolution

confirmed as using all 4 cores, no modifiers to core setup.

System is a desktop.


Visit Makestation

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    I suspected as much.  Were you able to get any CPU measures while the program was running?  I don't know what instrumentation is available on Windows any more. 

     

    Could you show that the game was actually using all cores simultaneously?  My machine only has 2 cores, and they were used equally at the same time according to my system monitor.


    Beware: Emancipated user.  No Windoze for me.
    The teacher opens the door but the student must enter himself. - Ancient Chinese Saying

    Every minute of hate in which one indulges oneself is sixty seconds of happiness lost.
    Music expresses that which cannot be put into words and that which cannot remain silent. -- Victor Hugo
    If you always do what you've always done, you'll mostly get what you've always got.
    JohnNewSig.gif
    "We have met the enemy, and he is us" - Walt Kelly

    Come join us at the Moose Factory

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I suspected as much.  Were you able to get any CPU measures while the program was running?  I don't know what instrumentation is available on Windows any more. 

     

    Could you show that the game was actually using all cores simultaneously?  My machine only has 2 cores, and they were used equally at the same time according to my system monitor.

    Untitled.jpg

    this is after I tabbed out having let the game run for several hours, all 4 cpu's are used, and it appears steam is using one more than the others.


    Visit Makestation

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Looks to me like only one processor is doing much with the game.  You have 90 processes in there doing something, and Windows service are always doing something.

     

    My system monitor operates on a per process basis.  Here is the kind of display I get with only firefox running in app space.

     

    VxYab86.jpg


    Beware: Emancipated user.  No Windoze for me.
    The teacher opens the door but the student must enter himself. - Ancient Chinese Saying

    Every minute of hate in which one indulges oneself is sixty seconds of happiness lost.
    Music expresses that which cannot be put into words and that which cannot remain silent. -- Victor Hugo
    If you always do what you've always done, you'll mostly get what you've always got.
    JohnNewSig.gif
    "We have met the enemy, and he is us" - Walt Kelly

    Come join us at the Moose Factory

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    hmm, Idk, I did check the system processes and the affinity was set to all, maybe there was a bugfix in the steam version?


    Visit Makestation

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     

    Wouldn't bet on it.  I think it is just plain 1,1,641,0.  Not different from the commercial offering from Amazon except Steam has a funny idea about where things should be installed, and that you should tell them when you run.


    Beware: Emancipated user.  No Windoze for me.
    The teacher opens the door but the student must enter himself. - Ancient Chinese Saying

    Every minute of hate in which one indulges oneself is sixty seconds of happiness lost.
    Music expresses that which cannot be put into words and that which cannot remain silent. -- Victor Hugo
    If you always do what you've always done, you'll mostly get what you've always got.
    JohnNewSig.gif
    "We have met the enemy, and he is us" - Walt Kelly

    Come join us at the Moose Factory

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account

    Sign In to follow this  

    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections