Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GNS3 3.0.2] GNS3 server version 3.0.2 is much slower than GNS3 server version 2.2.x #2484

Open
nwhisper2014 opened this issue Jan 15, 2025 · 3 comments · Fixed by #2486
Open

Comments

@nwhisper2014
Copy link

GNS3 server code (version 3.0.2) is significantly slower than 2.2.x versions. For example:

(gns3server-venv) gns3@gns3vm:~$ time python3 -m gns3server --version
3.0.2

real 0m2.341s
user 0m2.203s
sys 0m0.136s
(gns3server-venv) gns3@gns3vm:/usr/local/bin$ time python3 -m gns3server --version
2.2.52

real 0m0.572s
user 0m0.520s
sys 0m0.051s

The slowdown can be seen at the startup stage (time before the gns3welcome window appears in the console), during adding and removing nodes to the project, during opening the project. It is very uncomfortable to work with such slowdowns.

Probably, the slowdown is related to the non-optimal import of a large number of modules...

@grossmj grossmj linked a pull request Jan 17, 2025 that will close this issue
@grossmj
Copy link
Member

grossmj commented Jan 17, 2025

I have refactored how the command line arguments are parsed (done before loading the rest of the server modules). Now getting the version is much faster.

time python3 -m gns3server --version
3.0.3.dev1+8e96c4c2

real	0m0.121s
user	0m0.109s
sys	0m0.012s

Thanks again for spotting this problem!

@grossmj grossmj closed this as completed Jan 17, 2025
@nwhisper2014
Copy link
Author

The command python3 -m gns3server --version now actually run faster. However, projects in GNS3 version 3.0.3 still take much longer to open than in GNS3 version 2.2.53.

As an example, I created a project containing 6 OpenWrt 23.05.0 nodes (the template for the nodes is https://gns3.com/marketplace/appliances/openwrt-2) and made some connections between them (see screenshot below).

In GNS3 version 2.2.53 I have this project open in ~1-1.5 seconds, but in GNS3 version 3.0.3 it takes ~11 seconds. 11 times slower.

GNS3 server virtual machine parameters (same for both versions):

  • 8 x Intel Xeon Silver 4114 CPUs @ 2.20GHz
  • 40 GB RAM
  • 80 GB vHDD (SSD ATA INTEL SSDSC2KB48)

Image

Image

@cristian-ciobanu
Copy link

I can also confirm that GNS3 version 3.x.x is much slower when loading projects than the GNS3 versions 2.2.x.
On large projects (more than 50 nodes) it can take up to a minute or more.

@grossmj grossmj reopened this Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants