Menu

Computing time on Linux OP

Natalie
2018-03-19
2018-03-27
  • Natalie

    Natalie - 2018-03-19

    Hi Daniel,

    comparing the computing time of the attached DWSIM flowsheet on Linux (Ubuntu and Debian) and Windows OPs with the current Mono version 5.1 update 12, my colleague and I realized that on a Windows OP, the attached injection part solves about seven times faster than on Linux OPs (170 versus 25 seconds). Reducing the components of the applied gas composition (from 7 to 2 components), we decreased computing time for the injection part to 55 seconds on the Linux OPs. On the Windows OP there were no significant differences in computing time after a reduction of gas components. What is the reason for this significant difference in computing time comparing Linux and Windows OPs?

    Thank you and kind regards,
    Natalie

     
  • Natalie

    Natalie - 2018-03-19

    Here is the related flowsheet

     
  • Daniel Medeiros

    Daniel Medeiros - 2018-03-22

    Hi Natalie,

    The running code is the same on all platforms, so this is related to the native implementation of Mono on Linux and macOS. On Windows, DWSIM runs on the .NET Framework. Mono tries to replicate its funcionality, which is why I think it is slower. I've got these results on my MacBook:

    macOS (native): 42s
    Ubuntu 17 (Virtual Machine): 1m57s
    Windows 10 (Virtual Machine): 26,8s

    Most of the solving time is spent on the Pipe calculation, I'm not sure why, though. There's nothing special about it... but it does have a loop to converge temperature when you specify a thermal profile.

    Regards,
    Daniel

     
  • Natalie

    Natalie - 2018-03-27

    Hi Daniel,

    ok, thank you for the testing and your feedback!

    Regards,
    Natalie

     
  • Daniel Medeiros

    Daniel Medeiros - 2018-03-27

    You're welcome. It was so hard to get DWSIM running on Mono that I'm just happy it works... I don't care about speed... :-)

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.