Conversation
Notices
-
❄️:padoru: SantaSnekFriend :padoru:❄️ (supersnekfriend@poa.st)'s status on Friday, 14-Jun-2024 04:09:21 JST ❄️:padoru: SantaSnekFriend :padoru:❄️ Ubuntu locks up when running heavy commands on an external drive and internal HDD, despite 32 GB of RAM and 8 cored 3 Hz CPU. I think I'm having a thrashing issue.
Will increasing swap space fix thrashing issues? It's only 2 GB I think.-
EdBoatConnoisseur (edboatconnoisseur@poa.st)'s status on Friday, 14-Jun-2024 04:09:18 JST EdBoatConnoisseur @mikuphile @SuperSnekFriend yeh, i'm at a point where i have problems finding people who can tell me answers to my problems and questions, barely any of those around less alone with time or willing to answer to me, while everyone else i see doing linux may ask questions i had 10 years ago...
-
EdBoatConnoisseur (edboatconnoisseur@poa.st)'s status on Friday, 14-Jun-2024 04:09:18 JST EdBoatConnoisseur @mikuphile @SuperSnekFriend And yet i cannot find a job where any of that wouldeven be useful
ミク沼 likes this. -
EdBoatConnoisseur (edboatconnoisseur@poa.st)'s status on Friday, 14-Jun-2024 04:09:19 JST EdBoatConnoisseur @SuperSnekFriend man, i just find it fun how every other mf who answered had not even the slightlies fucking idea what the problem was or why.
then again i am the only fucker insane enough to move about 300GB from one drive to another computer using rsync over ssh in a wifi network...
-
Loliphile (mikuphile@gearlandia.haus)'s status on Friday, 14-Jun-2024 04:09:19 JST Loliphile @EdBoatConnoisseur @SuperSnekFriend Holy autismo -
EdBoatConnoisseur (edboatconnoisseur@poa.st)'s status on Friday, 14-Jun-2024 04:09:20 JST EdBoatConnoisseur @SuperSnekFriend it is a file access problem, because your max_map_count is too low.
the max_map_count is how many files a single process can access and/or load (in reality is how many files it can map to memory but in layman terms is what i wrote before)
if the max_map_count is too low a process that tries to access more files than that will experience issues from freezing, hanging up or even core dumping.
to fix that just spit this:
vm.max_map_count=2147483642
into: /etc/sysctl.d/90-vm-map-count.confthen run sudo sysctl -p to reload the configuration.
-
EdBoatConnoisseur (edboatconnoisseur@poa.st)'s status on Friday, 14-Jun-2024 04:09:20 JST EdBoatConnoisseur @SuperSnekFriend to dump it all into a single post:
the max_map_count is how many files a single process can access and/or load (in reality is how many files it can map to memory but in layman terms is what i wrote before)
if the max_map_count is too low a process that tries to access more files than that will experience issues from freezing, hanging up or even core dumping.
the default mandated by the kernel and used by most distros is: 65530
the value used by steamOS on the deck is: 2147483642to fix that just spit this:
vm.max_map_count=2147483642
into: /etc/sysctl.d/90-vm-map-count.confthen run sudo sysctl -p to reload the configuration.
that adds the configuration file and permanently changes the max_map_count, well so long as that config exists.
now for the limits:
the limits are the limit of resources assigned per process per user group, the default of running ulimit -Hn will be 4096, that is usually not enough for some heavy processes nor some games (the infamours hogwarts legends proton bug) so to fix that all you need to do is edit the /etc/security/limits.conf file and add this to the end (you can do so one line above the line that says end of file)
* hard nofile 1048576
to apply the changes to your current session all you need to do is run:
sudo ulimit -Hn 1048576and that is all, now you should have no issues with either games or resource demanding processes.
-
EdBoatConnoisseur (edboatconnoisseur@poa.st)'s status on Friday, 14-Jun-2024 04:09:21 JST EdBoatConnoisseur @SuperSnekFriend How is the command heavy, does it access a lot of files or creates a lot of subprocesses?
If it accesses a lot of files then you are hitting the vm.max_map_count if it is a lot sub processes then you are hitting the limits.
-
❄️:padoru: SantaSnekFriend :padoru:❄️ (supersnekfriend@poa.st)'s status on Friday, 14-Jun-2024 04:09:21 JST ❄️:padoru: SantaSnekFriend :padoru:❄️ @EdBoatConnoisseur >does it access a lot of files
The commands did in quick succession, though I'm not sure that is what you are talking about. The freezes happen late in the commands' completion, which sounds like there's some giant metafile Bash is making in the background that the system can't handle.
-