You are not logged in.

#1 2024-04-28 21:19:28

ChrispyChris3
Member
Registered: 2018-10-08
Posts: 17

Computer Randomly Freezes and Only Responds to Hard Reset [Solved]

I've been having this issue off and on for a while now and it's starting to really frustrate me. I'll be working along just fine and suddenly the computer completely freezes and nothing works at all no matter how long I wait. I have to press the hard reset button to reboot. I've checked for logs and the last journal but I'm not finding anything. At this point, I'm hoping someone can help me figure out what it is, or maybe give me some other ideas for things to check. I will say my hardware is old, about ten years, so maybe that's an issue, but I would hope I could see some sort of error somewhere if this is the case. I'll post the pastebin to the last log before this reboot. I don't see anything explaining the problem, but maybe I'm not sure what I'm looking for. If you need any other info, I'd be more than happy to provide anything you need.

journalctl -b -1
hwinfo --short

Last edited by ChrispyChris3 (2024-05-09 02:36:56)

Offline

#2 2024-05-02 17:52:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,892

Re: Computer Randomly Freezes and Only Responds to Hard Reset [Solved]

Try avoiding pressing the power button to hopefully be able to flush more of the journal to disk, by enabling SysRq and rebooting with the REISUB sequence, leaving a few secs between each key press: https://wiki.archlinux.org/title/Keyboa … el_(SysRq)

Offline

#3 2024-05-04 06:46:21

ChrispyChris3
Member
Registered: 2018-10-08
Posts: 17

Re: Computer Randomly Freezes and Only Responds to Hard Reset [Solved]

V1del wrote:

Try avoiding pressing the power button to hopefully be able to flush more of the journal to disk, by enabling SysRq and rebooting with the REISUB sequence, leaving a few secs between each key press: https://wiki.archlinux.org/title/Keyboa … el_(SysRq)

Wow, thanks for this information. I've never even heard of this or come across it in all of my Googling. I have one more quick question as I just dealt with another freeze tonight when I got home and I did a hard reset sadly, but going forward I want to accumulate as much information as possible. I am going to issue this command in my terminal so it's active just for one session anyways to start (I'll think about making it permanent later):

sysctl kernel.sysrq=1

. Do you recommend a reboot immediately if I freeze, or should I try a SIGTERM, flush data to disk, or another of the commands? I've tested and I can access the commands on my computer, so I'm just curious what might help you guys if I need to post back with more info after a freeze.

Thanks for your help!

Offline

#4 2024-05-04 08:07:47

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: Computer Randomly Freezes and Only Responds to Hard Reset [Solved]

nb. that

sysctl kernel.sysrq=1

isn't persisntent and will not survive any reboot (ie. don't forget about it if you perform a regular reboot)

When the system freezes, do the entire REISUB mnemonic - particularly the "S" is really important.

Offline

#5 2024-05-05 18:04:18

ChrispyChris3
Member
Registered: 2018-10-08
Posts: 17

Re: Computer Randomly Freezes and Only Responds to Hard Reset [Solved]

seth wrote:

nb. that

sysctl kernel.sysrq=1

isn't persisntent and will not survive any reboot (ie. don't forget about it if you perform a regular reboot)

When the system freezes, do the entire REISUB mnemonic - particularly the "S" is really important.

Cool, I went through the entire REISUB process after a system freeze yesterday. I'll post a link to the last journalctl boot entry. If there is more information that would help, please let me know and I'll pull those logs as well. I see some out of memory stuff, so I'm beginning to wonder if that is the issue. Thanks for your help!

journalctl pastebin

Offline

#6 2024-05-05 20:49:13

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: Computer Randomly Freezes and Only Responds to Hard Reset [Solved]

You're running OOM

May 04 14:41:33 archpc kernel: kswapd0: page allocation failure: order:0, mode:0xcc0(GFP_KERNEL), nodemask=(null),cpuset=/,mems_allowed=0
May 04 14:41:33 archpc kernel: CPU: 0 PID: 89 Comm: kswapd0 Tainted: P           OE      6.8.9-arch1-1 #1 b1154d98cdfe0792477fb31da8bf552e17e27d3c
May 04 14:41:33 archpc kernel: Hardware name:  /DZ77SL-50K, BIOS SLZ7710H.86A.0094.2012.1222.1254 12/22/2012
May 04 14:41:33 archpc kernel: Call Trace:
May 04 14:41:33 archpc kernel:  <TASK>
May 04 14:41:33 archpc kernel:  dump_stack_lvl+0x64/0x80
May 04 14:41:33 archpc kernel:  warn_alloc+0x165/0x1e0
May 04 14:41:33 archpc kernel:  __alloc_pages_slowpath.constprop.0+0xd7d/0xde0
May 04 14:41:33 archpc kernel:  ? __blk_mq_alloc_requests+0x38e/0x400
May 04 14:41:33 archpc kernel:  __alloc_pages+0x32d/0x350
May 04 14:41:33 archpc kernel:  alloc_pages_mpol+0x95/0x1f0
May 04 14:41:33 archpc kernel:  __read_swap_cache_async+0x124/0x270
May 04 14:41:33 archpc kernel:  zswap_writeback_entry+0x70/0x180
May 04 14:41:33 archpc kernel:  shrink_memcg_cb+0xe7/0x2f0
May 04 14:41:33 archpc kernel:  ? xa_load+0x8c/0xe0
May 04 14:41:33 archpc kernel:  ? __pfx_shrink_memcg_cb+0x10/0x10
May 04 14:41:33 archpc kernel:  __list_lru_walk_one+0xbc/0x1d0
May 04 14:41:33 archpc kernel:  ? __pfx_shrink_memcg_cb+0x10/0x10
May 04 14:41:33 archpc kernel:  list_lru_walk_one+0x5d/0x90
May 04 14:41:33 archpc kernel:  zswap_shrinker_scan+0xc4/0x130
May 04 14:41:33 archpc kernel:  do_shrink_slab+0x142/0x360
May 04 14:41:33 archpc kernel:  shrink_slab+0x28e/0x3c0
May 04 14:41:33 archpc kernel:  shrink_one+0x123/0x1b0
May 04 14:41:33 archpc kernel:  shrink_node+0x97e/0xbc0
May 04 14:41:33 archpc kernel:  balance_pgdat+0x523/0x960
May 04 14:41:33 archpc kernel:  ? psi_task_switch+0xd6/0x230
May 04 14:41:33 archpc kernel:  ? __switch_to_asm+0x3e/0x70
May 04 14:41:33 archpc kernel:  ? finish_task_switch.isra.0+0x94/0x2f0
May 04 14:41:33 archpc kernel:  kswapd+0x20d/0x400
May 04 14:41:33 archpc kernel:  ? __pfx_autoremove_wake_function+0x10/0x10
May 04 14:41:33 archpc kernel:  ? __pfx_kswapd+0x10/0x10
May 04 14:41:33 archpc kernel:  kthread+0xe8/0x120
May 04 14:41:33 archpc kernel:  ? __pfx_kthread+0x10/0x10
May 04 14:41:33 archpc kernel:  ret_from_fork+0x34/0x50
May 04 14:41:33 archpc kernel:  ? __pfx_kthread+0x10/0x10
May 04 14:41:33 archpc kernel:  ret_from_fork_asm+0x1b/0x30
May 04 14:41:33 archpc kernel:  </TASK>
May 04 14:41:33 archpc kernel: Mem-Info:
May 04 14:41:33 archpc kernel: active_anon:951247 inactive_anon:911991 isolated_anon:0
                                active_file:25 inactive_file:114 isolated_file:0
                                unevictable:900 dirty:50 writeback:0
                                slab_reclaimable:18250 slab_unreclaimable:37853
                                mapped:9648 shmem:2708 pagetables:22380
                                sec_pagetables:0 bounce:0
                                kernel_misc_reclaimable:0
                                free:291 free_pcp:1020 free_cma:0
May 04 14:41:33 archpc kernel: Node 0 active_anon:3804988kB inactive_anon:3647964kB active_file:100kB inactive_file:456kB unevictable:3600kB isolated(anon):0kB isolated(file):0kB mapped:38592kB dirty:200kB writeback:0kB shmem:10832kB shmem_thp:0kB shmem_pmdmapped:0kB anon_thp:509952kB writeback_tmp:0kB kernel_stack:31824kB pagetables:89520kB sec_pagetables:0kB all_unreclaimable? no
May 04 14:41:33 archpc kernel: Node 0 DMA free:0kB boost:0kB min:128kB low:160kB high:192kB reserved_highatomic:0KB active_anon:28kB inactive_anon:14112kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:76kB present:15984kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:36kB local_pcp:0kB free_cma:0kB
May 04 14:41:33 archpc kernel: lowmem_reserve[]: 0 3386 7833 7833 7833
May 04 14:41:33 archpc kernel: Node 0 DMA32 free:244kB boost:65604kB min:94764kB low:102052kB high:109340kB reserved_highatomic:2048KB active_anon:1788420kB inactive_anon:1583836kB active_file:44kB inactive_file:104kB unevictable:0kB writepending:96kB present:3637396kB managed:3533612kB mlocked:0kB bounce:0kB free_pcp:216kB local_pcp:28kB free_cma:0kB
May 04 14:41:33 archpc kernel: lowmem_reserve[]: 0 0 4446 4446 4446
May 04 14:41:33 archpc kernel: Node 0 Normal free:920kB boost:86148kB min:124436kB low:134008kB high:143580kB reserved_highatomic:2048KB active_anon:2016596kB inactive_anon:2050608kB active_file:56kB inactive_file:352kB unevictable:3600kB writepending:108kB present:4702208kB managed:4553544kB mlocked:512kB bounce:0kB free_pcp:3828kB local_pcp:292kB free_cma:0kB
May 04 14:41:33 archpc kernel: lowmem_reserve[]: 0 0 0 0 0
May 04 14:41:33 archpc kernel: Node 0 DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB
May 04 14:41:33 archpc kernel: Node 0 DMA32: 3*4kB (H) 3*8kB (H) 3*16kB (H) 3*32kB (H) 1*64kB (H) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 244kB
May 04 14:41:33 archpc kernel: Node 0 Normal: 14*4kB (H) 4*8kB (H) 2*16kB (H) 9*32kB (H) 2*64kB (H) 1*128kB (H) 1*256kB (H) 0*512kB 0*1024kB 0*2048kB 0*4096kB = 920kB
May 04 14:41:33 archpc kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
May 04 14:41:33 archpc kernel: 200664 total pagecache pages
May 04 14:41:33 archpc kernel: 197817 pages in swap cache
May 04 14:41:33 archpc kernel: Free swap  = 220kB
May 04 14:41:33 archpc kernel: Total swap = 3145724kB

From the process list down the journal, open less tabs in firefox hmm

Offline

#7 2024-05-09 02:36:20

ChrispyChris3
Member
Registered: 2018-10-08
Posts: 17

Re: Computer Randomly Freezes and Only Responds to Hard Reset [Solved]

Thanks a bunch, I appreciate you confirming and helping, it means a lot. I'll work to be better at using less tabs haha. Have a great day!

Offline

Board footer

Powered by FluxBB