Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows XP 預讀機制你注意到了嗎?定期清理 Prefetch 資料夾加速開機

編輯:XP 系統基礎知識

現象

XP 使用一段時間後開機明顯變慢,C:\Windows\Prefetch 內累積上百個 *.pf 檔,清空後重開機速度恢復正常。

原理

預讀 (Prefetcher) 記錄開機/應用程式啟動時的檔案存取模式,下次預先載入加速。但長期累積:

  • 檔案數量過多 → 掃描時間變長。
  • 應用程式更新/移除導致死連結 (*.pf 指向不存在檔案) → 系統嘗試預讀失敗拖慢速度。

預讀模式設定 (登錄)

路徑:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters\EnablePrefetcher

  • 0 = 關閉預讀
  • 1 = 僅預讀應用程式
  • 2 = 僅預讀開機/系統檔案 (建議一般使用者)
  • 3 = 兩者皆預讀 (預設,高規格電腦適用)

自動清理批次檔

  1. 記事本新建 DelPrefetch.bat:
    del %SystemRoot%\Prefetch\*.* /q
    (/q 安靜模式不確認,/f 可強制刪除唯讀檔)
  2. 存檔類型選「所有檔案」。
  3. 放入「啟動」資料夾 (開始→程式集→啟動) 或用排程工作每週執行一次。

建議策略

  • 一般使用者:設 EnablePrefetcher=2 + 定期 (每週/月) 執行清理批次檔。
  • 高規格電腦 (Core 2 Duo 時代後):保持 3 並配合清理。
  • SSD 硬碟:預讀效益有限,建議設 0 或 2 並關閉 Superfetch (Vista/7+),XP 無 Superfetch 服務。
Copyright © Windows教程網 All Rights Reserved