You are not logged in.

#1 2018-02-26 19:37:21

vgauzzi
Member
Registered: 2018-02-26
Posts: 7

System slowdown under high ram usage

I started running arch a couple months ago with no major issues, but one thing has been bugging me, whenever my RAM usage gets really high my UI slows down to the point it is unusable, restarting or waiting a couple minutes solves the issues but nothing other than that... mos times switching to another virtual console is possible but the system is so slow the password authentication takes minutes, once i can reach a terminal using htop to kill whatever application is using a lot of RAM solves the issue right away. I have an absurdly large swap 32gb (the system has a 500gb nvme drive which is completely overkill for me) and 8gb of RAM. anyone has an idea how i can fix this issue other than adding more RAM?

Offline

#2 2018-02-26 20:56:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: System slowdown under high ram usage

lvm or ecrypted swap?

Offline

#3 2018-02-26 20:57:10

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: System slowdown under high ram usage

vgauzzi wrote:

... I have an absurdly large swap ...

There have been a couple of posts on the forums lately noting slow performance with large swap partitions. That may be what's causing your problem, actually.

Offline

#4 2018-02-26 21:15:02

vgauzzi
Member
Registered: 2018-02-26
Posts: 7

Re: System slowdown under high ram usage

seth wrote:

lvm or ecrypted swap?

lvm

Offline

#5 2018-02-26 23:47:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Offline

#6 2018-02-27 09:20:43

vgauzzi
Member
Registered: 2018-02-26
Posts: 7

Re: System slowdown under high ram usage

thanks for the reference material @seth, for the time bein I just added 16gb of ram for a total of 24 (not optimal but was what i had in hand) hopefully this gets resolved eventually

Offline

#7 2018-02-27 09:22:24

vgauzzi
Member
Registered: 2018-02-26
Posts: 7

Re: System slowdown under high ram usage

setting up the swap on a different partition should solve it?

Offline

#8 2018-02-27 09:47:05

vgauzzi
Member
Registered: 2018-02-26
Posts: 7

Re: System slowdown under high ram usage

@seth disabling swap did nothing to help the issue, the hanging kept happening, i can reproduce this by simply opening 30 or so chrome tabs and the complete system hangs and doesn't come back unless I kill chromes process, same happens with whatever fills out too much RAM.

Offline

#9 2018-02-27 12:56:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: System slowdown under high ram usage

If you're running out of RAM, the system will drop file caches - at some point for libraries that are immediately due again.
A particular problem with chromium could be its vast amount of PIDs, delaying the OOM killer.

Did you alter some vm settings?

sysctl -a | grep vm

Are you sure this is about RAM allocation and not generic IO?
Do you get this also with generic RAM pressure?
http://www.openkb.info/2014/05/using-c- … emory.html

Offline

#10 2018-02-27 13:55:13

vgauzzi
Member
Registered: 2018-02-26
Posts: 7

Re: System slowdown under high ram usage

no, never changed them

sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
sysctl: reading key "net.ipv6.conf.enp0s31f6.stable_secret"
sysctl: reading key "net.ipv6.conf.enp61s0u1u1.stable_secret"
sysctl: reading key "net.ipv6.conf.lo.stable_secret"
sysctl: reading key "net.ipv6.conf.wlp4s0.stable_secret"
vm.admin_reserve_kbytes = 8192
vm.block_dump = 0
vm.compact_unevictable_allowed = 1
vm.dirty_background_bytes = 0
vm.dirty_background_ratio = 10
vm.dirty_bytes = 0
vm.dirty_expire_centisecs = 3000
vm.dirty_ratio = 20
vm.dirty_writeback_centisecs = 500
vm.dirtytime_expire_seconds = 43200
vm.drop_caches = 0
vm.extfrag_threshold = 500
vm.hugepages_treat_as_movable = 0
vm.hugetlb_shm_group = 0
vm.laptop_mode = 0
vm.legacy_va_layout = 0
vm.lowmem_reserve_ratio = 256   256     32      1
vm.max_map_count = 65530
vm.memory_failure_early_kill = 0
vm.memory_failure_recovery = 1
vm.min_free_kbytes = 67584
vm.min_slab_ratio = 5
vm.min_unmapped_ratio = 1
vm.mmap_min_addr = 65536
vm.mmap_rnd_bits = 28
vm.mmap_rnd_compat_bits = 8
vm.nr_hugepages = 0
vm.nr_hugepages_mempolicy = 0
vm.nr_overcommit_hugepages = 0
vm.numa_stat = 1
vm.numa_zonelist_order = Node
vm.oom_dump_tasks = 1
vm.oom_kill_allocating_task = 0
vm.overcommit_kbytes = 0
vm.overcommit_memory = 0
vm.overcommit_ratio = 50
vm.page-cluster = 3
vm.panic_on_oom = 0
vm.percpu_pagelist_fraction = 0
vm.stat_interval = 1
vm.swappiness = 60
vm.user_reserve_kbytes = 131072
vm.vfs_cache_pressure = 100
vm.watermark_scale_factor = 10
vm.zone_reclaim_mode = 0

Offline

Board footer

Powered by FluxBB