Announcement

Collapse
No announcement yet.

Linux Kernel Performance Bottlenecks Spotted By Mold Developer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linux Kernel Performance Bottlenecks Spotted By Mold Developer

    Phoronix: Linux Kernel Performance Bottlenecks Spotted By Mold Developer

    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...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    1 sec file creation? Do we know which file system he was using?

    Comment


    • #3
      lmao, dude is so good at making fast linkers, the kernel is now holding him down
      this guy is super talented, i hope he gets better support
      Last edited by davidbepo; 28 November 2024, 10:54 AM.

      Comment


      • #4
        The first two points are nothing new as he has described them already since the very first version of mold (if I recall correctly). It is just the first time this has been brought forth to the kernel developers.

        I cannot speak about the last point though. It might be a more recently found issue.

        Comment


        • #5
          I also wonder if the file system would have an impact. But even if it didn't, makes sense to me that creating a new file would take longer. Creating a new file still requires you to write the file information, even if the file is just 0B. Even just recording atime has a noteworthy impact on performance, so surely recording creation time, modification time, the file name itself, updating inode tables, updating indexes, recording file attributes, etc is going to make a dent on performance. A lot of that stuff doesn't have to be done after a file already exists.

          Comment


          • #6
            Originally posted by schmidtbag View Post
            I also wonder if the file system would have an impact. But even if it didn't, makes sense to me that creating a new file would take longer. Creating a new file still requires you to write the file information, even if the file is just 0B. Even just recording atime has a noteworthy impact on performance, so surely recording creation time, modification time, the file name itself, updating inode tables, updating indexes, recording file attributes, etc is going to make a dent on performance. A lot of that stuff doesn't have to be done after a file already exists.
            I was thinking the same, and it is quite logical that creating a new file is slower than appending to an existing file that already have all the structures set up... At the same time I wonder if it possibly could be an idea for a filesystem to "pre-allocate" some empty files so that "creating" a new file really was no more than simply marking the file active and updating the minimum of data (atime, etc) necessary.

            http://www.dirtcellar.net

            Comment


            • #7
              Originally posted by davidbepo View Post
              lmao, dude is so good at making fast linkers, the kernel is now holding him down
              this guy is super talented, i hope he gets better support
              He should write his own os kernel rather than using inferior legacy software.

              Comment


              • #8
                Originally posted by schmidtbag View Post
                Even just recording atime has a noteworthy impact on performance, so surely recording creation time, modification time, the file name itself, updating inode tables, updating indexes, recording file attributes, etc is going to make a dent on performance. A lot of that stuff doesn't have to be done after a file already exists.
                On an SSD this should take a few ms not a whole second.

                Comment


                • #9
                  he's impressive but "Mold Developer" will never not be funny to me

                  Comment


                  • #10
                    Originally posted by Anux View Post
                    On an SSD this should take a few ms not a whole second.
                    Depends on the SSD, FS, bus attachment, and how full it is. Broad generalizations like this aren't helpful in diagnosing problems of this sort. I found the details in the post lacking, as I'm sure some of the kernel devs will.
                    Last edited by stormcrow; 28 November 2024, 12:46 PM.

                    Comment

                    Working...
                    X