我的系统上安装了Ubuntu22.04,内存为16 1TB,磁盘空间为1TB。
运行大量资源密集型的应用程序/进程确实(并且应该在逻辑上)导致系统结冰/中断,然后必须重新启动系统。
但是在运行Firefox时,不管其他后台应用程序的资源消耗有多低,系统的冻结概率都很高,有时只有3个打开的选项卡。如果浏览器缓存是一个问题,我倾向于在私有模式下浏览,但这并不能阻止系统崩溃。
我在系统监视器中记录了CPU的消耗,我的系统已经崩溃了好几次,没有超过20%的RAM使用量。Firefox也没有来自这些实例的任何崩溃报告。我已经尝试过Mozilla建议的几个修复(关闭硬件加速等),但是没有一个改进了我的情况。我记得运行了4到5个窗口,每个窗口至少有5个选项卡,从来没有遇到过崩溃。请帮我解决这个问题。
请从下面的系统日志中找到最后几行。由于系统冻结,我在最后一行之后使用电源按钮强制关闭。
May 18 10:03:02 jonsmith kernel: [ 290.566068] ACPI Error: Aborting method \_SB.PCI0.PEG0.PEGP.BRT6 due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.566228] ACPI Error: Aborting method \EV5 due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.566389] ACPI Error: Aborting method \SMEE due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.566550] ACPI Error: Aborting method \SMIE due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.566708] ACPI Error: Aborting method \NEVT due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.566899] ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.694431] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.PEG0.PEGP.BRT6.LCD], AE_NOT_FOUND (20220331/psargs-330)
May 18 10:03:02 jonsmith kernel: [ 290.694455]
May 18 10:03:02 jonsmith kernel: [ 290.694458] No Local Variables are initialized for Method [BRT6]
May 18 10:03:02 jonsmith kernel: [ 290.694460]
May 18 10:03:02 jonsmith kernel: [ 290.694463] Initialized Arguments for Method [BRT6]: (2 arguments defined for method invocation)
May 18 10:03:02 jonsmith kernel: [ 290.694465] Arg0: 00000000409b1dbf <Obj> Integer 0000000000000001
May 18 10:03:02 jonsmith kernel: [ 290.694477] Arg1: 00000000ad7ffa02 <Obj> Integer 0000000000000000
May 18 10:03:02 jonsmith kernel: [ 290.694486]
May 18 10:03:02 jonsmith kernel: [ 290.694490] ACPI Error: Aborting method \_SB.PCI0.PEG0.PEGP.BRT6 due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.694650] ACPI Error: Aborting method \EV5 due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.694810] ACPI Error: Aborting method \SMEE due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.695006] ACPI Error: Aborting method \SMIE due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.695174] ACPI Error: Aborting method \NEVT due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:02 jonsmith kernel: [ 290.695348] ACPI Error: Aborting method \_SB.PCI0.LPCB.ECDV._Q66 due to previous error (AE_NOT_FOUND) (20220331/psparse-529)
May 18 10:03:03 jonsmith kernel: [ 291.373091] audit: type=1107 audit(1684384383.334:60): pid=1089 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.9" pid=2650 label="snap.snap-store.ubuntu-software" peer_pid=1111 peer_label="unconfined"
May 18 10:03:03 jonsmith kernel: [ 291.373091] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
May 18 10:03:03 jonsmith kernel: [ 291.373813] audit: type=1107 audit(1684384383.334:61): pid=1089 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" mask="send" name=":1.9" pid=2650 label="snap.snap-store.ubuntu-software" peer_pid=1111 peer_label="unconfined"
May 18 10:03:03 jonsmith kernel: [ 291.373813] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
May 18 10:03:03 jonsmith kernel: [ 291.377907] audit: type=1107 audit(1684384383.338:62): pid=1089 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.9" pid=2650 label="snap.snap-store.ubuntu-software" peer_pid=1111 peer_label="unconfined"
May 18 10:03:03 jonsmith kernel: [ 291.377907] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
May 18 10:03:03 jonsmith kernel: [ 291.378569] audit: type=1107 audit(1684384383.338:63): pid=1089 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" mask="send" name=":1.9" pid=2650 label="snap.snap-store.ubuntu-software" peer_pid=1111 peer_label="unconfined"
May 18 10:03:03 jonsmith kernel: [ 291.378569] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
May 18 10:03:04 jonsmith kernel: [ 292.511267] audit: type=1400 audit(1684384384.470:64): apparmor="DENIED" operation="open" class="file" profile="snap.snap-store.ubuntu-software" name="/etc/appstream.conf" pid=2650 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
May 18 10:03:07 jonsmith kernel: [ 295.988293] audit: type=1400 audit(1684384387.949:65): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/19122/usr/lib/snapd/snap-confine" pid=3545 comm="snap-confine" capability=12 capname="net_admin"
May 18 10:03:07 jonsmith kernel: [ 295.988305] audit: type=1400 audit(1684384387.949:66): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/19122/usr/lib/snapd/snap-confine" pid=3545 comm="snap-confine" capability=38 capname="perfmon"
May 18 10:03:08 jonsmith kernel: [ 296.689793] audit: type=1400 audit(1684384388.653:67): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=3623 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
May 18 10:03:08 jonsmith kernel: [ 296.690038] audit: type=1400 audit(1684384388.653:68): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=3623 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
May 18 10:03:08 jonsmith kernel: [ 296.690251] audit: type=1400 audit(1684384388.653:69): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=3623 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
May 18 10:03:08 jonsmith kernel: [ 296.690442] audit: type=1400 audit(1684384388.653:70): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=3623 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
May 18 10:03:25 jonsmith kernel: [ 313.441774] audit: type=1326 audit(1684384405.400:71): auid=1000 uid=1000 gid=1000 ses=3 subj=snap.firefox.firefox pid=3545 comm="firefox" exe="/snap/firefox/2667/usr/lib/firefox/firefox" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7faa5b0c873d code=0x50000
May 18 10:03:40 jonsmith kernel: [ 328.153613] audit: type=1326 audit(1684384420.108:72): auid=1000 uid=1000 gid=1000 ses=3 subj=snap.firefox.firefox pid=4460 comm="firefox" exe="/snap/firefox/2667/usr/lib/firefox/firefox" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7fca7451473d code=0x50000发布于 2023-05-20 03:00:39
评论中的建议解决了我的问题。总之,我的系统禁用了systemd-oomd。我通过sysctl接口启用了它,此后我的系统就没有崩溃。当火狐中有太多的标签或窗口时,有时可能会有延迟,但这些延迟从来没有像以前那样螺旋上升到整个系统的冻结状态。
我还建议像@Matigo所建议的那样,尝试添加交换空间,因为这样可以减轻RAM的负担,特别是当RAM在处理Firefox、Chrome或Brave等浏览器的过度需求时更是如此。
https://askubuntu.com/questions/1468369
复制相似问题