Anyone having performance issues with create_sysimage on Fedora?

I just started using Fedora, and tried using create_sysimage on a project that usually takes 5 minutes minutes to complete on Windows/Ubuntu. After building it in Windows, with PackageCompiler v2.3.0, I tried building it on Fedora 44 and it’s still running after 40 minutes. I tried using both Clang and GCC. Oddly enough, on Windows, the compilation step uses about 50% of my CPU, but the Fedora process is using about 5%. Is there some form of multithreading going on with the windows build but not on Linux?

are you running out of ram?

No, not at all. I’m barely above 30% RAM, and disk operations are almost minimal. It did complete after 2 hours and 21 minutes, which is more than 20x as long as it took on Windows. Fedora is also a pretty mainstream distro as well, so I’m surprised that I haven’t found anything on this while searching. I even tried using a Docker image with the Julia Debian image (mind you it’s still running on the same kernel) and it’s still brutally slow.

Ubuntu and Windows were quite comparable despite using different compilers (and Windows is a RAM hog, but was still able to complete the image build in little more than 6 minutes) but the Fedora runtime was orders of magnitude longer. Mind you, the Linux kernels are different. I was running Ubuntu 24.04 before I switched to Fedora 44. I haven’t tried Ubuntu 26.04 so I don’t know if it’s a kernel issue. I’m just wondering if anyone else has run into this.

That is very odd. Same Julia version? Did you install the official binary/juliaup or from RPM?

Same Julia version (1.12.6) and even the same PackeCompiler version. I usually just use the juliaup command from the website

curl -fsSL https://install.julialang.org | sh

I also tried using three different versions of Docker to run this in the official Julia docker image (official Docker, rpm repo, and podman). All with the same brutally slow result. I also tried rebooting using a slightly older kernel that came installed (I had some 6.xx version before I was upgraded to 7.xx).

After probing around, the situation is actually looking stranger. I tried compiling a hefty set of packages and it actually compiled faster on fedora. It’s likely some weird dependency in my other project that’s causing the holdup.

I removed all my stale dependencies and now it only takes 2.5 minutes. I’m not exactly sure which dependency was the issue. I think it might have been Nettle.jl, but I can compile it fine separately. Weird. But anyway, it’s solved now.