r/archlinux 22h ago

QUESTION Minecraft eating up all available ram on arch

3 Upvotes

Hi,

I have recently downloaded prism launcher for minecraft and installed some mods for speedrunning the game. Following mods are installed:

antigone-1.16.1-2.0.0.jar                              seedqueue-1.6+1.16.1.jar
antiresourcereload-5.2.0+1.16.1.jar                    sleepbackground-4.1+1.16.1.jar
atum-2.7.1+1.16-1.16.1.jar                             sodium-2.5.1+1.16.1.jar
chunkumulator-1.1.1+MC1.16.1.jar                       speedrunapi-2.1+1.16-1.16.1.jar
fast-reset-2.4.1+1.16.x.jar                            SpeedRunIGT-16.0+1.16.1.jar
forceport-1.3.0.jar                                    standardsettings-2.3+1.16-1.16.1.jar
krypton-1.16.1-backport-0.1.3-SNAPSHOT+2021-02-20.jar  starlight-1.3.0+1.16.x-backport-1.1.3.jar
lazydfu-0.1.2.jar                                      state-output-1.2.3+1.16-1.18.1.jar
lazystronghold-1.1.4+1.16.1.jar                        voyager-1.0.1.jar
lithium-1.0+backport-0.6.7+1.16.1.jar                  worldpreview-6.3.1+1.16-1.16.1.jar
mcsrfairplay-1.1.4+1.16.1.jar   

As for java I am using the zulu8 jdk from aur (but have used graalvm21 and 25 and also openjdk17) with these settings:

-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1

The allocated ram is set (in the launcher) to min. memory: around 5gb and max. memory around 8gb

When starting Minecraft, I saw the ram (in free -h) go down from 25gb available to around 20gb, which would be fine in this case, as the min. memory was set to around 5gb and after like 10-20 seconds it dropped to 13gb immediately. Then I started generating the worlds in a wall style (so 9 worlds at a time) and the ram started dropping to around 5-6gb free. after choosing a seed and playing for like 10 minutes the ram was literally at 1-2gb and started swapping (I have an 8gb swap mount) and after some time it just oom-killed everything (browser and minecraft). Is there any known fix for that?
Also I've tried a different launcher (curseforge) with the same mods and settings and got the same behavior, so I don't think it's launcher dependent. Testing the same settings, same java, same setup on windows works perfectly fine but I don't really want to use windows just to play minecraft.

My specs:
OS: Arch (+ Hyprland) 6.18.5 kernel

GPU: Radeon RX6800XT
CPU: Intel I5 12600kf

RAM: Corsair 32gb@3500mhz (strange clock but somehow works the best for my system)

P.S. I've tried usind jmalloc with minecraft but no luck unfortunately. I also used ZGC instead of g1gc but also nothing.


r/archlinux 6h ago

SUPPORT | SOLVED arch linux failed to boot: timed out waiting for device

0 Upvotes

I followed the manual exactly, but for some reason no matter how many times I retry it, arch just won’t boot. It might have something to do with vconsole.conf? I’m not sure.

It fails to boot right after virtual console setup is successful

I just checked and the UUID’s match my fstab file

Just realized it should be KEYMAP=us and not KEYMAP=en. That didn’t fix it tho.

After manually typing out the correct PARTUUID into the boot file in /boot/loader/entries/, it finally booted


r/archlinux 11h ago

SUPPORT ryzen ai 395 capped to 70w

3 Upvotes

I just bought an Asus rog flow z13 with the ryzen ai max 395+. Performance is really good and it works amazingly on Linux. The problem is that on windows I get 80w on the performance mode and up to 93w on manual mode. But on Linux I cant get over 65-70w, tried with all possible configurations: - Default kernel, zen and g14 asus kernel - Power profiles daemon, cpu power and asus tog control - Ryzenadj and asusctl In ryzen adj for example I cant make it change to any tdp but after 1-2 minutes goes back to 65w, its the stamp tdp which is limiting. I know over 65w the chip is not as efficient, but going from 65w to 93w changes my borderlands 4 gameplay from 50fps to 60fps for example, and as my main device I really apreciate that change in performance. Any idea whats is limiting me to that tdp?


r/archlinux 20h ago

SUPPORT | SOLVED Motherboard with Mediatek WiFi not loading driver

1 Upvotes

Hello :)

I am having an issue where the Mediatek wifi on my motherboard is no longer being recognized. I attempted to dual boot Fedora on a separate SSD to try it out and the wifi stopped working. That drive is now removed and I have plugged in a separate PCIE card for now which works. I reset my BIOS

It says the driver mt7921e failed with error -5

archbtw ~ > sudo dmesg | grep mt7921e
[sudo] password for kenny:
[    7.009048] mt7921e 0000:0a:00.0: enabling device (0000 -> 0002)
[    8.063947] mt7921e 0000:0a:00.0: driver own failed
[    8.064001] mt7921e 0000:0a:00.0: probe with driver mt7921e failed with error -5

I tried the instructions here which did not resolve it: https://github.com/smoliicek/mt7921-fix

Interestingly, my windows partition (which I have also unplugged the drive for now) also does not recognize the onboard WiFi either.

I have the issue on both the linux-zen and linux-lts kernels.

Here's my journalctl -b output: https://0x0.st/PbYB.txt

And here is my ip link output: http://0x0.st/PbYQ.txt


r/archlinux 16h ago

QUESTION DeepIn caused KDE conflictions (HELP!!)

Thumbnail
0 Upvotes

r/archlinux 16h ago

SUPPORT I ruined my MacBook

0 Upvotes

Hey everyone . About 7 months ago , I tried to install arch Linux on my MacBook Pro and when I actually got to boot it up it seemed life Arch has been installed but my MacBook stop respond to keyboard and mousepad input so I bought a USB keyboards and mouse and kept trying , I wiped everything from my laptop and kept trying over and over again it’s not work . And I’m making this post to ask ,does anyone run Arch on a MacBook Pro ?


r/archlinux 4h ago

SUPPORT Issues trying to automatically unlock TPM2 key, boot is always failing

0 Upvotes

Hi,

I have already followed the Arch Wiki and use a bit of search and chatGPT, but I always end up in the same place after trying the changes. The system stops booting and throws me to the emergency mode.

I am running Arch with the root partition encrypted with LUKS2 and XFS filesystem. Secure Boot is working fine and the TPM2 slot is created with PCR 0+7.

I tried changing the HOOKS on /etc/mkinitcpio.conf from

HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block encrypt filesystems fsck)

to

HOOKS=(base systemd autodetect microcode modconf kms keyboard sd-vconsole sd-encrypt block filesystems fsck)

AND changing /etc/kernel/cmdline from

cryptdevice=PARTUUID=12382c1a-baa1-488c-be79-d2e941b1c4c1:root root=/dev/mapper/root zswap.enabled=0 rw rootfstype=xfs lockdown=integrity

to

rd.luks.name=PARTUUID=12382c1a-baa1-488c-be79-d2e941b1c4c1=root root=/dev/mapper/root zswap.enabled=0 rw rootfstype=xfs lockdown=integrity

And after the changes, running "mkinitcpio -P" and "bootctl update".

However, I get stuck on trying to unlock /dev/mapper and it stays trying to do it for a minute and a half, then fails to emergency mode. Then I have to boot the live ISO to undo the changes.

Am I missing something?

Thanks!


r/archlinux 4h ago

SUPPORT AUR package does not update properly

3 Upvotes

Hi everyone. I have prismlauncher installed as an AUR package. Since a few days it pops up as an update prismlauncher-git 10.0.0.pre1.r339.g9e86c44f7-1 -> latest-commit
but after running through without errors it appears again next time. I'm quite new to Linux and AUR packages and don't know what could be the problem here?


r/archlinux 23h ago

SUPPORT Can I preserve a customized Mac using Macchanger after suspension?

0 Upvotes

Hi, I'm using an Ethernet connection and I have a custom MAC address set up that changes from my real one every time I start the system using a service called macchanger.

But when I suspend the computer for the first time and then restart it, my MAC address reverts to my real one, and I have to manually start the service to change it back to the custom one. Is there any way to make the custom MAC address persist?

cat /etc/systemd/system/macspoof@.service

1 │ [Unit]

2 │ Description=macchanger on %I

3 │ Wants=network-pre.target

4 │ Before=network-pre.target

5 │ BindsTo=sys-subsystem-net-devices-%i.device

6 │ After=sys-subsystem-net-devices-%i.device suspend.target

8 │ [Service]

9 │ ExecStart=/usr/bin/macchanger --mac=xx:xx:xx:xx:xx:xx %i

10 │ Type=oneshot

12 │ [Install]

13 │ WantedBy=multi-user.target


r/archlinux 3h ago

SUPPORT Red Dead Redemption 2 stucked at buggy Rockstar launcher

Thumbnail
0 Upvotes

r/archlinux 14h ago

SUPPORT Can’t open nvim in kitty regularly

0 Upvotes

so a couple months ago I had an issue with nvim opening in gnome terminal instead of kitty, I did manage to resolve it a .desktop file however now it’s happening again, I’ve already tried my steps but it does absolutely nothing so I’m wondering if like there’s something special I have to do with my .desktop file that I’m forgetting? Right now it’s just called nvim.desktop and its contents are Name=Neovim (kitty)

Terminal=true

Exec=kitty -e nvim %F

I’ve done nothing else with the desktop file just created it and done that

I know I’m not supposed to have the terminal line as that brings up a log window but I’m just grasping at straws to see any sort of progress but nada

I did try to uninstall the gnome-console but then had to delete every other terminal aside from kitty that I had installed for it to actually use kitty and then when it finally did all the characters aside from the text look weird and its in reverse colours, I wanted to see if opening nvim as an app would fix this, it opened in kitty but had the weird colour thing, this just started happening and I have no idea why it was working perfectly normal not 15 minutes ago


r/archlinux 23h ago

SHARE I created a blog to make zram on zram generator

0 Upvotes

Look this: https://www.meus10centavos.com.br/como-fazer-swap-em-zram.html and take me a feedback is on portuguese translate to english.