![Ubantu 缓慢启动和关闭问题:如何解决此问题?](https://linux22.com/image/85010/Ubantu%20%E7%BC%93%E6%85%A2%E5%90%AF%E5%8A%A8%E5%92%8C%E5%85%B3%E9%97%AD%E9%97%AE%E9%A2%98%EF%BC%9A%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%E6%AD%A4%E9%97%AE%E9%A2%98%EF%BC%9F.png)
最初我的启动时间非常短,它过去在几秒钟内启动,用户进程也在一分钟内启动并准备使用,现在由于某种原因我的启动速度非常慢,而且我的系统每次都不会关闭我必须手动按下电源按钮才能关闭机器(关机时卡在ubantu加载页面,有时整个屏幕像素表现得很奇怪并输出不同的颜色)我运行了一些命令来检查这里是否存在问题,所以我发现dmesg 从 50 秒跳转到 2358 秒,这里是我的全部消息报告
片段:
[ 32.924217] /dev/vmnet: open called by PID 1417 (vmnet-natd)
[ 32.924225] /dev/vmnet: hub 8 does not exist, allocating memory.
[ 32.924237] /dev/vmnet: port on hub 8 successfully opened
[ 32.958592] userif-3: sent link down event.
[ 32.958595] userif-3: sent link up event.
[ 32.986723] /dev/vmnet: open called by PID 1418 (vmnet-netifup)
[ 32.986732] /dev/vmnet: port on hub 8 successfully opened
[ 33.295624] /dev/vmnet: open called by PID 1431 (vmnet-dhcpd)
[ 33.295646] /dev/vmnet: port on hub 8 successfully opened
[ 39.559495] dell_laptop: Keyboard brightness level control not
supported
[ 39.821671] dell_laptop: Keyboard brightness level control not
supported
[ 50.011334] /dev/vmmon[0]: HostIFReadUptimeWork: detected
settimeofday: fixed uptimeBase old 18445286791255852801 new
18445286791266192862 attempts 1
[ 2358.980587] bridge-wlp7s0: disabling the bridge
[ 2358.984674] cfg80211: World regulatory domain updated:
[ 2358.984680] cfg80211: DFS Master region: unset
[ 2358.984682] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp), (dfs_cac_time)
[ 2358.984701] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A,
2000 mBm), (N/A)
[ 2358.984704] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A,
2000 mBm), (N/A)
[ 2358.984707] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A,
2000 mBm), (N/A)
[ 2358.984710] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000
KHz AUTO), (N/A, 2000 mBm), (N/A)
其中 wlp7s0 是我的 wifi 网络接口,我不知道这是否是实际问题,但这是我的预感。我的 GRUB 文件位于/etc/默认/grub是
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=pci"
GRUB_CMDLINE_LINUX=""
我不认为这里有任何东西导致关闭问题,仍然无法弄清楚!
我的 CPU 统计数据:
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 58
Model name: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Stepping: 9
CPU MHz: 1208.203
CPU max MHz: 3100.0000
CPU min MHz: 1200.0000
BogoMIPS: 4988.81
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
NUMA node0 CPU(s): 0-3
free -h
total used free shared buffers cached
Mem: 5.7G 5.6G 158M 3.0G 167M 3.7G
-/+ buffers/cache: 1.7G 4.0G
Swap: 5.9G 125M 5.8G
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
请帮我解决这些问题。简而言之:需要快速启动并实际关闭,而不是我手动按下按钮将其关闭。这是我按下关机按钮 5-10 秒后屏幕的样子,我猜是显示驱动程序有问题,如何修复?
(注:我审阅过启动申请,没有一个看起来很重)
答案1
如 dmesg 报告所示,/dev/vmmon 似乎存在问题,它是 VMware 内核驱动程序的一个接口,例如 VMware Workstation 使用的接口。它似乎试图在启动期间设置系统时间,而此类操作可能会导致系统在调整时冻结。
如果您不使用 vmware 模块来解决问题,我建议尝试将其列入黑名单或卸载它们,至少暂时用于故障排除