Computer >> Hướng Dẫn Máy Tính >  >> Hệ Thống >> Windows

Cách thay đổi số lượng file Memory Dump mà Windows tạo và lưu

Mỗi khi Windows 11/10 crash, nó tạo Memory Dump File (file dump bộ nhớ). Các file minidump này là ảnh chụp bộ nhớ tại thời điểm máy tính crash.

Loại dump này bao gồm:

  • Thông báo Stop và tham số, dữ liệu khác
  • Danh sách driver đã load
  • Processor context (PRCB) cho processor bị dừng
  • Process info và kernel context (EPROCESS) cho process bị dừng
  • Process info và kernel context (ETHREAD) cho thread bị dừng
  • Kernel-mode call stack cho thread bị dừng

Có các loại dump: Kernel Memory Dump, Small Memory Dump, Complete Memory Dump. Windows 8 thêm tùy chọn Automatic Memory Dump.

Thay đổi số lượng file Memory Dump Windows tạo

Cách thay đổi số lượng file Memory Dump mà Windows tạo và lưu

Bạn có thể thay đổi cài đặt Dump tại: Control Panel → All Control Panel Items → System → Advanced system settings → tab Advanced → Startup & Recovery → Settings.

Mặc định Windows tạo và lưu 50 file minidump. Các file này nằm trong thư mục %SystemRoot%\Minidump.

Cách thay đổi số lượng file Memory Dump mà Windows tạo và lưu

Nếu bạn là kỹ thuật viên cần dùng dump để debug crash, 50 file gần nhất rất hữu ích. Nếu không, chúng chỉ tốn dung lượng ổ cứng.

Bạn có thể giảm số lượng dump file Windows tạo:

  1. Mở regedit → điều hướng khóa:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl
  1. Nhấp đúp MiniDumpsCount → thay đổi Value data.

Mặc định Windows là 32 Hexadecimal (50 Decimal). Giá trị Decimal xuống 10 nếu chỉ muốn lưu 10 file minidump gần nhất.

Hy vọng hữu ích.

Đọc thêm: Cài đặt Windows Memory Dump trên Windows 11/10.