Score:0

20.04 keeps freezing randomly

ธง pe

For some reason, Ubuntu keeps freezing at random times. Sometimes i will come back from being afk and it will be frozen, other times it with freeze when I am loading an application. Even if the freezes correspond to my resource usage, I still have ample resources to be running vscode, discord, and opera at the same time. Every post I've found either has no solution or a solution that doesn't apply to me. Every time it freezes, I am forced to manually shutdown my computer which will eventually start to degrade my hardware. Additionally, this is my whole computer not just gnome, so trying to access the gnome terminal to reload doesn't work.

pixelatedlagg@pixelatedlagg-desktop:~$ inxi -Fxz
System:
  Kernel: 5.4.0-89-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Gnome 3.36.9 Distro: Ubuntu 20.04.3 LTS (Focal Fossa) 
Machine:
  Type: Desktop Mobo: ASRock model: A320M serial: <filter> 
  UEFI [Legacy]: American Megatrends v: P4.70 date: 08/27/2018 
CPU:
  Topology: Quad Core model: AMD Ryzen 3 1200 bits: 64 type: MCP arch: Zen 
  rev: 1 L2 cache: 2048 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 24750 
  Speed: 3175 MHz min/max: 1550/3100 MHz Core speeds (MHz): 1: 3134 2: 1375 
  3: 1375 4: 1375 
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: ZOTAC driver: nvidia 
  v: 470.63.01 bus ID: 26:00.0 
  Display: x11 server: X.Org 1.20.11 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: NVIDIA GP107GL High Definition Audio vendor: ZOTAC 
  driver: snd_hda_intel v: kernel bus ID: 26:00.1 
  Device-2: AMD Family 17h HD Audio vendor: ASRock driver: snd_hda_intel 
  v: kernel bus ID: 28:00.3 
  Device-3: JMTek LLC. USB PnP Audio Device type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-9:4 
  Sound Server: ALSA v: k5.4.0-89-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASRock driver: r8169 v: kernel port: f000 bus ID: 25:00.0 
  IF: enp37s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  Device-2: Ralink MT7610U (Archer T2U 2.4G+5G WLAN Adapter type: USB 
  driver: mt76x0u bus ID: 3-1:2 
  IF: wlx503eaa895721 state: down mac: <filter> 
Drives:
  Local Storage: total: 931.51 GiB used: 140.31 GiB (15.1%) 
  ID-1: /dev/sda vendor: Western Digital model: WD10EZEX-08WN4A0 
  size: 931.51 GiB 
Partition:
  ID-1: / size: 915.89 GiB used: 140.31 GiB (15.3%) fs: ext4 dev: /dev/sda1 
Sensors:
  System Temperatures: cpu: 42.6 C mobo: N/A gpu: nvidia temp: 34 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 47% 
Info:
  Processes: 328 Uptime: 6m Memory: 7.77 GiB used: 2.44 GiB (31.4%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 
  inxi: 3.0.38 

Any help is appreciated :)

Edit: In the 20 minutes after posting this question, my computer froze 3 more times. If I don't find a fix soon, I'm f*cked.

Edit: More information

pixelatedlagg@pixelatedlagg-desktop:~$ free -h
              total        used        free      shared  buff/cache   available
Mem:          7.8Gi       2.0Gi       1.3Gi        99Mi       4.5Gi       5.4Gi
Swap:         2.0Gi       1.0Mi       2.0Gi
pixelatedlagg@pixelatedlagg-desktop:~$ swapon -s
Filename                Type        Size    Used    Priority
/swapfile                               file        4194300 0   -2
pixelatedlagg@pixelatedlagg-desktop:~$ sysctl vm.swappiness
vm.swappiness = 60
pixelatedlagg@pixelatedlagg-desktop:~$ ls -al ~/.local/share/gnome-shell/extensions
ls: cannot access '/home/pixelatedlagg/.local/share/gnome-shell/extensions': No such file or directory
pixelatedlagg@pixelatedlagg-desktop:~$ ls -al /usr/share/gnome-shell/extensions
total 72
drwxr-xr-x 18 root root 4096 Sep 28 23:25 .
drwxr-xr-x  7 root root 4096 Sep 28 23:33 ..
drwxr-xr-x  2 root root 4096 Sep 28 23:06 [email protected]
drwxr-xr-x  2 root root 4096 Sep 28 23:06 [email protected]
drwxr-xr-x  5 root root 4096 Sep 28 23:04 [email protected]
drwxr-xr-x  2 root root 4096 Sep 28 23:25 desktop-icons@csoriano
drwxr-xr-x  2 root root 4096 Sep 28 23:06 [email protected]
drwxr-xr-x  2 root root 4096 Sep 28 23:06 [email protected]
drwxr-xr-x  2 root root 4096 Sep 28 23:06 [email protected]
drwxr-xr-x  2 root root 4096 Sep 28 23:06 native-window-placement@gnome-shell-extensions.gcampax.github.com
drwxr-xr-x  2 root root 4096 Sep 28 23:06 [email protected]
drwxr-xr-x  2 root root 4096 Sep 28 23:06 screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com
drwxr-xr-x  3 root root 4096 Sep 28 23:04 [email protected]
drwxr-xr-x  3 root root 4096 Sep 28 23:05 [email protected]
drwxr-xr-x  2 root root 4096 Sep 28 23:06 [email protected]
drwxr-xr-x  2 root root 4096 Sep 28 23:06 [email protected]
drwxr-xr-x  2 root root 4096 Sep 28 23:06 [email protected]
drwxr-xr-x  2 root root 4096 Sep 28 23:06 [email protected]
  *-firmware                
       description: BIOS
       vendor: American Megatrends Inc.
       physical id: 0
       version: P4.70
       date: 08/27/2018
       size: 64KiB
       capacity: 16MiB
       capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
  *-memory
       description: System Memory
       physical id: b
       slot: System board or motherboard
       size: 8GiB
     *-bank:0
          description: DIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
          product: DDR4 2400 2OZ
          vendor: A-DATA Technology
          physical id: 0
          serial: 3ADF0100
          slot: DIMM 0
          size: 8GiB
          width: 64 bits
          clock: 2400MHz (0.4ns)
     *-bank:1
          description: [empty]
          product: Unknown
          vendor: Unknown
          physical id: 1
          serial: Unknown
          slot: DIMM 0
  *-cache:0
       description: L1 cache
       physical id: d
       slot: L1 - Cache
       size: 384KiB
       capacity: 384KiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=1
  *-cache:1
       description: L2 cache
       physical id: e
       slot: L2 - Cache
       size: 2MiB
       capacity: 2MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=2
  *-cache:2
       description: L3 cache
       physical id: f
       slot: L3 - Cache
       size: 8MiB
       capacity: 8MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=3
  *-cpu                     
       description: CPU
       product: AMD Ryzen 3 1200 Quad-Core Processor
       vendor: Advanced Micro Devices [AMD]
       physical id: 10
       bus info: cpu@0
       version: AMD Ryzen 3 1200 Quad-Core Processor
       serial: Unknown
       slot: AM4
       size: 1315MHz
       capacity: 3450MHz
       width: 64 bits
       clock: 100MHz
       capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp x86-64 constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca cpufreq
       configuration: cores=4 enabledcores=4 threads=4

Edit: still freezing weeks later :<

heynnema avatar
ru flag
แก้ไขคำถามของคุณและแสดง `free -h` เริ่มแสดงความคิดเห็นกับฉันด้วย @heynnema ไม่งั้นฉันจะคิดถึงพวกเขา
Pixelated Lagg avatar
pe flag
@heynnema อย่างที่ฉันพูด ฉันควรมีทรัพยากรเพียงพอ แต่ฉันเพิ่มผลลัพธ์ของ `free -h` อย่างไรก็ตาม
heynnema avatar
ru flag
แสดง `swapon -s` และ `sysctl vm.swappiness` ให้ฉันดู
heynnema avatar
ru flag
ดูเหมือนว่าคุณอาจมีปัญหาในการสลับ ดูคำตอบของฉัน ถ้ามันช่วยแก้ปัญหาการค้างของคุณได้ โปรดอย่าลืมยอมรับโดยคลิกที่ไอคอนเครื่องหมายถูกที่ปรากฏทางด้านซ้ายของคำตอบของฉัน
Pixelated Lagg avatar
pe flag
@heynnema หลังจากเสร็จสิ้นกระบวนการจัดสรรที่คุณอธิบายไว้ในคำตอบ ฉันได้เพิ่มผลลัพธ์ของ `swapon -s` และ `sysctl vm.swappiness` ในคำถามของฉัน
heynnema avatar
ru flag
ตอนนี้ `free -h` แสดง 8G RAM และ 4G swap หรือไม่
Pixelated Lagg avatar
pe flag
`free -h` ส่งคืนสิ่งนี้: 7.8GI Mem และ 4GI Swap
heynnema avatar
ru flag
ดีมาก! ตอนนี้โหลด vscode, discord และ Opera แล้วดูว่าค้างหรือไม่
Pixelated Lagg avatar
pe flag
ตกลงจะ @ คุณถ้าทำอีกครั้ง :)
heynnema avatar
ru flag
หลังจากการแลกเปลี่ยนครั้งล่าสุด เราเห็นว่าคุณได้เพิ่มรายการส่วนขยายของ gnome-shell แล้ว เพื่อวัตถุประสงค์ในการทดสอบ ให้ปิดการใช้งานส่วนขยายทั้งหมด ยกเว้น `desktop-icons' และ 'ubuntu-appindicators' และ 'ubuntu-dock' และดูว่าวิธีนี้จะช่วยปรับปรุงสถานการณ์ได้หรือไม่ เริ่มแสดงความคิดเห็นกับฉันด้วย @heynnema ไม่งั้นฉันจะคิดถึงพวกเขา
Score:2
ธง it

หลังจาก "ปิดระบบอย่างกะทันหัน" หรือที่เรียกว่า "ระบบขัดข้อง" และรีบูต คำสั่งเทอร์มินัล sudo Journalctl -b -1 -e จะแสดงจุดสิ้นสุดของบันทึกการบูตครั้งก่อนหากไม่มีคำแนะนำ ให้สงสัยว่ามีไฟฟ้า/ความร้อนสูงเกินไป

ความร้อนสูงเกินไปมักเกิดจากฝุ่น ปิดระบบของคุณ ปลดสิ่งกีดขวางพัดลมและช่องระบายอากาศ ทำความสะอาดฝุ่น ตรวจสอบการไหลเวียนของอากาศ ฝุ่นที่เคลือบตัวแลกเปลี่ยนความร้อนและชิปเป็นฉนวนที่ดีและไม่ดีต่อการระบายความร้อน อย่าแยกชิ้นส่วนคอมพิวเตอร์ของคุณจนกว่าคุณจะดาวน์โหลดคู่มือของผู้ผลิตและศึกษาวิธีการทำความสะอาด ทำให้ข้อมูลนี้พร้อมใช้งานเมื่อคอมพิวเตอร์ของคุณไม่อยู่ (กระดาษ คอมพิวเตอร์เครื่องอื่น) อย่าใช้น้ำ

อ่าน ผู้ชายวารสารctl เพื่อดูวิธีดึงข้อมูลจากบันทึก

คุณสามารถค้นหาวิธีที่ฉันใช้ประโยชน์จาก วารสาร ctl ได้ง่ายขึ้นที่ https://askubuntu.com/users/25618/waltinator.

Pixelated Lagg avatar
pe flag
ดูเหมือนว่าก่อนที่บันทึกแต่ละรายการจะจบลง มีข้อผิดพลาดมากมายเกิดขึ้นจากOpera_opera.desktop
Pixelated Lagg avatar
pe flag
เดาว่ามันเป็นปัญหาของเดสก์ท็อปโอเปร่า ฉันจะยังคงทำความสะอาดฮาร์ดแวร์ของฉัน ขอบคุณสำหรับคำตอบที่ตรงไปตรงมา :)
Score:0
ธง cn

ไม่แน่ใจว่าเกี่ยวข้องหรือไม่ แต่ฉันมี ASRock Z77 และเคอร์เนล 5.4.0-89 ค้างแบบสุ่ม หลังจากที่ฉันซอฟต์รีเซ็ต ฉันได้รับข้อผิดพลาดของตัวจับเวลาระบบจากไบออส (เสียงบี๊บ 4 ครั้ง) และลูปสำหรับบูต จากนั้นฉันต้องเปิดเครื่องใหม่ ด้วย 5.4.0-88 มันดูเสถียร

แก้ไขหลังจากผ่านไปหลายวัน: มันเสถียรแน่นอนกับ 88

ctrl avatar
cn flag
ดูเหมือนว่า 5.4.0-90 จะแก้ไขแล้ว
Score:0
ธง ru

/swapfile ของคุณมีขนาดเล็กเกินไปที่ 2G ลองเพิ่มเป็น 4G แล้วดูว่าจะช่วยได้ไหม

บันทึก: การใช้อย่างไม่ถูกต้องของ rm และ วว คำสั่งอาจทำให้ข้อมูลสูญหายได้ แนะนำให้คัดลอก/วาง

ใน เทอร์มินัล...

sudo swapoff -a # ปิดการแลกเปลี่ยน
sudo rm -i /swapfile # ลบเก่า /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile # ตั้งค่าการป้องกันไฟล์ที่เหมาะสม
sudo mkswap /swapfile # init /swapfile
sudo swapon /swapfile # เปิด swap
ฟรี -h # ยืนยัน 8G RAM และการแลกเปลี่ยน 4G

แก้ไข /etc/fstab โดยใช้ sudo -H gedit /etc/fstab หรือ sudo pico /etc/fstab.

ยืนยันบรรทัดนี้ /swapfile ใน /etc/fstab... และยืนยันว่าไม่มี âswapâ บรรทัดอื่น... ใช้ SPACES ในบรรทัดนี้... ยืนยันว่าไม่มีแท็บ...

/swapfile ไม่มี swap sw 0 0

รีบูต # รีบูตและตรวจสอบการทำงาน

อัปเดต #1:

CPU และ RAM ไม่โอเวอร์คล็อก

Mobo: ASRock รุ่น: A320M เฟิร์มแวร์: P4.70

ADATA 8G DIMM ส่วน # คือ AX4U240038G16-BRZ และไม่ปรากฏในแผนภูมิหน่วยความจำที่เข้ากันได้

ทดสอบความจำ ล้มเหลว ต้องตรวจสอบชื่อ CPU สำหรับ Ryzen 3 1200 และรายการ Memory Compatibility ที่ https://www.asrock.com/mb/AMD/A320M/index.asp#CPU.

cn flag
ความคิดเห็นไม่ได้มีไว้สำหรับการอภิปรายเพิ่มเติม การสนทนานี้[ย้ายไปแชท](https://chat.stackexchange.com/rooms/130924/discussion-on-answer-by-heynnema-20-04-keeps-freezing-randomly)
Score:-1
ธง pe

แก้ไขปัญหาการค้างโดยทิ้ง Ubuntu และเปลี่ยนไปใช้ระบบปฏิบัติการที่เสถียรกว่ามากอย่าง windows 10

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา