x220安装linux 使用过程中会突然变卡

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
icelee123
帖子: 811
注册时间: 2011-07-16 19:48
系统: Arch

x220安装linux 使用过程中会突然变卡

#1

帖子 icelee123 » 2016-12-05 17:34

强调下不是桌面变卡,纯cli一样会卡

deepin ubuntu都会这样,应该跟发行版无关

syslog里面似乎没有有用信息, vmstat观察到的磁盘io cpu占用看起来也正常, 那debug这类问题应该从何入手?

怀疑是有一些节能之类的bios设置导致的,但目前没有什么证据支持这个假设 = =

:em01

icelee123@icelee123-x220:~$ vmstat 2 10
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 5592212 49040 1535160 0 0 514 99 281 878 5 2 86 8 0
8 0 0 5591824 49040 1535208 0 0 0 0 241 656 0 1 99 0 0
18 0 0 5591840 49040 1535208 0 0 0 2 1059 4555 4 1 95 0 0
12 0 0 5583768 49048 1543076 0 0 0 22 398 1373 2 1 92 5 0
13 0 0 5589200 49048 1537288 0 0 0 0 104 283 0 0 100 0 0
13 0 0 5589560 49052 1537248 0 0 0 2 115 343 0 0 99 0 0
12 0 0 5589560 49068 1537248 0 0 0 50 169 519 1 0 98 1 0
6 0 0 5589560 49076 1537244 0 0 0 28 100 302 0 0 99 0 0
23 0 0 5595932 49076 1537244 0 0 0 0 110 340 0 0 99 0 0
16 0 0 5596180 49084 1537112 0 0 0 80 117 314 0 0 99 0 0
icelee123@icelee123-x220:~$
其实我是菜鸟、、、
头像
icelee123
帖子: 811
注册时间: 2011-07-16 19:48
系统: Arch

Re: x220安装linux 使用过程中会突然变卡

#2

帖子 icelee123 » 2016-12-05 17:44

--- TLP 0.9 --------------------------------------------

+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
ENERGY_PERF_POLICY_ON_AC=performance
ENERGY_PERF_POLICY_ON_BAT=powersave
DISK_DEVICES="sda sdb"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power
AHCI_RUNTIME_PM_TIMEOUT=15
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
RADEON_DPM_STATE_ON_AC=performance
RADEON_DPM_STATE_ON_BAT=battery
RADEON_DPM_PERF_LEVEL_ON_AC=auto
RADEON_DPM_PERF_LEVEL_ON_BAT=auto
WIFI_PWR_ON_AC=off
WIFI_PWR_ON_BAT=on
WOL_DISABLE=Y
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
RUNTIME_PM_ALL=1
RUNTIME_PM_DRIVER_BLACKLIST="radeon nouveau"
USB_AUTOSUSPEND=1
USB_BLACKLIST_WWAN=1
RESTORE_DEVICE_STATE_ON_STARTUP=0
START_CHARGE_THRESH_BAT0=50
STOP_CHARGE_THRESH_BAT0=90

+++ System Info
System = LENOVO ThinkPad X220 4286RY7
BIOS = 8DET73WW (1.43 )
Release = Deepin 15.3
Kernel = 4.4.0-3-deepin-amd64 #1 SMP Deepin 4.4.30-1 (2016-11-01) x86_64
/proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-4.4.0-3-deepin-amd64 root=UUID=5245453c-e9f1-440c-bb47-fb324977f1f1 ro splash quiet
Init system = systemd v231
Boot mode = UEFI

+++ TLP Status
State = enabled
Last run = 17时32分08秒, 916 sec(s) ago
Mode = AC
Power source = AC

+++ Processor
CPU model = Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = ondemand performance
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2301000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 2301000 2300000 2000000 1800000 1600000 1400000 1200000 1000000 800000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors = ondemand performance
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 2301000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies = 2301000 2300000 2000000 1800000 1600000 1400000 1200000 1000000 800000 [kHz]

/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_governors = ondemand performance
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 2301000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies = 2301000 2300000 2000000 1800000 1600000 1400000 1200000 1000000 800000 [kHz]

/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors = ondemand performance
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 2301000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_frequencies = 2301000 2300000 2000000 1800000 1600000 1400000 1200000 1000000 800000 [kHz]

/sys/devices/system/cpu/cpufreq/boost = 1

x86_energy_perf_policy: program not installed.

/proc/sys/kernel/nmi_watchdog = 0

+++ Undervolting
PHC kernel not available.

+++ Temperatures
CPU temp = 59 [°C]
/proc/acpi/ibm/fan = 3400 [/min]

+++ File System
/proc/sys/vm/laptop_mode = 0
/proc/sys/vm/dirty_writeback_centisecs = 1500
/proc/sys/vm/dirty_expire_centisecs = 1500
/proc/sys/vm/dirty_ratio = 20
/proc/sys/vm/dirty_background_ratio = 10
/proc/sys/fs/xfs/age_buffer_centisecs = (not available)
/proc/sys/fs/xfs/xfssyncd_centisecs = (not available)
/proc/sys/fs/xfs/xfsbufd_centisecs = (not available)

+++ Storage Devices
/dev/sda:
Model = HITACHI HTS723232A7A364
Firmware = EC2ZB70B
APM Level = 254
Status = active/idle
Scheduler = cfq

Runtime PM: control = on, autosuspend_delay = -1

SMART info:
4 Start_Stop_Count = 2093
5 Reallocated_Sector_Ct = 0
9 Power_On_Hours = 3078 [h]
12 Power_Cycle_Count = 2061
193 Load_Cycle_Count = 102682
194 Temperature_Celsius = 39 (Min/Max 9/44) [°C]


+++ SATA Aggressive Link Power Management
/sys/class/scsi_host/host0/link_power_management_policy = max_performance
/sys/class/scsi_host/host1/link_power_management_policy = max_performance
/sys/class/scsi_host/host2/link_power_management_policy = max_performance
/sys/class/scsi_host/host3/link_power_management_policy = max_performance
/sys/class/scsi_host/host4/link_power_management_policy = max_performance
/sys/class/scsi_host/host5/link_power_management_policy = max_performance

+++ AHCI Host Controller Runtime Power Management
/sys/bus/pci/devices/0000:00:1f.2/ata1/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata2/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata3/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata4/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata5/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata6/power/control = on

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = default (using bios preferences)

+++ Intel Graphics
/sys/module/i915/parameters/powersave = (not available)
/sys/module/i915/parameters/enable_rc6 = 1 (enabled)
/sys/module/i915/parameters/enable_dc = (not available)
/sys/module/i915/parameters/enable_fbc = -1 (use per-chip default)
/sys/module/i915/parameters/enable_psr = 0 (disabled)
/sys/module/i915/parameters/lvds_downclock = (not available)
/sys/module/i915/parameters/modeset = -1 (use per-chip default)
/sys/module/i915/parameters/semaphores = -1 (use per-chip default)

+++ Wireless
bluetooth = on
wifi = on
wwan = none (no device)

hci0(btusb) : bluetooth, not connected
wlp3s0(iwlwifi) : wifi, connected, power management = off

+++ Audio
/sys/module/snd_hda_intel/parameters/power_save = 0
/sys/module/snd_hda_intel/parameters/power_save_controller = N

+++ Docks and Device Bays
/sys/devices/platform/dock.0: battery_bay = no battery
/sys/devices/platform/dock.1: ata_bay = no drive (or powered off)
/sys/devices/platform/dock.2: dock_station = undocked

+++ Runtime Power Management
Device classes = all
Device blacklist = (not configured)
Driver blacklist = radeon nouveau

/sys/bus/pci/devices/0000:00:00.0/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:02.0/power/control = on (0x030000, VGA compatible controller, i915)
/sys/bus/pci/devices/0000:00:16.0/power/control = on (0x078000, Communication controller, mei_me)
/sys/bus/pci/devices/0000:00:19.0/power/control = on (0x020000, Ethernet controller, e1000e)
/sys/bus/pci/devices/0000:00:1a.0/power/control = on (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:00:1b.0/power/control = on (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:00:1c.0/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.1/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.3/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.4/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1d.0/power/control = on (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:00:1f.0/power/control = on (0x060100, ISA bridge, lpc_ich)
/sys/bus/pci/devices/0000:00:1f.2/power/control = on (0x010601, SATA controller, ahci)
/sys/bus/pci/devices/0000:00:1f.3/power/control = on (0x0c0500, SMBus, i801_smbus)
/sys/bus/pci/devices/0000:03:00.0/power/control = on (0x028000, Network controller, iwlwifi)

+++ USB
Autosuspend = enabled
Device whitelist = (not configured)
Device blacklist = (not configured)
WWAN blacklist = enabled

Bus 002 Device 003 ID 1d57:fa60 control = on, autosuspend_delay_ms = 2000 -- Xenta (usbhid)
Bus 002 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 005 ID 04f2:b217 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP) (uvcvideo)
Bus 001 Device 004 ID 0a5c:217f control = auto, autosuspend_delay_ms = 2000 -- Broadcom Corp. BCM2045B (BDC-2.1) (btusb)
Bus 001 Device 003 ID 147e:2016 control = auto, autosuspend_delay_ms = 2000 -- Upek Biometric Touchchip/Touchstrip Fingerprint Sensor (no driver)
Bus 001 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)

+++ ThinkPad Extended Battery Functions
tp-smapi = active
tpacpi-bat = active

+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/devices/platform/smapi/BAT0/manufacturer = LGC
/sys/devices/platform/smapi/BAT0/model = 42T4865
/sys/devices/platform/smapi/BAT0/manufacture_date = 2011-08-24
/sys/devices/platform/smapi/BAT0/first_use_date = 2011-12-02
/sys/devices/platform/smapi/BAT0/cycle_count = 116
/sys/devices/platform/smapi/BAT0/design_capacity = 57720 [mWh]
/sys/devices/platform/smapi/BAT0/last_full_capacity = 50700 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_capacity = 38920 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_percent = 77 [%]
/sys/devices/platform/smapi/BAT0/remaining_running_time_now = not_discharging [min]
/sys/devices/platform/smapi/BAT0/remaining_charging_time = not_charging [min]
/sys/devices/platform/smapi/BAT0/power_now = 0 [mW]
/sys/devices/platform/smapi/BAT0/power_avg = 0 [mW]
/sys/devices/platform/smapi/BAT0/state = idle

tpacpi-bat.BAT0.startThreshold = 50 [%]
tpacpi-bat.BAT0.stopThreshold = 90 [%]
tpacpi-bat.BAT0.forceDischarge = 0

Charge = 76.8 [%]
Capacity = 87.8 [%]
其实我是菜鸟、、、
头像
icelee123
帖子: 811
注册时间: 2011-07-16 19:48
系统: Arch

Re: x220安装linux 使用过程中会突然变卡

#3

帖子 icelee123 » 2016-12-05 17:57

暂时disable掉bios里的cpu management试用中 。。 总觉得关掉这个不太合适 = =
其实我是菜鸟、、、
头像
icelee123
帖子: 811
注册时间: 2011-07-16 19:48
系统: Arch

Re: x220安装linux 使用过程中会突然变卡

#4

帖子 icelee123 » 2016-12-06 19:24

问题进度更新,禁用BIOS选项后,今天一天没出现问题。
其实我是菜鸟、、、
头像
icelee123
帖子: 811
注册时间: 2011-07-16 19:48
系统: Arch

Re: x220安装linux 使用过程中会突然变卡

#5

帖子 icelee123 » 2016-12-09 16:53

更新: 修改bios节能设置无效,依然会突然变卡
其实我是菜鸟、、、
头像
bzimage
帖子: 716
注册时间: 2006-03-14 10:25

Re: x220安装linux 使用过程中会突然变卡

#6

帖子 bzimage » 2016-12-09 23:45

有没有可能是cpu在降频运行,想办法看一下频率 :Music
头像
icelee123
帖子: 811
注册时间: 2011-07-16 19:48
系统: Arch

Re: x220安装linux 使用过程中会突然变卡

#7

帖子 icelee123 » 2016-12-14 15:32

bzimage 写了:有没有可能是cpu在降频运行,想办法看一下频率 :Music
因为没有运行什么特别的功能,平时cpu也是再比较低的频率运行,对比也看不出什么太大区别来。
其实我是菜鸟、、、
头像
icelee123
帖子: 811
注册时间: 2011-07-16 19:48
系统: Arch

Re: x220安装linux 使用过程中会突然变卡

#8

帖子 icelee123 » 2017-10-27 11:41

目前解决方案: cpu频率控制驱动换成intel_pstate
grub参数:
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet intel_pstate=enable"

两天观察无问题
其实我是菜鸟、、、
回复