在运行肉桂桌面一段时间之后,我最终得到一个"太多的文件打开"错误。这通常发生在让我的笔记本电脑过夜或中途一天之后。
这是我的系统详情:
$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18.3
DISTRIB_CODENAME=sylvia
DISTRIB_DESCRIPTION="Linux Mint 18.3 Sylvia"
有问题的过程实际上是肉桂'可执行文件(pid 29195 ):
$ ps faux | grep cinnamon
mcrowe 1811 0.0 0.0 438712 22488 ? Ssl 05:55 0:01 \_ cinnamon-session --session cinnamon
mcrowe 1888 0.0 0.0 11136 312 ? Ss 05:55 0:00 \_ /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch cinnamon-session-cinnamon
mcrowe 1978 0.0 0.1 559020 30388 ? Sl 05:55 0:01 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-power
mcrowe 1981 0.0 0.0 334388 19584 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-clipboard
mcrowe 1986 0.0 0.0 408420 20132 ? Sl 05:55 0:12 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-housekeeping
mcrowe 1990 0.0 0.0 384704 21132 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-wacom
mcrowe 1992 0.0 0.0 409776 21564 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-xsettings
mcrowe 2002 0.0 0.4 711672 101888 ? Sl 05:55 0:01 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-background
mcrowe 2006 0.0 0.1 539888 30080 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-xrandr
mcrowe 2007 0.0 0.0 722876 23008 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-sound
mcrowe 2009 0.0 0.0 658080 21704 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-color
mcrowe 2012 0.0 0.0 334392 19708 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-cursor
mcrowe 2017 0.0 0.0 668100 23096 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-media-keys
mcrowe 2028 0.0 0.0 408408 19900 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-a11y-settings
mcrowe 2029 0.0 0.0 451856 21284 ? Sl 05:55 0:05 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-keyboard
mcrowe 2031 0.0 0.0 555868 20500 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-orientation
mcrowe 2034 0.0 0.0 408176 19572 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-screensaver-proxy
mcrowe 2050 0.0 0.0 408428 20384 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-mouse
mcrowe 2051 0.0 0.0 484280 20588 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-automount
mcrowe 2053 0.0 0.0 408420 19700 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-a11y-keyboard
mcrowe 2055 0.0 0.0 454336 23144 ? Sl 05:55 0:00 \_ /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-print-notifications
mcrowe 2410 0.0 0.1 194508 30612 ? S 05:55 0:00 \_ /usr/bin/python3 /usr/bin/cinnamon-launcher --replace
mcrowe 29195 12.9 1.3 2189452 321324 ? Sl 09:04 36:50 | \_ cinnamon --replace --replace
mcrowe 2543 0.0 0.1 427132 31948 ? Sl 05:55 0:00 \_ /usr/bin/python3 /usr/bin/cinnamon-killer-daemon
mcrowe 4601 0.0 0.2 716320 63272 ? Sl 05:55 0:07 \_ cinnamon-screensaver
mcrowe 1891 0.0 0.0 43600 372 ? S 05:55 0:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch cinnamon-session-cinnamon
mcrowe 2176 0.0 0.0 508852 14252 ? Sl 05:55 0:00 /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-printer
mcrowe 24124 0.0 0.0 14224 988 pts/4 S+ 13:49 0:00 \_ grep --color --exclude-dir=.svn --exclude-dir=.git cinnamon
显然有1024个打开文件的每进程限制:
$ ls -1b /proc/29195/fd | wc -l
1024
打开的特定文件在这个要点中:
$ lsof -p 29195
我可以通过按Ctrl-Alt-ESC重新启动来恢复,但我想知道造成这种情况的原因。有人知道原因吗?