服务器无故关闭,内核错误。请指教

服务器无故关闭,内核错误。请指教

我的服务器在过去 3 天内因电源相关问题而自行关闭。它是一台 KVM 虚拟机。它保持开启状态的时间不超过约 20 分钟,然后关闭。请注意,它不会重新启动,只会关闭。

这是我在我的 中看到的/var/log/messages

Jan 15 06:30:08 us01 kernel: [    0.493252] pci 0000:00:01.2: PCI INT D disabled
Jan 15 06:30:08 us01 kernel: [    0.493726] Trying to unpack rootfs image as initramfs...
Jan 15 06:30:08 us01 kernel: [    0.654652] Freeing initrd memory: 13639k freed
Jan 15 06:30:08 us01 kernel: [    0.657174] audit: initializing netlink socket (disabled)
Jan 15 06:30:08 us01 kernel: [    0.657664] type=2000 audit(1389774593.656:1): initialized
Jan 15 06:30:08 us01 kernel: [    0.664657] HugeTLB registered 2 MB page size, pre-allocated 0 pages
Jan 15 06:30:08 us01 kernel: [    0.666315] VFS: Disk quotas dquot_6.5.2
Jan 15 06:30:08 us01 kernel: [    0.666765] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Jan 15 06:30:08 us01 kernel: [    0.667385] msgmni has been set to 19986
Jan 15 06:30:08 us01 kernel: [    0.668629] alg: No test for stdrng (krng)
Jan 15 06:30:08 us01 kernel: [    0.669102] ksign: Installing public key data
Jan 15 06:30:08 us01 kernel: [    0.669539] Loading keyring
Jan 15 06:30:08 us01 kernel: [    0.669923] - Added public key AE95AE35994EC460
Jan 15 06:30:08 us01 kernel: [    0.670362] - User ID: Red Hat, Inc. (Kernel Module GPG key)
Jan 15 06:30:08 us01 kernel: [    0.670829] - Added public key D4A26C9CCD09BEDA
Jan 15 06:30:08 us01 kernel: [    0.671263] - User ID: Red Hat Enterprise Linux Driver Update Program <[email protected]>
Jan 15 06:30:08 us01 kernel: [    0.672074] - Added public key 86270BD1D73862D7
Jan 15 06:30:08 us01 kernel: [    0.672510] - User ID: Parallels, Inc. (Kernel Module GPG key)
Jan 15 06:30:08 us01 kernel: [    0.673025] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
Jan 15 06:30:08 us01 kernel: [    0.674444] io scheduler noop registered
Jan 15 06:30:08 us01 kernel: [    0.674857] io scheduler anticipatory registered
Jan 15 06:30:08 us01 kernel: [    0.675298] io scheduler deadline registered
Jan 15 06:30:08 us01 kernel: [    0.675780] io scheduler cfq registered (default)
Jan 15 06:30:08 us01 kernel: [    0.676296] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Jan 15 06:30:08 us01 kernel: [    0.676769] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
Jan 15 06:30:08 us01 kernel: [    0.677266] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
Jan 15 06:30:08 us01 kernel: [    0.677798] acpiphp: Slot [1] registered
Jan 15 06:30:08 us01 kernel: [    0.678227] acpiphp: Slot [2] registered
Jan 15 06:30:08 us01 kernel: [    0.678651] acpiphp: Slot [3] registered
Jan 15 06:30:08 us01 kernel: [    0.679072] acpiphp: Slot [4] registered
Jan 15 06:30:08 us01 kernel: [    0.679502] acpiphp: Slot [5] registered
Jan 15 06:30:08 us01 kernel: [    0.679924] acpiphp: Slot [6] registered
Jan 15 06:30:08 us01 kernel: [    0.680353] acpiphp: Slot [7] registered
Jan 15 06:30:08 us01 kernel: [    0.680774] acpiphp: Slot [8] registered
Jan 15 06:30:08 us01 kernel: [    0.681194] acpiphp: Slot [9] registered
Jan 15 06:30:08 us01 kernel: [    0.681625] acpiphp: Slot [10] registered
Jan 15 06:30:08 us01 kernel: [    0.682049] acpiphp: Slot [11] registered
Jan 15 06:30:08 us01 kernel: [    0.682481] acpiphp: Slot [12] registered
Jan 15 06:30:08 us01 kernel: [    0.682905] acpiphp: Slot [13] registered
Jan 15 06:30:08 us01 kernel: [    0.683341] acpiphp: Slot [14] registered
Jan 15 06:30:08 us01 kernel: [    0.683765] acpiphp: Slot [15] registered
Jan 15 06:30:08 us01 kernel: [    0.684189] acpiphp: Slot [16] registered
Jan 15 06:30:08 us01 kernel: [    0.684622] acpiphp: Slot [17] registered
Jan 15 06:30:08 us01 kernel: [    0.685045] acpiphp: Slot [18] registered
Jan 15 06:30:08 us01 kernel: [    0.685479] acpiphp: Slot [19] registered
Jan 15 06:30:08 us01 kernel: [    0.685903] acpiphp: Slot [20] registered
Jan 15 06:30:08 us01 kernel: [    0.686336] acpiphp: Slot [21] registered
Jan 15 06:30:08 us01 kernel: [    0.686759] acpiphp: Slot [22] registered
Jan 15 06:30:08 us01 kernel: [    0.687184] acpiphp: Slot [23] registered
Jan 15 06:30:08 us01 kernel: [    0.687618] acpiphp: Slot [24] registered
Jan 15 06:30:08 us01 kernel: [    0.688042] acpiphp: Slot [25] registered
Jan 15 06:30:08 us01 kernel: [    0.688474] acpiphp: Slot [26] registered
Jan 15 06:30:08 us01 kernel: [    0.688897] acpiphp: Slot [27] registered
Jan 15 06:30:08 us01 kernel: [    0.689330] acpiphp: Slot [28] registered
Jan 15 06:30:08 us01 kernel: [    0.689754] acpiphp: Slot [29] registered
Jan 15 06:30:08 us01 kernel: [    0.690177] acpiphp: Slot [30] registered
Jan 15 06:30:08 us01 kernel: [    0.690611] acpiphp: Slot [31] registered
Jan 15 06:30:08 us01 kernel: [    0.691550] ipmi message handler version 39.2
Jan 15 06:30:08 us01 kernel: [    0.691983] IPMI System Interface driver.
Jan 15 06:30:08 us01 kernel: [    0.692421] ipmi_si: Adding default-specified kcs state machine
Jan 15 06:30:08 us01 kernel: [    0.692928] ipmi_si: Trying default-specified kcs state machine at i/o address 0xca2, slave address 0x0, irq 0
Jan 15 06:30:08 us01 kernel: [    0.693800] ipmi_si: Interface detection failed
Jan 15 06:30:08 us01 kernel: [    0.699259] ipmi_si: Adding default-specified smic state machine
Jan 15 06:30:08 us01 kernel: [    0.699772] ipmi_si: Trying default-specified smic state machine at i/o address 0xca9, slave address 0x0, irq 0
Jan 15 06:30:08 us01 kernel: [    0.700641] ipmi_si: Interface detection failed
Jan 15 06:30:08 us01 kernel: [    0.711250] ipmi_si: Adding default-specified bt state machine
Jan 15 06:30:08 us01 kernel: [    0.779566] ipmi_si: Trying default-specified bt state machine at i/o address 0xe4, slave address 0x0, irq 0
Jan 15 06:30:08 us01 kernel: [    0.780433] ipmi_si: Interface detection failed
Jan 15 06:30:08 us01 kernel: [    0.784271] ipmi_si: Unable to find any System Interface(s)
Jan 15 06:30:08 us01 kernel: [    0.784792] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
Jan 15 06:30:08 us01 kernel: [    0.785584] ACPI: Power Button [PWRF]
Jan 15 06:30:08 us01 kernel: [    0.787946] ERST: Table is not found!
Jan 15 06:30:08 us01 kernel: [    0.788362] GHES: HEST is not enabled!
Jan 15 06:30:08 us01 kernel: [    0.790335] Non-volatile memory driver v1.3
Jan 15 06:30:08 us01 kernel: [    0.790759] Linux agpgart interface v0.103
Jan 15 06:30:08 us01 kernel: [    0.791257] crash memory driver: version 1.1
Jan 15 06:30:08 us01 kernel: [    0.791684] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
Jan 15 06:30:08 us01 kernel: [    0.792911] brd: module loaded
Jan 15 06:30:08 us01 kernel: [    0.793596] loop: module loaded
Jan 15 06:30:08 us01 kernel: [    0.794005] input: Macintosh mouse button emulation as /devices/virtual/input/input1
Jan 15 06:30:08 us01 kernel: [    0.794832] Fixed MDIO Bus: probed
Jan 15 06:30:08 us01 kernel: [    0.795256] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jan 15 06:30:08 us01 kernel: [    0.795763] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Jan 15 06:30:08 us01 kernel: [    0.796252] uhci_hcd: USB Universal Host Controller Interface driver
Jan 15 06:30:08 us01 kernel: [    0.796788] uhci_hcd 0000:00:01.2: PCI INT D -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11
Jan 15 06:30:08 us01 kernel: [    0.797622] uhci_hcd 0000:00:01.2: UHCI Host Controller
Jan 15 06:30:08 us01 kernel: [    0.798098] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
Jan 15 06:30:08 us01 kernel: [    0.798956] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c020
Jan 15 06:30:08 us01 kernel: [    0.799463] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
Jan 15 06:30:08 us01 kernel: [    0.799981] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Jan 15 06:30:08 us01 kernel: [    0.800770] usb usb1: Product: UHCI Host Controller
Jan 15 06:30:08 us01 kernel: [    0.801209] usb usb1: Manufacturer: Linux 2.6.32-458.23.2.lve1.2.48.el6.x86_64 uhci_hcd
Jan 15 06:30:08 us01 kernel: [    0.802030] usb usb1: SerialNumber: 0000:00:01.2
Jan 15 06:30:08 us01 kernel: [    0.802525] usb usb1: configuration #1 chosen from 1 choice
Jan 15 06:30:08 us01 kernel: [    0.803005] hub 1-0:1.0: USB hub found
Jan 15 06:30:08 us01 kernel: [    0.803424] hub 1-0:1.0: 2 ports detected
Jan 15 06:30:08 us01 kernel: [    0.803911] PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
Jan 15 06:30:08 us01 kernel: [    0.805200] serio: i8042 KBD port at 0x60,0x64 irq 1
Jan 15 06:30:08 us01 kernel: [    0.805674] serio: i8042 AUX port at 0x60,0x64 irq 12
Jan 15 06:30:08 us01 kernel: [    0.806214] mice: PS/2 mouse device common for all mice
Jan 15 06:30:08 us01 kernel: [    0.806811] rtc_cmos 00:01: RTC can wake from S4
Jan 15 06:30:08 us01 kernel: [    0.807359] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
Jan 15 06:30:08 us01 kernel: [    0.807453] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
Jan 15 06:30:08 us01 kernel: [    0.808850] rtc0: alarms up to one day, 114 bytes nvram
Jan 15 06:30:08 us01 kernel: [    0.809383] cpuidle: using governor ladder
Jan 15 06:30:08 us01 kernel: [    0.809913] cpuidle: using governor menu
Jan 15 06:30:08 us01 kernel: [    0.810422] EFI Variables Facility v0.08 2004-May-17
Jan 15 06:30:08 us01 kernel: [    0.811320] usbcore: registered new interface driver hiddev
Jan 15 06:30:08 us01 kernel: [    0.811849] usbcore: registered new interface driver usbhid
Jan 15 06:30:08 us01 kernel: [    0.812396] usbhid: v2.6:USB HID core driver
Jan 15 06:30:08 us01 kernel: [    0.812981] TCP cubic registered
Jan 15 06:30:08 us01 kernel: [    0.813484] Initializing XFRM netlink socket
Jan 15 06:30:08 us01 kernel: [    0.814001] NET: Registered protocol family 17
Jan 15 06:30:08 us01 kernel: [    0.819268] Dcache charge unit 924
Jan 15 06:30:08 us01 kernel: [    0.910120] registered taskstats version 1
Jan 15 06:30:08 us01 kernel: [    0.914569] rtc_cmos 00:01: setting system clock to 2014-01-15 08:29:52 UTC (1389774592)
Jan 15 06:30:08 us01 kernel: [    0.915419] Initalizing network drop monitor service
Jan 15 06:30:08 us01 kernel: [    0.915902] Freeing unused kernel memory: 1328k freed
Jan 15 06:30:08 us01 kernel: [    0.916458] Write protecting the kernel read-only data: 10240k
Jan 15 06:30:08 us01 kernel: [    0.917209] Freeing unused kernel memory: 860k freed
Jan 15 06:30:08 us01 kernel: [    0.917864] Freeing unused kernel memory: 1660k freed
Jan 15 06:30:08 us01 kernel: [    0.925405] dracut: dracut-004-336.el6_5.2
Jan 15 06:30:08 us01 kernel: [    0.930220] udev: starting version 147
Jan 15 06:30:08 us01 kernel: [    1.040937] dracut: Starting plymouth daemon
Jan 15 06:30:08 us01 kernel: [    1.132111] usb 1-1: new full speed USB device number 2 using uhci_hcd
Jan 15 06:30:08 us01 kernel: [    1.231298] scsi0 : ata_piix
Jan 15 06:30:08 us01 kernel: [    1.231864] scsi1 : ata_piix
Jan 15 06:30:08 us01 kernel: [    1.232282] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
Jan 15 06:30:08 us01 kernel: [    1.232821] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
Jan 15 06:30:08 us01 kernel: [    1.260166] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
Jan 15 06:30:08 us01 kernel: [    1.393906] ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
Jan 15 06:30:08 us01 kernel: [    1.394681] ata2.00: configured for MWDMA2
Jan 15 06:30:08 us01 kernel: [    1.395524] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
Jan 15 06:30:08 us01 kernel: [    1.409705] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
Jan 15 06:30:08 us01 kernel: [    1.410451] virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 10 (level, high) -> IRQ 10
Jan 15 06:30:08 us01 kernel: [    1.411864] virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11
Jan 15 06:30:08 us01 kernel: [    1.413348] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
Jan 15 06:30:08 us01 kernel: [    1.413858] virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
Jan 15 06:30:08 us01 kernel: [    1.414916] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
Jan 15 06:30:08 us01 kernel: [    1.415406] virtio-pci 0000:00:06.0: PCI INT A -> Link[LNKB] -> GSI 11 (level, high) -> IRQ 11
Jan 15 06:30:08 us01 kernel: [    1.548212] sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Jan 15 06:30:08 us01 kernel: [    1.548214] Uniform CD-ROM driver Revision: 3.20
Jan 15 06:30:08 us01 kernel: [    1.577573]  vda: vda1 vda2
Jan 15 06:30:08 us01 kernel: [    1.594718]  vdb: unknown partition table
Jan 15 06:30:08 us01 kernel: [    1.616493] usb 1-1: New USB device found, idVendor=0627, idProduct=0001
Jan 15 06:30:08 us01 kernel: [    1.616497] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=5
Jan 15 06:30:08 us01 kernel: [    1.616500] usb 1-1: Product: QEMU USB Tablet
Jan 15 06:30:08 us01 kernel: [    1.616502] usb 1-1: Manufacturer: QEMU 0.12.1
Jan 15 06:30:08 us01 kernel: [    1.616504] usb 1-1: SerialNumber: 42
Jan 15 06:30:08 us01 kernel: [    1.616546] usb 1-1: configuration #1 chosen from 1 choice
Jan 15 06:30:08 us01 kernel: [    1.633520] input: QEMU 0.12.1 QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-1/1-1:1.0/input/input4
Jan 15 06:30:08 us01 kernel: [    1.634464] generic-usb 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Pointer [QEMU 0.12.1 QEMU USB Tablet] on usb-0000:00:01.2-1/input0
Jan 15 06:30:08 us01 kernel: [    1.656057] Refined TSC clocksource calibration: 3292.375 MHz.
Jan 15 06:30:08 us01 kernel: [    1.873617] EXT4-fs (vda2): INFO: recovery required on readonly filesystem
Jan 15 06:30:08 us01 kernel: [    1.874203] EXT4-fs (vda2): write access will be enabled during recovery
Jan 15 06:30:08 us01 kernel: [    2.018722] EXT4-fs (vda2): recovery complete
Jan 15 06:30:08 us01 kernel: [    2.027241] EXT4-fs (vda2): mounted filesystem with ordered data mode. Opts: 
Jan 15 06:30:08 us01 kernel: [    2.164743] dracut: Remounting /dev/disk/by-uuid/b8ee1c9e-0409-4008-9fa0-15c9735ba7dd with -o usrjquota=quota.user,jqfmt=vfsv0,ro
Jan 15 06:30:08 us01 kernel: [    2.297625] EXT4-fs (vda2): mounted filesystem with ordered data mode. Opts: 
Jan 15 06:30:08 us01 kernel: [    2.430865] dracut: Mounted root filesystem /dev/vda2
Jan 15 06:30:08 us01 kernel: [    2.775378] dracut: /sbin/load_policy: Can't load policy: No such device
Jan 15 06:30:08 us01 kernel: [    2.966526] dracut: Switching root
Jan 15 06:30:08 us01 kernel: [    4.085183] udev: starting version 147
Jan 15 06:30:08 us01 kernel: [    4.350677] sr 1:0:0:0: Attached scsi generic sg0 type 5
Jan 15 06:30:08 us01 kernel: [    4.575883] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
Jan 15 06:30:08 us01 kernel: [    4.827194] device-mapper: uevent: version 1.0.3
Jan 15 06:30:08 us01 kernel: [    4.827925] device-mapper: ioctl: 4.23.6-ioctl (2012-07-25) initialised: [email protected]
Jan 15 06:30:08 us01 kernel: [    5.528314] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: 
Jan 15 06:30:08 us01 kernel: [    8.623480] NET: Registered protocol family 10
Jan 15 06:30:08 us01 kernel: [    8.636528] ip6_tables: (C) 2000-2006 Netfilter Core Team
Jan 15 06:30:08 us01 kernel: [    8.720707] Enabling conntracks and NAT for ve0
Jan 15 06:30:08 us01 kernel: [    8.791253] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
Jan 15 06:30:08 us01 kernel: [    8.858319] iolimits: module license 'CloudLinux Commercial License' taints kernel.
Jan 15 06:30:08 us01 kernel: [    8.859156] Disabling lock debugging due to kernel taint
Jan 15 06:30:08 us01 kernel: [    8.859915] iolimits version 0.1-93.el6
Jan 15 06:30:08 us01 kernel: [    8.871667] io_set_limit = ffffffffa01a8820
Jan 15 06:30:08 us01 kernel: [    8.872115] io_get_usage = ffffffffa01a8610
Jan 15 06:30:08 us01 kernel: [    8.873380] lve driver register status 0
Jan 15 06:30:09 us01 kernel: [   18.009055] tun: Universal TUN/TAP device driver, 1.6
Jan 15 06:30:09 us01 kernel: [   18.009546] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
Jan 15 06:30:57 us01 varnishd[1876]: Platform: Linux,2.6.32-458.23.2.lve1.2.48.el6.x86_64,x86_64,-sfile,-smalloc,-hcritbit
Jan 15 06:30:57 us01 varnishd[1876]: child (1877) Started
Jan 15 06:30:57 us01 varnishd[1876]: Child (1877) said Child starts
Jan 15 06:30:57 us01 varnishd[1876]: Child (1877) said SMF.s0 mmap'ed 1572864000 bytes of 1572864000
Jan 15 06:30:57 us01 fail2ban.server : INFO   Changed logging target to SYSLOG for Fail2ban v0.8.11
Jan 15 06:30:57 us01 fail2ban.jail   : INFO   Creating new jail 'ssh-iptables'
Jan 15 06:30:58 us01 fail2ban.jail   : INFO   Jail 'ssh-iptables' uses pyinotify
Jan 15 06:30:58 us01 fail2ban.jail   : INFO   Initiated 'pyinotify' backend
Jan 15 06:30:58 us01 fail2ban.filter : INFO   Added logfile = /var/log/secure
Jan 15 06:30:58 us01 fail2ban.filter : INFO   Set maxRetry = 5
Jan 15 06:30:58 us01 fail2ban.filter : INFO   Set findtime = 600
Jan 15 06:30:58 us01 fail2ban.actions: INFO   Set banTime = 600
Jan 15 06:30:58 us01 fail2ban.jail   : INFO   Jail 'ssh-iptables' started
Jan 15 06:30:58 us01 kernel: [   66.771098] ip_tables: (C) 2000-2006 Netfilter Core Team
Jan 15 06:31:06 us01 rhnsd[2563]: Red Hat Network Services Daemon starting up, check in interval 240 minutes.
Jan 14 22:31:22 us01 kernel: [   79.092649] hrtimer: interrupt took 2664381 ns
Jan 14 22:31:23 us01 kernel: [   79.910823] Fatal resource shortage: privvmpages, UB 627.
Jan 14 22:31:23 us01 kernel: [   79.911036] Fatal resource shortage: privvmpages, UB 627.
Jan 14 22:31:23 us01 kernel: [   79.911242] Fatal resource shortage: privvmpages, UB 627.
Jan 14 22:31:23 us01 kernel: [   79.912705] Fatal resource shortage: privvmpages, UB 627.

有很多与内核相关的内容。有人能告诉我是什么原因导致了这个问题吗?

/var/log/messages 中的一些更多信息粘贴在这里:http://pastebin.com/bcTzcs0J

谢谢。

答案1

尝试运行lveinfo --period=1d --by-fault=mem --display-username

找出privvmpages当前设置的内容:

#cat /proc/user_beancounters

在 VEID 下,你会看到如下行:

889489: kmemsize 1420887 2768219 60252800 121278080 0
lockedpages 0 0 550 550 0
privvmpages 8622 18280 500000 750000 0

在这种情况下,privvmpages设置为500000:750000并且没有失败计数。您的失败计数可能会大于 0。要提高 privvmpages,请使用以下命令:

vzctl set VEID --privvmpages XXXXX:YYYYY --save

这会将 VEID privvmpages 设置为XXXXX:YYYYY

如果这没有帮助,请使用以下步骤并编辑您的帖子:

  1. 如果可以,请重新启动物理服务器,以清除计数器
  2. 运行cat /proc/user_beancounters并保存
  3. 模拟问题
  4. 重复步骤 2

答案2

我认为值得注意的是这可能是硬件或软件问题,所以我会先尝试解决这个问题。

您能否将其打开但禁用标准处理并查看是否有任何变化,例如关闭所有或大多数进程,这样只有电源和芯片组在运行,但很少进行处理。请注意,这不会使组件过热。因此,您可能还需要尝试运行诸如内存测试或循环压缩算法之类的操作,这将加载 CPU 和总线逻辑,从而导致其电路升温。

如果 20 分钟后它仍然关闭,这听起来像是与热相关的硬件问题。如果你可以把它放进冰箱(认真的)并尝试从那里运行它。如果它继续打开,那么你的某个晶体管坏了。

基本原理:坏的晶体管通常在变热时开始出现故障。有时,您可以冷却坏的(间歇性)晶体管,使其工作。您也可以加热坏的间歇性晶体管,使其出现故障。.. 是的,您的服务器只有十亿个晶体管左右(包括电源中最重要的高功率晶体管,它们最容易出现故障)。您还可以用热风枪小心地加热主板,有时会导致主板出现故障。好的主板在相当热的温度下运行不会出现故障,但长时间处于高温状态会缩短其寿命(请参阅有关“浴缸曲线”的信息)。

如果它没有关闭,请通过二分法找出哪个进程可能导致问题,这是我所知道的解决问题的最快方法。例如,尝试启动大约 1/2 的进程(不太依赖于其他事物的进程)。

您还可以将一些硬件与另一个系统进行交换,例如电源,以帮助理清各个硬件的区别。

(很久以前,我靠修理电脑为生。)

相关内容