You are not logged in.

#1 2021-09-22 14:23:32

avasam
Member
Registered: 2020-01-26
Posts: 72
Website

Arch Linux Freeze when run several application

my archlinux freeze when i run several app's in same time. my system has Core i5 9400f cpu and 8 GB ram.I think my hardware is good enough and This error is from another problem.
i run this in terminal  :

journalctl -b-1

i find this in journalctl lines :

Sep 22 17:18:29 myarch kernel: Out of memory: Killed process 19678 (chrome) total-vm:21386992kB, anon-rss:317596kB, file-rss:0kB, shmem-rss:4352kB, UID:1000 pgtables:1712kB oom_score_adj:300

pls help me

Offline

#2 2021-09-22 15:29:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,302

Re: Arch Linux Freeze when run several application

The one line you posted contains literally  kernel information that your hardware "isn't good enough". What are you running  exactly?  Check memory usage and get rid of the biggest offenders/don't run them at the same time, depending on what exactly you are doing you can easily use 4GB+ on a browser alone.

In any case you will want to post a more complete journal so we get some context as to what happens. If you have no swap you might consider making some but will only temporarily help.

Offline

#3 2021-09-22 16:32:59

sleet
Member
Registered: 2021-06-11
Posts: 11

Re: Arch Linux Freeze when run several application

Okay so, I was getting the same behavior on my machine that has 16GB of RAM.

The secret was to add more swap on it. You don't need to create a new partition if you
haven't allocated space for it yet, as swap space can be set to a file.

These commands will assume you have root permissions.

First, create a new partition or file for your swap space :

dd if=/dev/zero of=/swap bs=1G count=4 status=progress

This will create a 4GB file called swap on the root directory.

Next, set up the partition/file as a swap area:

mkswap /swap

Now, tell your system to use that swap

swapon /swap

If you want to check RAM and swap usage at real time, use a program like htop to keep
monitoring them. If you see that, when you open a lot of applications, swap is being used,
that means you were indeed using most of your RAM, and your computer would simply
hang when trying to load new stuff.

Make sure to add the swap entry to the /etc/fstab file so that it sets up the swap during
boot, e.g:

/dev/sda2   none    swap    defaults    0 0

or

/path/to/swapfile   none    swap    defaults    0 0

Offline

Board footer

Powered by FluxBB