Puas yog koj lub PC khiav qeeb? Kawm paub yuav ua li cas txheeb xyuas qhov teeb meem nrog Perfmon hauv Windows.

Xeem hloov tshiab: 14/08/2025

  • PerfMon tso cai rau kev ntsuas lub sijhawm tiag tiag thiab kev kaw lub sijhawm ntev nrog cov lej suav tau meej thiab teeb tsa.
  • Collector Sets thiab Logman pab txhawb kev rov qab ntes thiab automation ntawm servers.
  • Qhov chaw pib rau lub cim xeeb, CPU, disk, thiab lub network pab txhawm rau txhawm rau txhawm rau thiab xau.
  • Reliability Monitor ua kom tiav qhov kev tshuaj ntsuam los ntawm kev qhia qhov ua tsis tiav thiab teeb meem kev sib raug zoo.

PerfMon Performance Monitor ntawm Windows

PerfMon (Kev Saib Xyuas Kev Ua Zoo) yog Cov cuab yeej kawg rau kev saib xyuas hauv WindowsPerfMon: Tso cai rau koj saib lub sijhawm tiag tiag, lub sijhawm ntev, thiab tshuaj xyuas kev ntsuas kev ua haujlwm rau CPU, nco, disk, network, thiab cov txheej txheem tshwj xeeb. Tsis zoo li Tus Thawj Saib Xyuas Haujlwm, PerfMon siv cov qauv ntawm ib ntus thiab teev rau disk, ua rau nws zoo tagnrho rau kev yos hav zoov cov teeb meem uas tsuas yog ntog tom qab lub sijhawm khiav, xws li kev nco dhau los lossis cov khoom xau hauv cov kev pabcuam thiab kev siv.

Hauv tsab xov xwm no peb qhia koj Yuav siv PerfMon li cas. Los ntawm kev xaiv thiab nkag siab txog cov txee uas raug thiab kho daim duab piv txwv thiab ntsuas qhov ntsuas, los tsim Cov Ntaub Ntawv Sau Cov Ntaub Ntawv los teev cov ntsuas ntsuas rau ua ntaub ntawv (BLG/CSV.

PerfMon yog dab tsi thiab thaum twg siv nws?

 

Performance Monitor (PerfMon) yog haiv neeg Windows txee saib thiab kaw.. nthuav tawm cov kev ntsuas hauv daim duab thiab cov ntaub ntawv nyoos tau txais los ntawm qhov system thiab daim ntawv thov suav (piv txwv li, los ntawm .NET CLR lossis cov txheej txheem tshwj xeeb). Nws qhov txiaj ntsig loj tshaj plaws ntawm "ceev" cov khoom siv xws li Tus Tswj Xyuas Haujlwm yog tias koj tuaj yeem tso nws khiav mus rau ntau teev lossis hnub, nrog rau cov qauv ua ntu zus, txhawm rau txheeb xyuas qhov tshwm sim tiag tiag (peaks, baselines, sustained growth).

PerfMon yog qhov tseem ceeb rau kuaj pom kev loj hlob, kov lossis xov xau, thiab cais cov teeb meem cuam tshuam los ntawm kev khiav cov kev ntsuam xyuas tshwj xeeb. Piv txwv li, yog tias koj xav tias lub cim xeeb xau, koj yuav tso cai rau cov suav xws li Private Bytes, Kov suav, thiab Xov Tooj rau cov txheej txheem cuam tshuam, nrog rau .NET CLR Memory suav xws li # Bytes hauv tag nrho Heaps thiab Gen 2 heap loj rau .NET daim ntaub ntawv, saib seb qhov kev loj hlob tshwm sim thaum lossis sab nraum GC.

Qhib PerfMon thiab hom /res /report /rel /sys

Txoj hauv kev qhib PerfMon thiab hom tshwj xeeb

 

Koj tuaj yeem qhib PerfMon los ntawm Start menu, nrhiav "kev ua tau zoo" lossis "perfmon" thiab khiav ua tus thawj coj thaum koj mus tsim cav los yog nug tej thaj chaw deb computers.

Yog tias koj nyiam qhov Kab hais kom ua (Win + R lossis CMD), koj muaj txiaj ntsig ncaj qha hom nrog cov lus hauv qab no:

perfmon </res|report|rel|sys>

Txhua qhov kev xaiv ua li cas?

  • / nyuj qhib qhov chaw saib
  • / qhia mus tso lub system diagnostic collector suite thiab saib daim ntawv qhia.
  • /rel qhib Reliability Monitor.
  • / sys mus ncaj qha mus rau classic kev ua tau zoo saib.

Tswv yim: Yog tias koj xav tshawb xyuas qhov kev ntseeg ntawm cov khoom siv, perfmon / rel Nws yog ib tug ncaj shortcut rau stability thiab kab mob keeb kwm.

Kev Ntsuas Kev Ntsuas Nws tseem nyob hauv Control Vaj Huam Sib Luag> Qhov System thiab Kev Ruaj Ntseg> Kev Ruaj Ntseg thiab Kev Saib Xyuas. Lwm txoj kev luv luv: ntaus "reliab" rau hauv Start menu search thiab xaiv "Saib keeb kwm kev ntseeg tau." Koj yuav pom cov xwm txheej tseem ceeb, ceeb toom, thiab cov ntaub ntawv los ntawm hnub lossis lub lim tiam, nrog rau kev nkag mus kev qhia ntxiv ntawm daim ntawv thov thiab tsav tsheb tsis ua haujlwm.

Cov ntsiab lus tshwj xeeb - Nyem qhov no  Yuav hloov lub koob yees duab tsheb kauj vab li cas

Real-time visualization: ntxiv thiab nkag siab cov txee

 

Mus saib a nyob daim ntawv qhia, qhib "Performance Monitor" hauv tsob ntoo sab laug. Yog tias muaj cov txee preloaded thiab koj xav pib huv, xaiv lawv hauv cov lus hauv qab no thiab nias Supr. Tom qab ntawd, nyob rau hauv daim ntawv qhia cheeb tsam, right-click> Add Counters… qhib lub dialog nrog rau tag nrho cov muaj pawg.

Xaiv qeb ntawm kev txaus siab, lub txee, thiab cov khoom piv txwv (piv txwv li, koj cov txheej txheem). Txhawm rau kuaj xyuas lub cim xeeb thiab cov peev txheej hauv ib qho app tshwj xeeb, ntxiv cov ntawv tseem ceeb no los ntawm pab pawg txheej txheem y .NET CLR Nco qhov tsim nyog:

  • Txheej txheem \ Private Bytes: Lub cim xeeb ntiag tug faib los ntawm cov txheej txheem (tsis qhia rau lwm tus). Kev loj hlob ruaj khov qhia tau hais tias kev siv tiag tiag ntawm nws tus kheej lub cim xeeb virtual.
  • Txheej txheem \ Kov suav: tus naj npawb ntawm qhib tes. Kev nce tas mus li feem ntau qhia txog cov khoom xau (sessions, system objects).
  • Txheej txheem \ Xov tooj: Tus naj npawb ntawm cov xov txuas hauv cov txheej txheem. Cov kab mob uas tsis tau npaj tseg yuav qhia txog cov teeb meem sib txuam lossis cov xov tsis tiav.
  • .NET CLR Memory \ # Bytes hauv tag nrho Heaps: Tag nrho lub cim xeeb rau .NET cov khoom. Yog tias nws loj hlob yam tsis muaj kev ruaj khov, tshawb xyuas GC siab thiab cov ntaub ntawv tsis tau tso tawm.
  • .NET CLR Memory \ Gen 2 heap loj: Gen 2 heap loj (cov khoom nyob ntev). Kev loj hlob txuas ntxiv qhia tias cov khoom tsis tau khaws cia ntev.

Txhais cov duab nrog lub qhov muag tseem ceebYog tias koj pom tias Private Bytes nce tsis tu ncua thaum # Bytes hauv tag nrho Heaps thiab Gen 2 heap loj nyob ruaj khov, qhov kev loj hlob tsis nyob hauv .NET heap tab sis nyob rau hauv cov txheej txheem lub cim xeeb / khaws cia. Cov qauv no feem ntau qhia txog kev xau sab nraud ntawm GC (piv txwv li, tsis khov tsis khov lossis tuav tes).

Scale and interval settings in PerfMon

Kho cov duab: nplai, ntu ntu thiab ntev

PerfMon tso cai kho qhov pom ntawm txhua lub txee thiab lub sijhawm keeb kwm koj pomCov. Xov Xwm Ctrl + Ua haujlwm + A Txhawm rau xaiv tag nrho cov txee hauv cov npe hauv qab no, right-click thiab xaiv Scale xaiv cov txee, yog li lawv txhua tus yuav pom yam tsis muaj ib qho "flattening" tus so.

Qhib Daim duab Properties Right-click> Properties… thiab teeb tsa tus nqi piv txwv ntawm General tab. Piv txwv li, ua piv txwv txhua 10 vib nas this thiab teem sijhawm rau 10000 kom npog kwv yees li 2,5 teev hauv qhov pom. Qhov ntev ntawm qhov tshwm sim, qhov ntau qhov sib txawv ntawm qhov piv txwv yuav tsum tsis txhob muaj cov ntaub ntawv loj thiab overloading koj lub computer.

Cov lus qhia ntxiv: PerfMon nthuav tawm ActiveX cov khoom thiab cov hau kev, tso cai rau koj los ua ke lossis tswj nws los ntawm lwm cov cuab yeej txhim kho thiab txawm tias nws yog kev tswj hwm hauv koj tus kheej daim ntawv thov yog xav tau.

Automate nrog Logman: Tsim, Pib, thiab Nres

 

Logman.exe yog cov khoom siv kab hais kom ua rau tsim thiab tswj cov txee.. Qhib cov lus txib tam sim nrog cov cai tswj hwm thiab khiav cov lus txib zoo ib yam li cov hauv qab no los tsim cov kev soj ntsuam loj txuas ntxiv nrog cov ntaub ntawv ncig:

Cov ntsiab lus tshwj xeeb - Nyem qhov no  Microsoft qhib Windows Subsystem rau Linux: Txhim kho qhov qhib thiab tsim tawm

Logman.exe create counter Avamar -o "c:\\perflogs\\Emc-avamar.blg" -f bincirc -v mmddhhmm -max 250 -c "\\LogicalDisk(*)\\*" "\\Memory\\*" "\\Network Interface(*)\\*" "\\Paging File(*)\\*" "\\PhysicalDisk(*)\\*" "\\Processor(*)\\*" "\\Process(*)\\*" "\\Redirector\\*" "\\Server\\*" "\\System\\*" -si 00:00:05

Rau pib thiab nres capture, siv:

Logman.exe start Avamar
Logman.exe stop Avamar

Cov lus qhia hais kom ua: -f bincirc tsim ib lub voj voog binary log (-max txwv qhov loj me hauv MB), -si txhais lub sijhawm piv txwv, thiab -c ntxiv cov txee rau hauv ntau rau cov khoom thiab lawv qhov xwm txheej. Siv cov lus hais thiab khiav tawm backslashes thaum scripting lossis exporting configuration.

Thaum twg siv Logman? Nws yog qhov zoo tagnrho rau sau cov ntaub ntawv nyob deb Ntawm servers, automate diagnostics, los yog standardize captures thoob plaws ntau lub tshuab. Koj tuaj yeem teem sijhawm nrog Task Scheduler thiab tig cov ntaub ntawv yam tsis muaj kev cuam tshuam.

Kev ua haujlwm counter thresholds

Muaj txiaj ntsig suav thiab qhov pib ntawm ib lub subsystem

Nco: Saib xyuas lub peev xwm tiag tiag, paging siab, thiab qhov system pas dej depletion. Cov txee thiab cov lus qhia no pab cais cov tsos mob ntawm qhov ua rau:

  • Nco \ % Kev Siv Bytes siv: Feem pua ntawm kev cog lus nco tshaj qhov kev cog lus txwv. Yog tias nws tsis tu ncua ntau dua 80%, tshuaj xyuas cov nplooj ntawv loj thiab kev siv tiag tiag.
  • Memory \ Muaj MBytes: Dawb lub cev nco. Tshawb xyuas yog tias <5% ntawm RAM poob ntau zaus (thiab <1% yog qhov tseem ceeb).
  • Nco \ Ua Bytes: Tag nrho cov lus cog tseg bytes. Yuav tsum tsis txhob sib txawv sharply; Kev hloov tsis tu ncua tuaj yeem ua rau nplooj ntawv nthuav dav.
  • Nco \ Pas tsis yog Bytes: non-paged pas dej (cov khoom uas tsis tuaj yeem ntws mus rau disk). Persistent saturation (> 80%) Lawv muaj feem cuam tshuam nrog cov xwm txheej xws li 2019 (tsis yog lub pas dej ua kom qaug zog).
  • Nco \ Pool Paged Bytes:: laug. Cov txiaj ntsig tau txais txiaj ntsig> 70% ntawm qhov siab tshaj plaws qhia tias muaj kev pheej hmoo ntawm 2020 qhov xwm txheej (piv txwv li lub pas dej ua kom qaug).

Processor: Saib rau cov loads ruaj khov thiab hnyav I/O cov teeb liab lossis cov tsav tsheb nrov.

  • Processor Information \ % Processor Time (tag nrho cov piv txwv):> 90% txhawb nqa ntawm 1 CPU lossis> 80% ntawm cov khoom siv sib txuas qhia pom CPU dhau.
  • Processor \ % Lub Sijhawm Muaj Cai: Kernel hom sijhawm. Tsis tu ncua ntau tshaj 30% ntawm app / web servers yuav qhia tau tias muaj ntau tus neeg tsav tsheb lossis cov haujlwm ua haujlwm.
  • Processor \ % Interrupt Time y % DPC Sijhawm: > 25% taw tes rau kev ua haujlwm hnyav (NIC, disk, thiab lwm yam).
  • System \ Cov ntsiab lus Hloov / sec y Processor \ cuam tshuam/sec: pab tau rau saib cov ntsiab lus hloov siab thiab cuam tshuam kev ua haujlwm.

Liab: taw qhia rau NIC kev noj qab haus huv thiab kev sib txuas lus zoo.

  • Network Interface\Packets Tau txais pov tseg: yuav tsum nyob ze rau xoom; nce nqi feem ntau qhia tsis txaus buffers/hardware.
  • Network Interface\Packets Tau txais yuam kev: : yuam kev > 2 sustained yuav tsum tau tshuaj xyuas cov txuas / cables / tsav tsheb.

disco: ntsuas saturation, latency thiab muaj peev xwm.

  • PhysicalDisk \ % Idle Time: feem pua ntawm lub sijhawm tsis ua haujlwm. Qhov qis qis qhia tias tsis khoom disk; nws qhia txog qhov muaj peev xwm seem zoo.
  • PhysicalDisk \ Avg. Disk sec / Nyeem y Avg. Disk sec/Sau: Nruab nrab latency. Cov lus qhia zoo (cov lus qhia): nyeem tau zoo <8 ms, txais tau <12 ms, ncaj ncees <20 ms, pluag> 20 ms; Zoo heev sau <1 ms, zoo <2 ms, ncaj <4 ms, pluag> 4 ms.
  • PhysicalDisk \ Avg. Disk Queue Length: nruab nrab tails. Cov nqi qis dua 2 × feem ntau yog tsim nyog.
  • PhysicalDisk \ Split IO/Sec: I/Os phua vim fragmentation los yog tsis txaus thaiv qhov ntau thiab tsawg. Qhov qis dua qhov zoo.
  • LogicalDisk \ % Chaw Dawb: Ib txwm tawm> 15% pub dawb (pom zoo ≥ 25%) ntawm lub kaw lus qhov kev xav tau.
Cov ntsiab lus tshwj xeeb - Nyem qhov no  Yuav ua li cas kho Nintendo Hloov Lite USB-C txuas teeb meem

Disk khoom: lub cev vs.

  • PhysicalDisk ntxiv kev nkag mus rau tag nrho cov partitions ntawm lub cev ntaus ntawv (txhais tau lub hardware).
  • LogicalDisk Ntsuas ib qho kev faib tshwj xeeb lossis mount point. Nrog rau cov dynamic disks, ib lub logic ntim tuaj yeem hla ntau lub cev disks, thiab nws cov txee yuav cuam tshuam tag nrho.

Txheej Txheem: txhawm rau txheeb cov peev txheej nrog tus cwj pwm ntawm ib qho app tshwj xeeb, saib xyuas Txheej txheem \ % Processor Sijhawm, Tus kheej Bytes, Virtual Bytes y Teeb ua haujlwm. Kov Taw Nws yog qhov tseem ceeb yog tias koj xav tias lub pas dej xau; kev loj hlob ntawm saib xyuas feem ntau yuav nrog txawv txav nyob rau hauv Pas dej tsis muaj npe/Paged.

Kev Saib Xyuas Kev Ntseeg: Tshawb nrhiav kev ua tsis tiav thiab kev sib raug zoo

Windows Reliability Monitor qhia txog kev ruaj ntseg thiab cov xwm txheej los ntawm hnub lossis lub lim tiam, faib tseem ceeb, ceeb toom thiab cov ntaub ntawvLos ntawm txhua kab, koj tuaj yeem qhib "Saib Cov Lus Qhia Txog Kev Tshawb Fawb" txhawm rau tshuaj xyuas cov qauv, cov lej, thiab kos npe digital ntawm binaries koom nrog.

  • Cov piv txwv xyaumKoj yuav pom cov ntawv sau xws li svchost.exe_MapsBroker lossis lwm yam kev siv sib tsoo. Qee lub sij hawm cov ntaub ntawv qhia (piv txwv li, Kernelbase.dll) belongs rau Windows kernel thiab tau kos npe los ntawm Microsoft, qhia tias lub hauv paus ua rau tsis yog lub kernel, tab sis theej daim ntawv thov lossis plugin khiav hauv koj qhov chaw siv.
  • Yuav ua li cas thaum lub qub app ua tsis tiavKhiav qhov kev daws teeb meem kev sib raug zoo thiab sim yuam kev sib raug zoo hom (xws li Windows 7) thiab tsis ua haujlwm siab DPI scaling yog tias koj ntsib teeb meem cuam tshuam lossis kev ua haujlwm. Qhov teeb tsa no tau pom los daws teeb meem hauv software qub.
  • Txuas kev tshawb pom kev ruaj ntseg nrog PerfMonUa ke cov keeb kwm kev sib tsoo nrog cov cav ntoo kom pom tias Private Bytes, Kov suav, lossis disk latency tau siab ua ntej kev sib tsoo. Qhov kev sib raug zoo no muab koj ib txoj xov los rub.
  • Tswv yim kaw: Nrog PerfMon thiab Reliability Monitor koj tuaj yeem kuaj xyuas los ntawm cov tsos mob (kev sib tsoo, qeeb) mus rau qhov ua rau (nco txog, disk bottleneck, 100% CPU, network yuam kev), txhawb nqa los ntawm cov txee thiab cov chaw pib uas qhia meej meej rau koj.

Yog tias koj xav tau phau ntawv qhia ceev kom pib: Qhib PerfMon, ntxiv cov txee rau cov txheej txheem phiaj xwm (Private Bytes, % Processor Sijhawm, thiab lwm yam), kho cov qauv thiab lub sijhawm kom npog lub qhov rais uas qhov teeb meem tshwm sim, nkag mus rau cov ntaub ntawv nrog Cov Txheej Txheem Sau, thiab yog tias tsim nyog, automate nrog Logman ntawm cov servers lossis kuaj ib puag ncig uas yuav tsum tau khiav rau teev.