Every Linux Distro Should Set This One Value!!

  Рет қаралды 40,767

Brodie Robertson

Brodie Robertson

Күн бұрын

Linux gaming has only been getting better and better but even so there's still issues that need to be resolved and this one change to vm max map count is going to massively improve some games.
==========Support The Channel==========
► Patreon: brodierobertso...
► Paypal: brodierobertso...
► Liberapay: brodierobertso...
► Amazon USA: brodierobertso...
==========Resources==========
The Command: sysctl -a | grep max_map_count
Arch Mailing List: lists.archlinu...
Fedora Change: fedoraproject....
NixOS Change: github.com/Nix...
Ubuntu 24.04 Change: www.gamingonli...
Linux Kernel Mailing List: lore.kernel.or...
Phoronix Article: www.phoronix.c...
=========Video Platforms==========
🎥 Odysee: brodierobertso...
🎥 Podcast: techovertea.xy...
🎮 Gaming: brodierobertso...
==========Social Media==========
🎤 Discord: brodierobertso...
🐦 Twitter: brodierobertso...
🌐 Mastodon: brodierobertso...
🖥️ GitHub: brodierobertso...
==========Credits==========
🎨 Channel Art:
Profile Picture:
/ supercozman_draws
#Linux #OpenSource #LinuxDistro #Wayland #LinuxGaming #GamingOnLinux
🎵 Ending music
Track: Debris & Jonth - Game Time [NCS Release]
Music provided by NoCopyrightSounds.
Watch: • Debris & Jonth - Game ...
Free Download / Stream: ncs.io/GameTime
DISCLOSURE: Wherever possible I use referral links, which means if you click one of the links in this video or description and make a purchase I may receive a small commission or other compensation.

Пікірлер: 341
@redram4574
@redram4574 5 ай бұрын
sysctl -a | grep max_map_count
@N0zer0
@N0zer0 5 ай бұрын
or cat /proc/sys/vm/max_map_count
@cosmicusstardust3300
@cosmicusstardust3300 5 ай бұрын
or sysctl vm.max_map_count
@dege10000
@dege10000 5 ай бұрын
Mine is very high for some reason, is it bad? vm.max_map_count = 2147483642
@Rezikham
@Rezikham 5 ай бұрын
​@@dege10000 That's the default on SteamOS so shouldn't be a problem
@leevi6026
@leevi6026 5 ай бұрын
In other distros than Arch you might need to run it as root, so: sudo sysctl -a | grep max_map_count
@excidium_
@excidium_ 5 ай бұрын
cursed thumbnail
@guiorgy
@guiorgy 5 ай бұрын
Just noticed that because of you 😂
@TheSolidSnakeOil
@TheSolidSnakeOil 5 ай бұрын
Just the tip.
@_Lumiere_
@_Lumiere_ 5 ай бұрын
I use arch btw 😏
@danirde
@danirde 5 ай бұрын
Awesome thumbnail!
@BrodieRobertson
@BrodieRobertson 5 ай бұрын
I honestly did not notice it until it was pointed out to me, I thought I was on the internet too much, turns out I'm just the tip
@OhhCrapGuy
@OhhCrapGuy 5 ай бұрын
Gentoo probably won't actually change it by default, they'll just add it to the handbook, that's kind of their thing
@NHOrus
@NHOrus 5 ай бұрын
Steam page on Wiki
@uiyx4379
@uiyx4379 5 ай бұрын
and i wouldn't want it any other way
@contentnation
@contentnation 5 ай бұрын
There are packages that add own (higher) values like elasticsearch (a kind of database) during install, so it's done one a need-to-use case already.
@zenn_desu
@zenn_desu 5 ай бұрын
I'll see about adding that. thanks for the suggestion :)
@tacokoneko
@tacokoneko 5 ай бұрын
@@contentnation therefore the gentoo steam-overlay repo's steam-launcher package should also add its own sysctl.d line since steam is the official launcher for many of the proprietary games that are affected?
@skelebro9999
@skelebro9999 5 ай бұрын
Brodie single handedly holding Arch Linux by one finger is crazy.
@laughingvampire7555
@laughingvampire7555 5 ай бұрын
holding or impaling?
@nou712
@nou712 5 ай бұрын
@@laughingvampire7555 Penetrating
@meteor4716
@meteor4716 5 ай бұрын
​@@laughingvampire7555More like penetrating...
@bibbediboo
@bibbediboo 5 ай бұрын
single fingeredly
@BunnyKhatri-pd8zm
@BunnyKhatri-pd8zm 5 ай бұрын
You are the guy
@xdzzz0
@xdzzz0 5 ай бұрын
This was one of those Arch updates where it was like: "oh cool... downloaded more RAM. Nice."
@RinLovesYou
@RinLovesYou 5 ай бұрын
>update filesystem >max_map_count did not change >poke around other sysctl.d folders (/etc/sysctl.d) >find Ryujinx config >it sets the max_map_count slightly *lower* than default >deleted forever. >profit
@MarvinRB3
@MarvinRB3 5 ай бұрын
I agree that high map counts indicate a problem, but having a hard limit is turning a low disruption potential problem into a high disruption actual problem. Maybe there should be a soft-limit value that provides warnings for applications with high map counts?
@SIackware
@SIackware 5 ай бұрын
It sure has been exciting to witness gaming on Linux gradually getting better and better over the past few years
@MichaelDeHaven
@MichaelDeHaven 5 ай бұрын
It's been awesome. It has allowed me to walk away from Windows, as its become increasingly more annoying. That and helpful people like Brodie, the people here, and elsewhere.
@AlucardNoir
@AlucardNoir 5 ай бұрын
When I moved full-time to linx 5 years ago I was certain my gaming days would be behind me. I was wrong.
@Stay_away_from_my_swamp_water
@Stay_away_from_my_swamp_water 5 ай бұрын
Now it's better than on windows.
@stevengrimes371
@stevengrimes371 5 ай бұрын
stability is far more important then a slight increase in memory usages in most cases. yes, it should be changed.
@danielton9577
@danielton9577 5 ай бұрын
Nah, you were right the first time. If every distro is changing the default to something else, and they all agree on what the new default should be, then that default should be reconsidered upstream. This "You're holding it wrong!" style reply from David is unhelpful, to say the least. I'm glad distros are changing it anyway,.
@jeslinmx22
@jeslinmx22 5 ай бұрын
Counterpoint: Linux is not just desktops and gaming, there's a massive server and enterprise segment too. I suspect part of the reluctance to change the default is because it could potentially (somehow) cause instability in an enterprise system that no one wants to fix, ever, or that it would degrade performance on servers, containers, cloud whatevers. Sure, from the perspective of the Linux desktop user, it's a "why shouldn't we fix this issue that affects most gamers on Linux with no side effects, just because it may cause a 0.3% performance loss on some servers?", but from the maintainers' view, it may be a "we should not make this change that introduces a regression into the Linux server segment because Red Hat and Canonical keep the lights on". That's another reason why it differs from the KDE double-click thing. KDE is a desktop environment, so changing the desktop defaults to match desktop users' expectations makes sense. Changing the kernel defaults to match the desktop users' expectations should be a job of the desktop distro maintainers, not the kernel maintainers.
@dunkelklinge1
@dunkelklinge1 5 ай бұрын
I have set this value to 1024*1024 and noticed some improvement in Helldivers 2. So change it folks! It's free performance!
@snowwsquire
@snowwsquire 5 ай бұрын
u can also say 2^20
@mx338
@mx338 5 ай бұрын
This is why I am Fedora gang, the developers know their stuff.
@MiguelGonzález-k5p
@MiguelGonzález-k5p 5 ай бұрын
fedora gang where we at
@BrodieRobertson
@BrodieRobertson 5 ай бұрын
Never forget when they switched to Wayland by default on Workstation
@SecretAgentBartFargo
@SecretAgentBartFargo 5 ай бұрын
@@BrodieRobertson It was inevitable
@thingsiplay
@thingsiplay 5 ай бұрын
Fedora is more bleeding edge than Arch. :D
@SecretAgentBartFargo
@SecretAgentBartFargo 5 ай бұрын
@@thingsiplay Nah
@DryPaperHammerBro
@DryPaperHammerBro 5 ай бұрын
Oh, cool, Arch's recently made it 1MiB out of the box! (No, I didn't fuck up writing a megabyte, that's how you shorten mebibyte)
@thingsiplay
@thingsiplay 5 ай бұрын
Overwatch 2 Last year when I played Overwatch 2 (I'm a big fan of the firs game...) I had couple of times game crash after some time playing and suspected not having enough memory. Even though I had some room left with the 16gb. Might this have been the issue? We'll never know, because I'm on new hardware and don't play the game anymore. But I would like to think this being the issue.
@UKprl
@UKprl 5 ай бұрын
As far I understand it since the advent of virtual memory and the 64-bit address space, modern applications expect a malloc never to fail. It's not so much that they assume unlimited memory, but that they can memory map (large) files, and leave it to the memory management / page fault mechanism to page their data in/out according to the demands of the current process. Some databases such as MongoDB tend to allocate virtual memory in this fashion though behaviour also depends on how well a data consuming application is written on whether it really needs to (say) load a whole collection to only show the first page of results from a query.
@АнтонНиколаев-ь1с
@АнтонНиколаев-ь1с 5 ай бұрын
interesting thought. Thank you
@Oktokolo
@Oktokolo 5 ай бұрын
Not sure if David Hildenbrand is just trolling or actually living in an ivory tower. It should be obvious that games made for Windows won't change because the Linux kernel is more finnicky about memory allocation. If you want people to use Linux on the desktop, shit like this has to change. There might be a future where Linux can dictate the standard for software development. And on the server or in embedded that might actually already be the case. But for now, Windows rules the desktop market and Linux has to be compatible to it rather than the other way around. Or gamers will just keep using Windows - and most of them will prefer using Windows for everything else too.
@Cataclym
@Cataclym 5 ай бұрын
openSUSE already changed it
@leevi6026
@leevi6026 5 ай бұрын
Yeah, in openSUSE Tumbleweed it has been changed already at least before the end of the September 2023.
@b1rds_arent_real
@b1rds_arent_real 5 ай бұрын
I've changed it manually about a year ago for MongoDB. It has also been a thing Redis complained about, so I'd say it's a somewhat common problem. Nice to see the default change.
@merthyr1831
@merthyr1831 5 ай бұрын
weird how a kernel dev just ignores that server databases (aka linux's main market) all run into this issue
@BrodieRobertson
@BrodieRobertson 5 ай бұрын
The e-mail focused on the gaming implications, maybe it would have been received differently if it focused on those
@Torbjorn.Lindgren
@Torbjorn.Lindgren 5 ай бұрын
@@merthyr1831 It's not "all server databases", AFAIK among databases it's pretty much specific to MongoDB - as the kernel developer points out it's generally not the most efficient way of doing it (more cpu and memory overhead), with the rest using conventional memory management that will never hit this (you could set it to a 1000 and they'd not care). Just as it's an issue with a few very specific games out of probably tens of thousands. There's probably some deep architectural reason why MongDB just hasn't "fixed" it on their end - if I'd have to guess it might be "a decision made early on for a very small program, and is now deeply embedded everywhere in the code". Because that's often how weird things like this stays - and is why I think it DOES makes sense to increase it to 1M despite thinking he developer has a the valid point.
@derstreber2
@derstreber2 5 ай бұрын
@@Torbjorn.Lindgren On the other hand, this can only go so far. If developers keep writing programs that waste memory mappings, this fix won't last long before people will be screaming to increase the count again. The problem is we have a maximum count for a reason, there are trade offs. This will effect all programs, including those that are written to manage memory correctly.
@Rcomian
@Rcomian 5 ай бұрын
​@@BrodieRobertsonmaybe they should watch your video. honestly it's a very techy thing to see, where an end user makes a request based on real world experience, and the dev refuses the change, making a whole bunch of very real, very true technical arguments that completely miss the point.
@LittleD0minis
@LittleD0minis 5 ай бұрын
increasing vm_max_map_count helps very much with Cyberpunk also.
@mmstick
@mmstick 5 ай бұрын
This value was increased in Pop!_OS on Apr 26, 2023.
@dermachedjamel8970
@dermachedjamel8970 5 ай бұрын
vm.max_map_count = 2147483642 in Pop_os
@yusefaslam9675
@yusefaslam9675 5 ай бұрын
that is why PopOS is amazing, u guys do amazing work
@MiukuMac
@MiukuMac 5 ай бұрын
@CilentLp
@CilentLp 5 ай бұрын
Oh my god, I stopped playing Hogwards Legacy because the crashes were so severe and soft bricked my system. All other games run flawlessly. I'll try setting the value and hope there are no more problems afterwards. Thank you so much for pointing out the issue.
@paulvincent1806
@paulvincent1806 5 ай бұрын
I had crashes 50 % when I teleported in this game. Changing that value fixed the issue for me.
@BrodieRobertson
@BrodieRobertson 5 ай бұрын
To be fair at launch the game was a buggy mess for tons of other reasons as well
@CilentLp
@CilentLp 5 ай бұрын
@@BrodieRobertson I can imagine, but I didn't play at launch. It's been maybe two months since I tried playing the game, so I hope most of the other bugs have been fixed at some point.
@hereticosjc
@hereticosjc 5 ай бұрын
I have issues with Diablo IV where it's becoming a stuttery mess. I couldn't play RayTracing High where in Windows I could. Was a stuttery mess. Medium was fine, now medium is acting like HIgh I'm hoping this will solve it. My mate linked me to this video because of the issue I'm seeing, and because CS2 is a joke.
@MartynasNegreckis
@MartynasNegreckis 5 ай бұрын
What's the status? Did it help?
@matthewrease2376
@matthewrease2376 5 ай бұрын
Is that why Payday 2 crashed after I spent an hour clearing out a bank... I don't think I've played since they happened lol.
@BrodieRobertson
@BrodieRobertson 5 ай бұрын
Very possibly
@michaellankford823
@michaellankford823 5 ай бұрын
As a DayZ player on linux, this is amazing. Now i can just play the game, instead of opening the terminal first freaking thing 😆
@FagnerLuan
@FagnerLuan 5 ай бұрын
Fun fact: the video has 1 2 : 3 4 in the length... It's something 🤷‍♂️ Edit: meh... It's just some bug on KZbin, on the app is 1234, on the Firefox mobile was 1234, until I changed to desktop mode, then now I see the 1233
@puertoricanguy999
@puertoricanguy999 5 ай бұрын
That actually IS interesting! Nice one!
@SecretAgentBartFargo
@SecretAgentBartFargo 5 ай бұрын
12:33
@DMSBrian24
@DMSBrian24 5 ай бұрын
12:33 for me
@Steerable6827
@Steerable6827 5 ай бұрын
12:33
@aceae4210
@aceae4210 5 ай бұрын
so from experience, what youtube does is ether round the second up or down depending where it is you can get the exact time in seconds from the "copy debug info" on the right click menu using that we can get that it's exactly 753.781 seconds equal to 12 mins and 33.781 seconds it's just that .781 part gets rounded up on mobile and thumbnail, and rounded down on the desktop video player (the round down basically removes the .781) (to find the exact time, right click on the video, click "copy debug info", then paste into a text editor. once you have done that do ctrl+f and find "vd" or "len" the value next to ether of them is the length of the video in seconds)
@lukaskoll4873
@lukaskoll4873 5 ай бұрын
oh god the amount of times i've had to adjust this manually. changing this default will save millions of hours of pointless work
@bes12000
@bes12000 5 ай бұрын
Would be nice if Star Citizen worked on Arch, it keeps failing at the anticheat part even with the anticheat patcher..if only the devs would actually utilize the Linux easy Anticheat SDk that Epic games has..
@olnnn
@olnnn 5 ай бұрын
Counter strike 2 is a bit odd to bring since it has a native version now, running it via proton only lets you play locally unless you run the whole steam via wine - granted the native version it's own set of other performance issues - for all their linux work valve don't seem to be doing a lot to make their own top game work well on linux..
@stevehorne5536
@stevehorne5536 5 ай бұрын
Everyone knows that when developers do something a bit bad, users must be punished. The less expert the user, the more severe the punishment.
@TheSolidSnakeOil
@TheSolidSnakeOil 5 ай бұрын
Maybe this is why BG3 stopped crashing every 10 minutes.
@MrAlanCristhian
@MrAlanCristhian 5 ай бұрын
Changing that value is one of the first thing that i do after installing a distro.
@IAmPattycakes
@IAmPattycakes 5 ай бұрын
I just checked on a fresh opensuse install, looks like they have the default set to 2^20 like Arch.
@Redmage913
@Redmage913 5 ай бұрын
ChimeraOS (therefore SteamPS) has been the most efficient way for me to have low-wattage, rock-solid 60fps for my games. Perfect for a mid-range, otherwise RX 480 4GB system. Not dumping that card till it’s dead. It’s water-cooled and doesn’t get above 50 on a 90mm CPU AIO :P
@notimportant7682
@notimportant7682 5 ай бұрын
Does anybody know how significant of performance cost we're talking about for the laptop users out here? I want to know if I should be bothered to change it back as I don't play any of the listed games.
@MisterZig0
@MisterZig0 5 ай бұрын
From what I can tell each process will be able to allocate more sections of memory than before but I'm not sure if it immediately takes up more ram or only when required.
@notimportant7682
@notimportant7682 5 ай бұрын
@@MisterZig0 It seems to me, from the reading I ended up doing that the real worry is that a higher number will allow developers to create worse software that still manages to run and not that existing software will run worse.
@zeckma
@zeckma 5 ай бұрын
Just changed the value for my system, didn't know it was even a thing. I'm writing a book that can benefit from this change so I'll include it when it is time to. Thanks Brodie for basically being the Linux news for me lol
@jinujonn
@jinujonn 5 ай бұрын
Out of curiosity, how do you change the value?
@zeckma
@zeckma 5 ай бұрын
@jinujonn All of this I did as root: mkdir /etc/sysctl.d cat >> /etc/sysctl.d/80-gamecompat.conf
@Atanalcar
@Atanalcar 5 ай бұрын
Huh, I have 16777216. Why it's that high I don't know, must have changed it once upon a rime then forgot all about it.
@blinking_dodo
@blinking_dodo 5 ай бұрын
vm.max_map_count = 65530 on my Ubuntu Windows laptop. I have my Linux mint Desktop currently off, so i can't check that one.
@daviusikse1486
@daviusikse1486 5 ай бұрын
Merged for ubuntu 24.04 too and future Linux Mint version 😊
@AQDuck
@AQDuck 5 ай бұрын
I knew what value it was without remembering the name of it. Caused so many crashes with Hogwarts Legacy.
@itjustcrashed
@itjustcrashed 5 ай бұрын
Brodie, how did Arch Linux not crumble from being held on your finger? You know your arch setup is one bad package away from summoning the BSD users to your door! Edit: I use Mac so I'm a bsd user :ohsh!t:
@kztuptuo7076
@kztuptuo7076 5 ай бұрын
Suse tumbleweed alredy changed this value I do not know about leap
@brolinofvandar
@brolinofvandar 5 ай бұрын
I'm running Leap 15.5 and I just checked. It's still at the default. If tumbleweed has changed, I'm guessing that will eventually make its way to Leap.
@gorrumKnight
@gorrumKnight 5 ай бұрын
On CachyOS and it is set to 1048576.
@Problematist
@Problematist 5 ай бұрын
The Steam Deck still uses a map count of 2 billion. I think Arch and Ubuntu have copied Fedora instead.
@ghostblackout1
@ghostblackout1 5 ай бұрын
Holding arch Linux with a single finger is insane and it's the Chad move
@thisnthat3530
@thisnthat3530 5 ай бұрын
Continuing to use the small default value seems a bit like continuing to use 512 byte sectors as storage devices became millions of times larger.
@Mallchad
@Mallchad 5 ай бұрын
From the perspective of somebody who tinkers frequently in C++ and Linux, I unerstand roughly what VMAs are and what kind of app goes over the default limit for it. But _I have no idea what actually causes an allocation of 1 "arena" and how I would measure it, which is kind of a problem. Particularly with things like wine where they have no concern at all for what a VMA is because of the windows system/memory model
@peterjansen4826
@peterjansen4826 5 ай бұрын
A great change which should have happened years earlier. I push back against this "double-click is better", I agree with upstream in this regard. DE's (KDE) which choose to make double-click the default do not do that because they think that it is better, they do that because they know that Windows-users are used to it. From the perspective of functionality single-click is better but if you are not used to that then it is sensible that you prefer double-click.
@mercuriete
@mercuriete 5 ай бұрын
The default is correct. The problem here is Linux is not meant for desktop but for servers instead. The majority of users are sysadmins/devops running webapps. Before you change the default, distros oriented to play games should be the majority. I think conservative default and the distros modifiying downstream is the right way. BTW I use Gentoo. And in Gentoo the user is a sysadmin so its the default. Gentoo have documented this issue on the Steam troubleshooting wiki.
@alphacraft9658
@alphacraft9658 5 ай бұрын
Even the new value on Fedora seemingly wasn't enough for me. The Finals, which finally works, crashed mid-game and I stumbled upon this and raised that value even higher. Now it seems to work without problems.
@Lampe2020
@Lampe2020 5 ай бұрын
Is that maybe the problem why Minecraft Legends crashes on almost all of my computers on Linux but not on the same machine on Window$? But interestingly, on my newest PC it works on Linux.
@Uchiha_Madara1224
@Uchiha_Madara1224 5 ай бұрын
8:20 hey Broady unreleated to your video how did you enable Autoscrolling (middle click ) on brave, are you using flatpak/native package on wayland/x11 ? if using flatpak + wayland how to enable ??
@denizdezigner
@denizdezigner 5 ай бұрын
The next step should be to enable a click via tap on a touchpad by default.
@skilletpan5674
@skilletpan5674 5 ай бұрын
In the initial system installation app there should be an option for 'I play emulated/non native games' and it will just set this for the user. That would go a long way towards getting linux to be more user friendly.
@MisterZig0
@MisterZig0 5 ай бұрын
That would be distro specific again though.
@SecretAgentBartFargo
@SecretAgentBartFargo 5 ай бұрын
I was very pleased to see that my Arch has automatically enabled that by default. Arch is the proper Linux experience.
@hullukana214
@hullukana214 5 ай бұрын
Same with my NixOs.
@RandomGeometryDashStuff
@RandomGeometryDashStuff 5 ай бұрын
10:50 /proc/sys/vm/max_map_count is 1048576 for me (opensuse tumbleweed)
@bes12000
@bes12000 5 ай бұрын
Also, the command to check it doesn't work, but I assume it's already set as im on Garuda linux which is a gaming version of Arch.
@BrodieRobertson
@BrodieRobertson 5 ай бұрын
It should that's what I ran on Arch
@leevi6026
@leevi6026 5 ай бұрын
I think the problem is you need to either run it as root user or with sudo, for some reason ​@BrodieRobertson didn't specify that. *edit*: Seems like in Arch it doesn't need to be run as root, but at least in openSUSE and Debian it has to be.
@iFlxy
@iFlxy 5 ай бұрын
Archussy
@Mishaye
@Mishaye 5 ай бұрын
Already increased on Arch-based CachyOS. I believe it got changed sometime last year.
@DePhoegonIsle
@DePhoegonIsle 5 ай бұрын
... The arguments about windows 'optimized' games using alot of memory mappings, doing it wrong for the linux way of things..... is .... backwards thinking. Sure it's obvious a lot of windows games aren't as optimized as they should be, but if windows approach is centered on size limits for memory mapping & not the count of memory maps.... than optimizations for windows, file transfer speeds, and timings of hardware, would never align with the design process of linux memory mapping limits by count instead of size. I propose that it's linux who is doing it wrong, and that's not even addressing naturally insanely memory heavy things like databases & some video editors. Look Iget the ultra limted design, and that a program shouldn't be hitting 20-60k+ of mappings at a time for any normal desktop... but if the reason you're not doing it is performance, isn't that like outlawing being stupid because it ends up hurting? What's odd is linux is 'do what you want with your system' and .... some how windows has a better sense of limits when it comes to technical aspects. If I was building a game for memory management for a system that was built around size of the mappings, and focused on min/maxing assets for dynamic loading into & out of memory of the system & GPU(s) from the System storage. I don't think I would give two shits about the count of mappings, with modern day systems and focus to stack it where the least amount of other stuff in the game/application was going on at the same time as well.
@brockdaniel8845
@brockdaniel8845 5 ай бұрын
Dolby Atmos on Arch when ?
@aribowell
@aribowell 5 ай бұрын
on my Debian system it is vm.max_map_count = 2147483642 which seems to be a default, or it's the liquorix kernel or someone else sets it... However there is no sysctl config file with that value.
@arazilsongweaver
@arazilsongweaver 5 ай бұрын
I hate it when designers trot out the old "you're holding it wrong" chestnut when justifying their besieged design choices. If the entire world is changing or ignoring your design choices, it's probably time to reconsider those design choices.
@donciclon
@donciclon 5 ай бұрын
Already default in NixOS
@thekennethofoz3594
@thekennethofoz3594 5 ай бұрын
I guess for some people this might matter. Not for me. I clicked, because no clues given in the title about who might benefit.
@thingsiplay
@thingsiplay 5 ай бұрын
Question: Why is it not for you? What are the downsides
@Dan01-01
@Dan01-01 5 ай бұрын
Funny coincidence. I had come across this value about a week ago, and if i recall correctly, Fedora, the distro i use, already has the value that arch changed to. I didnt think this would be something to come up in the near future
@No-mq5lw
@No-mq5lw 5 ай бұрын
How does one game out of many screw up memory management on one of the most common game engines out there? Utterly bizarre
@keyboard_g
@keyboard_g 5 ай бұрын
Super click bait title and thumbnail.
@jitsuzai5873
@jitsuzai5873 15 күн бұрын
I think this was an issue on launch of Hogwarts Legacy. It worked fine on the Steam deck but it crashed on most desktops while loading a new area and was fixed by one command ☺️👍 I never had issue otherwise.
@merthyr1831
@merthyr1831 5 ай бұрын
Someone tell David about not breaking userspace
@PredatoryQQmber
@PredatoryQQmber Ай бұрын
9:30 What a perfect example of living in a bubble. Sh|7ty Window$ apps and consoles from 2005 are not going to be 'fixed' for some turbo-nerd for whom the idea of a good time is hyper-optimizing assembler code in kernel.
@ronanru
@ronanru 5 ай бұрын
I remember having to set this to play Hogwarts Legacy. Happy it's the default now.
@PerikiyoXD
@PerikiyoXD 5 ай бұрын
Just swapped to Arch Linux, and it was set to 1048576 by default! Incredible. Had to issue this command so much using virtual machines when using Laravel Homestead, guess why...
@WyvernDotRed
@WyvernDotRed 5 ай бұрын
This reminds me of the similar vm.swappiness variable often being set much higher than seems reasonable. To my understanding the high default is for sustained performance of 24/7 servers. But on home systems, lowering it to around 10 makes the system more responsive by reducing storage IO for unneeded swap usage. The exception being systems that use ZRAM, like mine, as the compressed part is considered as swap. vm.max_map_count is set to 1048576 on my distro, Garuda Linux. Though this distro is layered on top of Arch and I just updated it, so it might have pulled in this change. Or it did change it already, this distro does make this sort of tweaks more.
@GregChabala
@GregChabala 5 ай бұрын
I agree with David Hildenbrand's take, and would suggest publicly shaming MongoDB and the few games mentioned for being sloppy with their map usage. Of course, an easy workaround exists, and I doubt the game developers would even notice (game devs are the worst developers, prove me wrong).
@qbasicmichael
@qbasicmichael 5 ай бұрын
I don't think a bunch of calls to malloc should necessarily mean a lot of separate mappings. malloc should be allocating from the heap, which can allocate numerous chunks within a larger mapping. malloc should be using HeapAlloc, and mmap is comparable to VirtualAlloc. Is wine's HeapAlloc misusing VirtualAlloc? Edit: or, are those handful of games doing a bunch of separate VirtualAlloc()s directly?
@alphaomega154
@alphaomega154 5 ай бұрын
outside the computer topic, thats the same problem the world have. like what you perceived it, that if something you established have many people around the world would have to do many "localized" FIXES and "modification" that shows what you established is wrong. im talking about the economy system and money/banking systems that have been established by the western world. if everybody in the world who practice that CONSTANTLY must do so many micro fixes and changes as they go with it, that shows it is a PROBLEM and the base "default" should be changed. while my habit of "editing" my comment in youtube is more like this: i constantly edited my texts in youtube is to check if google isnt deleting my comment. not because i think it is wrong. okay maybe some grammar and spelling edits.
@matthewhelsley2840
@matthewhelsley2840 5 ай бұрын
This is a rotten bandaid. Hardly a "solution". Ask yourself why the kernel imposes a limit on the number of mappings in the first place.
@X8551516
@X8551516 5 ай бұрын
Thanks Brodie, anyone know if this will do anything for Mod Organizer 2 working through wine or is that more of a permissions/other type of issue? I know it'll work on first launch after installing, but any subsequent runs will result in being spammed with an error message. I know there's a Linux script that'll install it, but it only works on a per-game basis of officially supported games.
@michaelutech4786
@michaelutech4786 5 ай бұрын
"The value doesn't make any sense with modern software" - That's not how I understood the response on the kernel mailing list. For all software but games and maybe certain databases, exceeding the limit is an indicator for something akin to a memory leak (a wrong mm handling strategy as I understood it). I never once ran into that issue over a period of decades. It's not a zero cost change (according to David). Even if the cost is negligible. If the kernel default is changed, that would only encourage "bad practices", e.g. inviting modern software to become badly designed software. In my opinion, the proper way to handle this is to let software that legitimately requires a higher value to raise it as part of their post-install hooks on install. That would allow the software to run without the need of manual configuration by the user. That configuration item could even be its own package (just installing a configuration item in /etc/sysctl.d) on which needy software depends. Like this, there would be no negative impact at all and software would document a dependency on a particular system configuration through a package dependency.
@MetalPhantom1984
@MetalPhantom1984 5 ай бұрын
THE FINALS were crashing on me until I raised the number and generally haven't crashed since then.
@zetrel
@zetrel 5 ай бұрын
I had high hopes that this would solve the L4D2 crashfest, however it still happens, and only on Linux (any distro). It's mindbogling how Valve can't fix a bug that has been persistent for half a decade.
@ltxr9973
@ltxr9973 5 ай бұрын
When I was reading the title I was thinking of the filehandle limit or the connection limit but I guess there's another one. Never had to mess with any of these on a non-server but good to know. Bit suprised about Counter Strike 2 of all games. MongoDB isn't suprising at all, seen some wild things happening with MongoDB. Love my good old postgres.
@davidg2861
@davidg2861 5 ай бұрын
I wonder if someone with low power device knowledge can addreess what the negative impacts on kernel/process mem use might be. There must be some ram allocated for the table, after all. If the kernel allocates an extra 64meg of ram, (or each process?} or something like that, then while that might not matter much for a gaming machine with multiple gigabytes of ram, it's going to hurt on something with 512Mb of ram in total.
@ceplma
@ceplma 5 ай бұрын
OpenSUSE has it as well already, not sure since when (yes, for us the issue was SAP R/3, not videogames).
@zxuiji
@zxuiji 5 ай бұрын
Didn't even have the mentioned file, was the default 0xFFFFu value switched to the 0x100000u value instead
@fanshaw
@fanshaw 5 ай бұрын
Change the default, log when going above 64k?
@hburke7799
@hburke7799 22 күн бұрын
ah yes, we are slowly returning to the old Unix days where bad default values are the cause of issues as hardware and use-cases grow.
@shanzakir-s4z
@shanzakir-s4z 5 ай бұрын
cs2 was a nightmare when I played it on my arch linux a week ago. performance was cut down half compare to my windows boot.
@SB-qm5wg
@SB-qm5wg 5 ай бұрын
I have nightmares about Oracle and ram config changes. Some of you might of lived through those days
@konstaNa
@konstaNa 5 ай бұрын
Funny that I changed this value just last week (have been fixing some Steam related stuff)
@JasonMcGaw
@JasonMcGaw 5 ай бұрын
vm.max_map_count = 65530 on an updated Void Linux as of this comment.
@xpusostomos
@xpusostomos 2 ай бұрын
Erm... if there's no downside, why wouldn't you set it to a billion zillion?
@xard64
@xard64 5 ай бұрын
Somehow I already know what variable this video was going to be about even before watching it.
@guyblack9729
@guyblack9729 5 ай бұрын
brodie what are you doing to that arch linux logo?
@frogmcribbit8778
@frogmcribbit8778 5 ай бұрын
It's quite rare to see ArchLinux changing the defaults, considering how they're usually adamant on letting the user configurating their stuff themselves to suits their need and just leave the information in the documentation.
@andljoy
@andljoy 5 ай бұрын
1:47 god is that what the internet looks like in 2024 without an adblocker ?
@xXRealXx
@xXRealXx 5 ай бұрын
It can be even worse
@nocte_dieque
@nocte_dieque 5 ай бұрын
advertiser inserts on desktop are… modest, relative to the mobile webpages. on average it’s so much worse
@AndersHass
@AndersHass 5 ай бұрын
Interesting Valve’s own game is pushing this limit up. I dunno if you could just make a setting to lower it if you for some reason needed the memory usage to be lower. Otherwise some distros are targeting low end hardware which can then have this set to lower value.
@Sypaka
@Sypaka 5 ай бұрын
Are you saying my Windows games stutter in Proton because of this stupid number? Ok, wow..
@morbidsoy
@morbidsoy 5 ай бұрын
cant wait for luke smith to come back and slam these changes saying "its the work of the devil"
@thetj8243
@thetj8243 4 ай бұрын
OK, as I am on arch it's already done, but I checked it anyways :)
@johanb.7869
@johanb.7869 5 ай бұрын
Change this value only if you're a gamer? I don't game, so no need to change the value?
The Linux Kernel Has Too Many CVEs
19:37
Brodie Robertson
Рет қаралды 5 М.
A Neat Linux Kernel Feature You Will Never Use
12:21
Brodie Robertson
Рет қаралды 27 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 41 МЛН
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Лайки Like
Рет қаралды 2,6 МЛН
Amazing Parenting Hacks! 👶✨ #ParentingTips #LifeHacks
00:18
Snack Chat
Рет қаралды 23 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 256 МЛН
This "From Scratch" Browser Will Take On The World
15:17
Brodie Robertson
Рет қаралды 98 М.
5 Things Every New Linux User Should Try!!
14:37
Brodie Robertson
Рет қаралды 27 М.
Why I Can't Use Linux - My Top 3 Reasons
26:05
Tek Syndicate
Рет қаралды 127 М.
20 Year Old Patch Set Finally Merged Into Linux
11:28
Brodie Robertson
Рет қаралды 25 М.
Regarding The Hyprland & Vaxry Situation
15:29
Brodie Robertson
Рет қаралды 44 М.
Wayland Is About To Change For The Better
19:33
Brodie Robertson
Рет қаралды 39 М.
Distrobox Is Basically A Linux Subsystem For Linux
16:42
Brodie Robertson
Рет қаралды 42 М.
I switched to Linux 30 days ago... How did it go?
28:46
Craft Computing
Рет қаралды 256 М.
Reproducible Builds: Final Step In FOSS Validation
13:05
Brodie Robertson
Рет қаралды 16 М.
COSMIC Desktop's Alpha 2 Has Arrived
15:55
Brodie Robertson
Рет қаралды 11 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 41 МЛН