我的火狐每隔几天就会死一次。
上面写着:超过了CPU的时间限制(弃核)
有什么办法我可以取消或至少提高这个限制吗?
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[Child 867149, MediaDecoderStateMachine #1] WARNING: Decoder=7f46622d9800 Decode error: NS_ERROR_DOM_MEDIA_CANCELED (0x806e000a) - RefPtr mozilla::MediaSourceTrackDemuxer::DoSeek(const mozilla::media::TimeUnit &): manager is detached.: file /build/firefox-oDiU8w/firefox-96.0+build2/dom/media/MediaDecoderStateMachine.cpp:3568
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
CPU time limit exceeded (core dumped)
ulimit
不建议任何CPU限制:
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 127356
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 127356
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
OS: Ubuntu20.04 Firefox: 96.0
可能与https://bugzilla.mozilla.org/show_bug.cgi?id=1538435有关
chrt -o 0 firefox
似乎工作了一段时间,但不再起作用了。
我检查了是否对任何进程设置了cpu限制:
grep cpu */limits|grep -v 'unlimited.*unlimited'
这个没找到任何线索。但是,它列出了所有firefox进程:
$ grep realt */limits|grep -v 'unlimited.*unlimited'|G 000
3238579/limits:Max realtime timeout 50000 200000 us
这可能就是原因。但我该怎么改变呢?
发布于 2022-05-14 20:36:21
我禁用了雪花插件,问题就停止了。
https://unix.stackexchange.com/questions/688761
复制相似问题