Announcement

Collapse
No announcement yet.

Fedora 39 Looks To Boost vm.max_map_count To Help Windows Games With Steam Play

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

  • #11
    Originally posted by Vorpal View Post
    What on earth are those games doing that they need tens of thousands of separate mappings?

    ​​​​​
    Requesting more than that, apparently.

    Comment


    • #12
      I noticed when I looked into Nobara that they listed this change: vm.max_map_count = 16777216 set by default for Star Citizen

      One less tweak for them to make I guess.

      Comment


      • #13
        are there downsides to raising this limit?

        Comment


        • #14
          Good job, but now give us some video codecs out of the box or please consider moving your offices in a less silly country

          Comment


          • #15
            Originally posted by caligula View Post

            Exactly. Does every malloc trigger this?
            Unless you're running the efence debugging tool, no. Normal allocators only directly mmap large allocations (usually at some tens to hundreds of kilobytes) and satisfy smaller allocation from a pool (either brk or a relatively small number of large mmaps). Maybe they are mmapping a lot of small files.

            Comment


            • #16
              Originally posted by Vorpal View Post
              What on earth are those games doing that they need tens of thousands of separate mappings?

              ​​​​​
              Games like this are some of the largest pieces of non trivial software you can come up with, aside from OS's/browsers so its hardly surprising that some of them do this kind of thing.

              Comment


              • #17
                The answer is somewhere between 65535 and Graham's Number, uh, I mean INTMAX - 5.

                Comment


                • #18
                  cant they just release a patch that will change it in currently used 37/38 version? why wait till 39?

                  Comment


                  • #19
                    Originally posted by mdedetrich View Post
                    Games like this are some of the largest pieces of non trivial software you can come up with, aside from OS's/browsers so its hardly surprising that some of them do this kind of thing.
                    True, but 50K+ is WAY beyond almost any genuine purpose I can think of. I've used mmap to deal with huge files back in the days of limited RAM, as basically a sensible way to offload cache management for files that needed to STAY open, but games are the exact opposite of that case. The only way you even get close to the current limit is by using mmap as a replacement for open and leaking the handles.

                    I suspect it's some weird aspect of the DirectStorage model, i.e. just doing exactly that: you open literally EVERY asset concurrently with completion callbacks, and DS reorders the reads to minimize decompressor re-inits and/or re-reads of shared blocks, with the handles only being closed async a few seconds later.

                    Comment


                    • #20
                      While Fedora's default of 65,530 for vm.max_map_count matches that of many other OS defaults, SteamOS Ships with a value of 2147483642 (MAX_INT - 5).
                      It's not Fedora's default, it's the kernel's default:

                      Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

                      Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.
                      Last edited by avis; 25 April 2023, 06:03 AM.

                      Comment

                      Working...
                      X