Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

svchost.exe คืออะไร? ทำไมมีหลายตัว? ใช้ CPU/Disk สูง แก้ยังไง?

svchost.exe ใน Windows 11/10 คืออะไร? ทำไมใน Task Manager ถึงเห็นหลาย process svchost.exe? ดูข้อมูลพื้นฐานอย่างชื่อและคำอธิบายแต่ละ process ยังไง? ทำไม svchost.exe จึงรันตลอดเวลา? ทำไม svchost ใช้ Disk หรือ CPU สูง? บทความนี้จะตอบคำถามเหล่านี้

svchost.exe ใน Windows 11/10 คืออะไร

Svchost ย่อมาจาก Service Host เป็นไฟล์ .exe ระบบปฏิบัติการสำคัญ อยู่ในโฟลเดอร์ System32 เมื่อ Windows เริ่มต้น จะตรวจสอบ Registry และสร้างรายการ Services หรือกลุ่ม Services ที่ต้องโหลด

จึงเห็น svchost.exe หลายตัวรันพร้อมกัน การจัดกลุ่มบริการช่วยควบคุมและ debug ได้ดีขึ้น Services ใน svchost ถูก implement เป็น dynamically linked libraries (DLL files)

หลาย instance ของ svchost.exe processes

เห็นกลุ่ม svchost.exe ทั้งหมดใน registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Svchost

svchost.exe คืออะไร? ทำไมมีหลายตัว? ใช้ CPU/Disk สูง แก้ยังไง?

ดูรายการ services ที่รันใน Svchost: เปิด command prompt พิมพ์ Tasklist /SVC Enter

svchost.exe คืออะไร? ทำไมมีหลายตัว? ใช้ CPU/Disk สูง แก้ยังไง?

svchost.exe ใช้ CPU หรือ Disk สูงใน Windows 11/10

บ่อยครั้ง svchost.exe ใช้ทรัพยากรสูง แยก service ที่ก่อให้เกิดปัญหายาก เพราะหลาย services ผูกกับ process นี้ Resource Monitor หรือ SysInternals Process Explorer ช่วยระบุได้

ดูว่า svchost ตัวไหนผูกกับ service ไหน: คลิกขวา svchost.exe เลือก Go to Service(s)

svchost.exe คืออะไร? ทำไมมีหลายตัว? ใช้ CPU/Disk สูง แก้ยังไง?

ในแท็บ Services จะเห็น services ที่เกี่ยวข้อง ไฮไลท์อยู่

svchost.exe คืออะไร? ทำไมมีหลายตัว? ใช้ CPU/Disk สูง แก้ยังไง?

แต่นี้ไม่ให้ข้อมูลมาก หากต้องการรายละเอียดชื่อ/คำอธิบายแต่ละ svchost process ใช้ freeware portable app Svchost Viewer

svchost.exe คืออะไร? ทำไมมีหลายตัว? ใช้ CPU/Disk สูง แก้ยังไง?

เครื่องมือนี้ให้ข้อมูล: Process ID, ข้อมูล read/write, ชื่อ Service, ประเภท, Start mode, Status, หยุด/พัก service ได้ไหม, คำอธิบายสั้นๆ

ยังให้หยุด/พัก services ที่ทำได้ และเปิด Service Manager โดยตรง

เช่น Windows Defender ใน Windows 10 ทำ CPU สูง เปิด Windows Defender Security Center > Firewall & Network protection > Disable Firewall ทุก network แล้ว Restore settings ดูว่าช่วยได้ไหม

อ่านเพิ่ม: Service Host: Diagnostic Policy Service 100% Disk Usage

หากต้องการลด instance ของ svchost ต้องลด services ที่เริ่มต้นอัตโนมัติ หากต้องการปิด services ใช้ Windows Services Tweaker แต่ควรทำก็ต่อเมื่อทราบว่ากำลังทำอะไร

อยากรู้จัก process อื่นๆ?

Shellexperiencehost.exe | RuntimeBroker.exe | TrustedInstaller.exe | Host Process for Windows Tasks | JUCheck.exe

svchost.exe คืออะไร? ทำไมมีหลายตัว? ใช้ CPU/Disk สูง แก้ยังไง?