我的系统日志中每天每小时写入 120 万行

我的系统日志中每天每小时写入 120 万行

某物正在占用我的磁盘空间,我对此感到非常恼火。今天早上,我醒来时看到“没有剩余空间”的通知,我意识到这不是我的种子文件,这几周来一直在消耗我的磁盘空间。我du检查了我的文件系统,发现了这一点:

/var/log > du -hs * | sort -h 
...
480M    kern.log.2.gz
492M    syslog.2.gz
719M    kern.log.3.gz
737M    syslog.3.gz
1,2G    kern.log.4.gz
1,2G    syslog.4.gz
4,0G    journal
14G     kern.log
14G     syslog
19G     kern.log.1
19G     syslog.1

我检查了这些文件,对它们的内容感到惊讶:

/var/log > tail -n 10000000 syslog.1 | uniq -cd -w9
 163183 Nov 13 15:52:09 raul-cloud kernel: [421137.114299] pcieport 0000:00:01.3: PME: Spurious native interrupt!
1241786 Nov 13 16:00:00 raul-cloud kernel: [421607.842156] pcieport 0000:00:01.3: PME: Spurious native interrupt!
1226956 Nov 13 17:00:00 raul-cloud kernel: [425207.640228] pcieport 0000:00:01.3: PME: Spurious native interrupt!
1227458 Nov 13 18:00:00 raul-cloud kernel: [428807.427407] pcieport 0000:00:01.3: PME: Spurious native interrupt!
1226084 Nov 13 19:00:00 raul-cloud kernel: [432407.225316] pcieport 0000:00:01.3: PME: Spurious native interrupt!
1244380 Nov 13 20:00:00 raul-cloud kernel: [436007.023373] pcieport 0000:00:01.3: PME: Spurious native interrupt!
1229629 Nov 13 21:00:00 raul-cloud kernel: [439606.810409] pcieport 0000:00:01.3: PME: Spurious native interrupt!
1239934 Nov 13 22:00:00 raul-cloud kernel: [443206.608482] pcieport 0000:00:01.3: PME: Spurious native interrupt!
1153889 Nov 13 23:00:00 raul-cloud kernel: [446806.406534] pcieport 0000:00:01.3: PME: Spurious native interrupt!
  46701 Nov 14 00:00:00 raul-cloud kernel: [450406.193587] pcieport 0000:00:01.3: PME: Spurious native interrupt!

kern.log.1syslog并且kern.log有类似的行)

这是一种什么可怕的怪物,每小时都会醒来,对着 4 个不同的文件大喊 120 万条令人毛骨悚然的台词,我该如何杀死这头野兽?

或者,现在更严重的是,我如何找出记录这些行的内容,如何停止它,以及我可以安全删除哪些日志?

编辑1: 谢谢你回答我。我知道 Linux/Unix 中没有可怕的生物:D 我是操作系统的一个真正的新全职用户,直到现在一切(大部分)都正常工作,所以我有点惊慌

无论如何,这是输出lspci

/ > sudo lspci -vv -s 00:01.3
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge (prog-if 00 [Normal decode])
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin ? routed to IRQ 27
    IOMMU group: 2
    Bus: primary=00, secondary=03, subordinate=1f, sec-latency=0
    I/O behind bridge: 0000f000-0000ffff [size=4K]
    Memory behind bridge: f7500000-f76fffff [size=2M]
    Prefetchable memory behind bridge: [disabled]
    Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
    BridgeCtl: Parity- SERR+ NoISA- VGA- VGA16+ MAbort- >Reset- FastB2B-
        PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
    Capabilities: [50] Power Management version 3
        Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
    Capabilities: [58] Express (v2) Root Port (Slot+), MSI 00
        DevCap: MaxPayload 512 bytes, PhantFunc 0
            ExtTag+ RBE+
        DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
            RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
            MaxPayload 128 bytes, MaxReadReq 512 bytes
        DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
        LnkCap: Port #2, Speed 8GT/s, Width x4, ASPM L1, Exit Latency L1 <64us
            ClockPM- Surprise- LLActRep+ BwNot+ ASPMOptComp+
        LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
            ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
        LnkSta: Speed 8GT/s (ok), Width x4 (ok)
            TrErr- Train- SlotClk+ DLActive+ BWMgmt+ ABWMgmt-
        SltCap: AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug- Surprise-
            Slot #0, PowerLimit 0.000W; Interlock- NoCompl+
        SltCtl: Enable: AttnBtn- PwrFlt- MRL- PresDet- CmdCplt- HPIrq- LinkChg-
            Control: AttnInd Unknown, PwrInd Unknown, Power- Interlock-
        SltSta: Status: AttnBtn- PowerFlt- MRL- CmdCplt- PresDet+ Interlock-
            Changed: MRL- PresDet- LinkState+
        RootCap: CRSVisible+
        RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna+ CRSVisible+
        RootSta: PME ReqID 1800, PMEStatus+ PMEPending+
        DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR-
             10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix+, MaxEETLPPrefixes 1
             EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
             FRS- LN System CLS Not Supported, TPHComp- ExtTPHComp- ARIFwd+
             AtomicOpsCap: Routing- 32bit+ 64bit+ 128bitCAS-
        DevCtl2: Completion Timeout: 65ms to 210ms, TimeoutDis- LTR- OBFF Disabled, ARIFwd-
             AtomicOpsCtl: ReqEn- EgressBlck-
        LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-
        LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
             Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
             Compliance De-emphasis: -6dB
        LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase1+
             EqualizationPhase2+ EqualizationPhase3+ LinkEqualizationRequest-
             Retimer- 2Retimers- CrosslinkRes: unsupported
    Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Address: 00000000fee00000  Data: 0000
    Capabilities: [c0] Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge
    Capabilities: [c8] HyperTransport: MSI Mapping Enable+ Fixed+
    Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
    Capabilities: [150 v2] Advanced Error Reporting
        UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
        UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
        UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
        CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
        CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
        AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
            MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
        HeaderLog: 00000000 00000000 00000000 00000000
        RootCmd: CERptEn+ NFERptEn+ FERptEn+
        RootSta: CERcvd- MultCERcvd- UERcvd- MultUERcvd-
             FirstFatal- NonFatalMsg- FatalMsg- IntMsg 0
        ErrorSrc: ERR_COR: 0000 ERR_FATAL/NONFATAL: 0000
    Capabilities: [270 v1] Secondary PCI Express
        LnkCtl3: LnkEquIntrruptEn- PerformEqu-
        LaneErrStat: LaneErr at lane: 0 1 2 3
    Capabilities: [2a0 v1] Access Control Services
        ACSCap: SrcValid+ TransBlk+ ReqRedir+ CmpltRedir+ UpstreamFwd+ EgressCtrl- DirectTrans+
        ACSCtl: SrcValid+ TransBlk- ReqRedir+ CmpltRedir+ UpstreamFwd+ EgressCtrl- DirectTrans-
    Capabilities: [370 v1] L1 PM Substates
        L1SubCap: PCI-PM_L1.2- PCI-PM_L1.1+ ASPM_L1.2- ASPM_L1.1+ L1_PM_Substates+
        L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
        L1SubCtl2:
    Capabilities: [3c4 v1] Designated Vendor-Specific: Vendor=1022 ID=0001 Rev=1 Len=44 <?>
    Kernel driver in use: pcieport

问题是, 01.1, 01.3, 03.1 are PCIe GPP Bridge, 07.1 和 08.1 are Internal PCIe GPP Bridge 0 to Bus B,但我真的不知道它们有何不同,也不知道为什么其他人没有抛出任何错误。有什么办法可以进一步调试吗?

相关内容