question

Ryusuke T avatar image
0 Likes"
Ryusuke T asked Ryusuke T commented

Behavior when using distributed CPUs

Hi,

I'm doing distributed CPU verification.

I noticed some strange behavior there.

First, confirm that you can connect to the external CPU, and then execute Optquest using the distributed CPU.

At this time, it can be confirmed that the distributed CPU processing is going well because the number of CPUs is exceeded.

image.pngimage2.png

Next, I disconnected the network of the external PC and confirmed the disconnection from the properties.

image3.png

However, it seems that the number of CPUs used by OptQuest exceeds the number of CPUs it owns, and distributed CPUs continue to be enabled.

image4.png

what is happening?

FlexSim 23.0.8
optquestuse distributed cpus
image.png (29.0 KiB)
image2.png (49.9 KiB)
image3.png (40.3 KiB)
image4.png (68.1 KiB)
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·
@Ryusuke T , you are aware of multi-threading? A CPU computes two threads.
0 Likes 0 ·
Jordan Johnson avatar image Jordan Johnson ♦♦ Joerg Vogel commented ·
This question isn't related to hyper threading. If the user specifies that 2 CPUs are available, then only two child processes should be launched. The issue is that more child processes are being launched than were specified.
2 Likes 2 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Joerg Vogel commented ·

Hyper-Threading or Simultaneous Multi-Threading is where a single physical core presents two logical cores to the operating system for job allocation.

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Ryusuke T commented

It is hard to say exactly what is happening. Based on your description, I would expect only 20 processes to run on the localhost, and none on the other computer. The optimizer should not show more than 20 active processes concurrently. It is not correct that there are 27.

I'm unable to replicate the issue on two computers on my network. If the "Use Distributed CPUs" box is checked, the number of concurrent processes is within what I specified in global preferences:

1688761611655.png

If one of the connections is not available, then no processes are created for that connection, and the total number of processes is less:

1688761646148.png

In order to further support you, I will need more information.

  • Do you get an exception in the system console, reporting that the disconnected host did not return valid ports?
  • Does the connected webserver report a request to create child processes, like this? Or does it not respond?1688761752706.png
  • Are you sure the "Use Distributed CPUs" box was not checked?

It may be helpful if you could record a video, or if we could arrange a web meeting.


1688761611655.png (72.4 KiB)
1688761646148.png (73.5 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ryusuke T avatar image Ryusuke T commented ·

@Jordan Johnson ,

In order to video record these problems, it is necessary to record the situation between two PCs, which is difficult.

Since this issue is not actually brought up by the customer, I will put it on hold for now.

We will contact you again when there is a report from the customer.

Thank you for your support.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.