aim: Aim is very slow since 3.12.0
đ Bug
I observed a huge slow down when using Aim since updating to 3.12.0. I did not have this issue with previous 3.11.2.
Launching aim up takes a bit less than 1 minute.
Creating a run tracker through Python with aim.Run is very long (1 to 2 minutes).
Aim UI is very slow, for instance I cannot go to the Images tab, it keeps loading and then my browser tab crashes saying âSomething went wrongâ.
I tried on both SSD and HDD.
To reproduce
- Install Aim 3.12.0 or greater.
- Track metrics and images in the code.
- Launch Aim UI with
aim up. - Launch the code.
Expected behavior
Starting Aim UI with aim up shouldnât take that long, and Aim UI itself shouldnât make my browser crash.
Environment
- Aim Version: >=3.12.0
- Python version: tested on both 3.8.13 and 3.10.7
- pip version: 22.2.2
- OS: Ubuntu
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 22 (10 by maintainers)
Hey @Aonnghus! We are on the way to completely re-design the locking mechanism in Aim. The fix for the performance issue related to locks will be shipped along. We target to release the new version at the end of next week.
Got it. Thanks! Weâll include this change in the
v3.14.0as well, as a workaround for now. In the meanwhile weâll try to improve the filesystem identification mechanism, as clearlyFileLocks can be used for a case that youâve described, but we still opt to useSoftFileLocks.hey @Aonnghus! Sorry for the late response. Taking into consideration the fact that the performance degradation was started from
v3.12.0, our guess is that it might have to do something with the new locking mechanism we introduced (we started to useSoftFileLockinstead ofFileLockfor some filesystems). We have released adevversion of aim which forces to useFileLocks only if__AIM_FORCE_USE_FILELOCK__environment variable is set. Could you please install it and test it out to see if everything works as expected?Then just try out your scripts and
aim upcommand to see if it works fine as was with earlier versions.