2024-11-28 11:40:00
www.phoronix.com
Open-source developer Rui Ueyama who is the lead developer of the Mold high performance linker and previously on the LLVM lld linker has written a detailed mailing list post that highlights some observed performance bottlenecks within the Linux kernel.
In developing the high speed Mold linker that sharply outperforms the GNU and LLVM linkers, Rui has noticed some areas of the Linux kernel becoming a bottleneck for the linker. The hope is these areas could be improved upon within the Linux kernel moving forward for allowing even better performance.
The key takeaways of the performance bottlenecks within the Linux kernel that were noticed by Rui Ueyama include:
– exit(2) takes a few hundred milliseconds for a large process
– Writing to a fresh file is slower than writing to an existing file
– Lack of a safe system-wide semaphore
The observation of a fresh file being slower than writing to an existing file is interesting and Rui elaborated:
“mold can link a 4 GiB LLVM/clang executable in ~1.8 seconds on my machine if the linker reuses an existing file and overwrites it. However, the speed decreases to ~2.8 seconds if the output file does not exist and mold needs to create a fresh file. I tried using fallocate(2) to preallocate disk blocks, but it didn’t help. While 4 GiB is not small, should creating a file really take almost a second?”
Those interested in all the details noticed by the Mold developer around the Linux kernel can be found via this Linux kernel mailing list thread.
Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.
Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!
Support Techcratic
If you find value in Techcratic’s insights and articles, consider supporting us with Bitcoin. Your support helps me, as a solo operator, continue delivering high-quality content while managing all the technical aspects, from server maintenance to blog writing, future updates, and improvements. Support Innovation! Thank you.
Bitcoin Address:
bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge
Please verify this address before sending funds.
Bitcoin QR Code
Simply scan the QR code below to support Techcratic.
Please read the Privacy and Security Disclaimer on how Techcratic handles your support.
Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.