PageSourceSearch

https://xu42.com/posts/%E7%AC%94%E8%AE%B0%E6%9C%AC%E4%B8%BB%E6%9D%BF%E5%81%9Anas/

html xu42.com collected 2026-09-24 19:26:20 UTC 17,679 bytes, 476 lines download raw bytes

1<html lang="en-US">
2  <head>
3    
4<title>PVE折腾记录 - 滴星</title>
5
6<meta property="og:title" content="PVE折腾记录 - 滴星">
7
8
9
10    
11
12
13
14    
15    <meta property="description" content="因为笔记本主板的设备很多,内核会不断探测,导致负载过高。
16[&hellip;] #编辑 /etc/default/grub 文件替换为 GRUB_CMDLINE_LINUX_DEFAULT=&#34;quiet module_blacklist=sdhci_pci,sdhci,ac,rtsx_usb_sdmmc,rtsx_usb video=eDP-1:d &amp;hellip;">
17    <meta property="og:description" content="因为笔记本主板的设备很多,内核会不断探测,导致负载过高。
18[&hellip;] #编辑 /etc/default/grub 文件替换为 GRUB_CMDLINE_LINUX_DEFAULT=&#34;quiet module_blacklist=sdhci_pci,sdhci,ac,rtsx_usb_sdmmc,rtsx_usb video=eDP-1:d &amp;hellip;">
19    
20
21
22
23
24
25
26<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
27<meta name="viewport" content="width=device-width,initial-scale=1">
28
29<link rel="shortcut icon" href="/images/avatar.png" type="image/x-icon" />
30
31
32
33<link rel="stylesheet" href="/css/style.min.css" />
34
35<link rel="stylesheet" href="/css/reset.min.css" />
36
37
38
39
40<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script>
40
41
42<script>
43hljs.configure({ ignoreUnescapedHTML: true })
44hljs.highlightAll();
45</script>
45
46
47
48<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
48
49
50
51
52
53<link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/an-old-hope.min.css" rel="stylesheet" />
54
55
56
57    <style>
58      .post-content img {
59        max-width: 600px;
60      }
61      @media screen and (max-width: 768px) {
62        .post-content img {
63          max-width: 100%;
64        }
65      }
66    </style>
67  </head>
68
69  <body id="period" class="home blog">
70    <a class="skip-content" href="#main">Press "Enter" to skip to content</a>
71    <div id="overflow-container" class="overflow-container">
72      <header class="site-header" id="site-header" role="banner">
73    <div class="max-width">
74        <div id="title-container" class="title-container">
75            <div id="site-title" class="site-title"><a href="/">滴星</a></div>
76            <p class="tagline">独立开发者</p>
77        </div>
78        
79        <div id="menu-primary-container" class="menu-primary-container">
80            <div class="icon-container">
81            </div>
82            <div id="menu-primary" class="menu-container menu-primary" role="navigation">
83                <nav class="menu">
84                    <ul id="menu-primary-items" class="menu-primary-items">
85                        
86                        
87                        <li id="menu-item-0"
88                            class="menu-item menu-item-type-custom menu-item-object-custom ">
89                            <a href="/" aria-current="page" tabindex="0">首页</a></li>
90                        
91                        <li id="menu-item-1"
92                            class="menu-item menu-item-type-custom menu-item-object-custom ">
93                            <a href="/archives" aria-current="page" tabindex="1">文章</a></li>
94                        
95                        <li id="menu-item-2"
96                            class="menu-item menu-item-type-custom menu-item-object-custom ">
97                            <a href="/about" aria-current="page" tabindex="2">关于</a></li>
98                        
99                    </ul>
100                </nav>
101            </div>
102        </div>
103    </div>
104</header>
105      <div id="primary-container" class="primary-container">
106        <div class="max-width">
107          <section id="main" class="main" role="main">
108            <div id="loop-container" class="loop-container">
109              <div
110                class="post type-post status-publish format-standard hentry entry"
111              >
112                <article>
113                  <div class="post-container">
114                    <div class="post-header">
115                      <h2 class="post-title">
116                        <a href="/posts/%E7%AC%94%E8%AE%B0%E6%9C%AC%E4%B8%BB%E6%9D%BF%E5%81%9Anas/">PVE折腾记录</a>
117                      </h2>
118                      
119                      <div class="post-byline">
120                        Published on
121                        <a class="date" href="javascript:;"
122                          >2026/03/03</a
123                        >
124                             
125                    </div>
126                    <div class="post-content">
127                      <h1 id="load负载虚高">load负载虚高</h1>
128<p>因为笔记本主板的设备很多,内核会不断探测,导致负载过高。</p>
129<h2 id="解决">解决</h2>
130<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>
131</span></span><span style="display:flex;"><span><span style="color:#57606a">#编辑 /etc/default/grub 文件替换为</span>
132</span></span><span style="display:flex;"><span><span style="color:#953800">GRUB_CMDLINE_LINUX_DEFAULT</span><span style="color:#0550ae">=</span><span style="color:#0a3069">&#34;quiet module_blacklist=sdhci_pci,sdhci,ac,rtsx_usb_sdmmc,rtsx_usb video=eDP-1:d acpi_enforce_resources=lax&#34;</span>
133</span></span><span style="display:flex;"><span>
134</span></span><span style="display:flex;"><span><span style="color:#57606a">#然后执行</span>
135</span></span><span style="display:flex;"><span>update-grub <span style="color:#0550ae">&amp;&amp;</span> reboot
136</span></span></code></pre></div><p>以下是AI对此的解释:</p>
137<h3 id="1-存储与读卡器驱动屏蔽解决-load-高的关键">1. 存储与读卡器驱动屏蔽(解决 Load 高的关键)</h3>
138<p>这部分解决了你之前在 <code>ps</code> 和 <code>stack</code> 中看到的 <code>kworker</code> 进程陷入 <strong>D 状态(不可中断睡眠)</strong> 的问题。</p>
139<ul>
140<li>
141<p><strong><code>module_blacklist=sdhci_pci,sdhci</code></strong>:</p>
142<ul>
143<li>
144<p><strong>作用</strong>:禁止内核加载 PCIe 总线的 SD/eMMC 控制器驱动。</p>
145</li>
146<li>
147<p><strong>原因</strong>
147:你的主板 eMMC 芯片物理缺失,内核不断尝试初始化它会导致 <code>Failed to initialize</code> 报错并阻塞进程。</p>
148</li>
149</ul>
150</li>
151<li>
152<p><strong><code>rtsx_usb_sdmmc,rtsx_usb</code></strong>:</p>
153<ul>
154<li>
155<p><strong>作用</strong>:禁用 Realtek USB 接口的内置读卡器驱动。</p>
156</li>
157<li>
158<p><strong>原因</strong>:堆栈显示 <code>rtsx_usb_sdmmc</code> 正在不断进行 <code>mmc_rescan</code>(重新扫描),试图寻找不存在的 SD 卡,这是导致你最后 1.5 负载的真凶。</p>
159</li>
160</ul>
161</li>
162</ul>
163<hr>
164<h3 id="2-电源与显示输出优化">2. 电源与显示输出优化</h3>
165<p>针对你裸板运行、无电池、无屏幕的物理现状进行清理。</p>
166<ul>
167<li>
168<p><strong><code>module_blacklist=...,ac</code></strong>:</p>
169<ul>
170<li>
171<p><strong>作用</strong>:屏蔽 AC 适配器探测驱动。</p>
172</li>
173<li>
174<p><strong>原因</strong>:由于你采用短接开机且处于裸板模式,内核探测 AC 电源状态时会发生 <code>error -17</code>(资源忙)冲突。</p>
175</li>
176</ul>
177</li>
178<li>
179<p><strong><code>video=eDP-1:d</code></strong>:</p>
180<ul>
181<li>
182<p><strong>作用</strong>:强制禁用 eDP(笔记本内置显示屏)接口。</p>
183</li>
184<li>
185<p><strong>原因</strong>:显卡驱动 <code>i915</code> 会持续探测已拆掉的屏幕,产生 <code>failed to retrieve link info</code> 的日志冗余。</p>
186</li>
187</ul>
188</li>
189</ul>
190<hr>
191<h3 id="3-内核强制放行参数">3. 内核强制放行参数</h3>
192<ul>
193<li>
194<p><strong><code>acpi_enforce_resources=lax</code></strong>:</p>
195<ul>
196<li>
197<p><strong>作用</strong>:将 ACPI 资源冲突检查设为“松散”模式。</p>
198</li>
199<li>
200<p><strong>原因</strong>:允许内核驱动与主板固件(BIOS)在发生 I/O 端口冲突时共享资源,防止内核因“争抢”不到资源而让相关线程死等,从而降低负载。</p>
201</li>
202</ul>
203</li>
204</ul>
205<hr>
206<h3 id="4-变更结果总结表">4. 变更结果总结表</h3>
207<table>
208  <thead>
209      <tr>
210          <th>参数类别</th>
211          <th>具体参数</th>
212          <th>解决的问题</th>
213          <th>对现有硬件的影响</th>
214      </tr>
215  </thead>
216  <tbody>
217      <tr>
218          <td><strong>存储屏蔽</strong></td>
219          <td><code>sdhci_pci, sdhci</code></td>
220          <td>eMMC 初始化失败导致的负载</td>
221          <td>不影响 M.2 SATA SSD</td>
222      </tr>
223      <tr>
224          <td><strong>读卡器屏蔽</strong></td>
225          <td><code>rtsx_usb_sdmmc, rtsx_usb</code></td>
226          <td>内部 USB 读卡器死循环扫描</td>
227          <td>不影响外部 USB 口和网卡</td>
228      </tr>
229      <tr>
230          <td><strong>电源优化</strong></td>
231          <td><code>ac</code>, <code>acpi_enforce_resources=lax</code></td>
232          <td>电源适配器探测报错</td>
233          <td>解决 ACPI 冲突导致的 D 状态进程</td>
234      </tr>
235      <tr>
236          <td><strong>显示优化</strong></td>
237          <td><code>video=eDP-1:d</code></td>
238          <td>缺失屏幕导致的驱动反复探测</td>
239          <td>减少内核日志报错</td>
240      </tr>
241  </tbody>
242</table>
243   
244                      <div class="rp4wp-related-posts">
245                        <h3>相关文章</h3>
246                        <ul>
247                          
248                          <li>
249                            <div class="rp4wp-related-post-content">
250                              <a href="https://blog.xu42.com/posts/pve/">PVE折腾记录</a>
251                            </div>
252                          </li>
253                          
254                        </ul>
255                      </div>
256                       
257                    </div>
258
259                    
260                    
261                     
262                    <div class="post-meta">
263                      
264                      <div class="post-categories">
265                        <span>Categories&nbsp;&nbsp;</span>
266                        
267                        <a
268                          href="/categories/%e5%b0%b1%e7%88%b1%e6%8a%98%e8%85%be"
269                          title="View all posts in PHP8"
270                          >就爱折腾</a
271                        >&nbsp;&nbsp; 
272                      </div>
273                       
274                      <div class="post-tags">
275                        <ul>
276                          
277                          <li>
278                            <a
279                              href="/tags/pve"
280                              title="View all posts tagged match"
281                              >pve</a
282                            >
283                          </li>
284                          
285                        </ul>
286                      </div>
287                      
288
289                      <nav class="further-reading">
290                        
291                        <div class="previous">
292                          <span>&lt;&lt; Prev</span>
293                          <a href="https://blog.xu42.com/posts/pve/" rel="prev"
294                            >PVE折腾记录</a
295                          >
296                        </div>
297                         
298                      </nav>
299                    </div>
300
301                      
302                    <div
303                      style="
304                        width: 100%;
305                        height: 1px;
306                        border: 1px solid #f8f8f8;
307                        margin: 50px 0 30px;
308                      "
309                    ></div>
310                    
310<script
311                      src="https://utteranc.es/client.js"
312                      repo="xu42/xu42.github.io"
313                      issue-term="title"
314                      theme="github-light"
315                      crossorigin="anonymous"
316                      async
317                    ></script>
317
318                     
319                  </div>
320                </article>
321              </div>
322            </div>
323          </section>
324          <aside class="sidebar sidebar-primary" id="sidebar-primary" role="complementary">
325    <h1 class="screen-reader-text">Sidebar</h1>
326    
327
328    
329    
330    <section id="text-2" class="widget widget_text">
331        <div class="textwidget">
332            
333            <div id="profile">
334                <div id="profile_picture"><img src="/images/avatar.png"></div>
335                <div id="profile_intro">
336                    <p><span class="name"></span></p>
337                    <p class="intro">独立开发者</p>
338                </div>
339            </div>
340            
341            <p>
342                
342<script type="text/javascript">
343                    (function ($) {
344                        $(document).ready(function () {
345                            var menuPrimaryContainer = $('#menu-primary-container');
346                            var profile = $('#text-2');
347                            $('#toggle-navigation').click(function () {
348                                if (menuPrimaryContainer.hasClass('open')) {
349                                    profile.removeClass('open');
350                                } else {
351                                    profile.addClass('open');
352                                }
353                            });
354                        });
355                    })(jQuery);
356                </script>
356
357            </p>
358        </div>
359    </section>
360    
361    
362    
363    
364    
365    <section id="text-5" class="widget widget_text">
366        <h2 class="widget-title">开源项目</h2>
367        <div class="textwidget">
368            <div id="projects" style="line-height: 22px;">
369                
370                <a href="https://github.com/xu42/simple-app-landing-page-template"
371                    target="_blank">simple app landing page template</a>: &nbsp;Free use static website template for your mobile app<br>
372                
373        </div>
374    </section>
375    
376    
377
378    
379    
380    <section id="text-5" class="widget widget_text">
381        <h2 class="widget-title">一些产品</h2>
382        <div class="textwidget">
383            <div id="projects" style="line-height: 22px;">
384                
385                <a href="https://apps.apple.com/us/app/id6749760291"
386                    target="_blank">取了么</a>: &nbsp;快递取件码管理助手<br>
387                
388                <a href="https://www.onlinechartmaker.com"
389                    target="_blank">Online Chart Maker</a>: &nbsp;Create Professional Chart For Free<br>
390                
391                <a href="https://yzk.co/"
392                    target="_blank">椰子壳</a>: &nbsp;短链、引流微信等<br>
393                
394                <a href="https://apps.apple.com/us/app/id1639460076"
395                    target="_blank">短信拦截</a>: &nbsp;iOS垃圾短信拦截软件 无联网权限<br>
396                
397                <a href="https://apps.apple.com/us/app/id6738653169"
398                    target="_blank">简单快捷翻译</a>: &nbsp;macOS选中文字一键翻译 无联网权限<br>
399                
400                <a href="https://apps.apple.com/us/app/id6742777183"
401                    target="_blank">OCR快捷翻译</a>: &nbsp;一键截屏、OCR识别图片内容、自动翻译<br>
402                
403        </div>
404    </section>
405    
406    
407    
408    
409    
410    <section id="qrcode" class="widget widget_media_image">
411        <h2 class="widget-title">微信公众号</h2>
412        <img width="258" height="258"
413            src="/images/mp.jpg"
414            class="image wp-image-5514  attachment-full size-full" alt=""
415            style="max-width: 100%; height: auto;"
416            sizes="(max-width: 258px) 100vw, 258px">
417    </section>
418    
419    
420
421    
422    
423    
424
425    
426    
427    
428
429    
430    
431    <section id="text-6" class="widget widget_text">
432        <h2 class="widget-title">友链</h2>
433        <div class="textwidget">
434            <ul>
435                
436                <li><a href="https://bo.ke/" target="_blank">博客大联盟</a></li>
437                
438            </ul>
439        </div>
440    </section>
441    
442    
443    
444</aside>
445        </div>
446        
447      </div>
448      
449
450      <footer id="site-footer" class="site-footer" role="contentinfo">
451    <div class="max-width">
452    </div>
453    <div class="footer">
454        <div id="footercontent">
455            © 滴星 All rights reserved<br/>
456            Built with Hugo Theme <a href="https://github.com/idoubi/hugo-theme-period" target="_blank">Period</a>
457        </div>
458    </div>
459</footer>
460
461<script>
462    var _hmt = _hmt || [];
463    (function() {
464      var hm = document.createElement("script");
465      hm.src = "https://hm.baidu.com/hm.js?bfb2f11f1a1d47887c75bf9c43d2ad49";
466      var s = document.getElementsByTagName("script")[0]; 
467      s.parentNode.insertBefore(hm, s);
468    })();
469</script>
vendor: 1 bytes, line 469
469
470<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3077498187374641" crossorigin="anonymous"></script>
470
471
472    </div>
473    
474  <!-- Cloudflare Pages Analytics -->
vendor: 99 bytes, line 474
474<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "
474e9a295921e0c4e018e9dbb9cf283e6cb
vendor: 13 bytes, line 474
474"}'></script>
474<!-- Cloudflare Pages Analytics -->
474<script type="module" src="https://static.cloudflareinsights.com/beacon.min.js/v31edd6df95cf4e85bb4c19e7a9bdbcba1788362987495" integrity="sha512-iIg7k2xntmwu6/uSb5tpc/hySgZc4eoL31yB29W6tJFo2akwjPWcEqnCEdJvGexCL0KEQwVYv5BlowfhVz26hg==" data-cf-beacon='{"version":"2024.11.0","token":"634c26bff6e248e4955e92cc73d6574e","r":1,"spa":2}' crossorigin="anonymous"></script>
474
475</body>
476</html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.