我的电脑需要很长时间才能启动。我有理由相信这是由 grub 之后的延迟引起的,但在内核日志记录开始之前(启动需要 30 秒,但dmesg
消息在0.00000
-之间有时间戳9.34223
,这篇文章中有详细信息)。
有什么方法可以调试正在发生的事情吗?特别是:
我相信这个问题不是特定于我的设置。但以防万一,我正在运行 Ubuntu 16.10 和 grub(2)
编辑:
按照@TooTea 的建议,我设置了debug=all
环境变量,这些变量产生了很多script/script.c:50 malloc 0x7a9a2ca0
应该不成问题的消息。然后有一个消息块与 8 秒延迟延迟一致:
kern/dl.c:56 Detecting ext2...
lib/relocator.c:1397 chunks = 0x7a7e0ae0
lib/relocator.c:434 trying to allocate in ...-... aligned ... size ...
lib/relocator.c:1198 allocated: ...+...
lib/relocator.c:1409 allocated .../...
lib/relocator.c:1410 chunks = 0x7a7e0ae0
Run Code Online (Sandbox Code Playgroud)