在全新安装 Ubuntu Gnome 13.10(64 位)和相应的 Gnome 3(稳定版)后电力供应协议我的系统(三星900X3C) 在将文件复制到外部硬盘 (HDD) 或将档案提取到我的 SSD 上时,会非常卡顿 (Crucial M4 mSATA 256 GB)。鼠标指针非常不流畅,整个 Gnome Shell 也是如此。在 SSD 内复制文件时,情况会好转,但速度明显变慢。从互联网高速(约 8 Mb/s)下载文件时也会出现这种情况。我不知道这是否与同一问题有关,但 Firefox 也很滞后,尤其是在加载标签时滚动。此外,即使启用了硬件解码,VLC 中的高清视频有时也会不流畅。
我怀疑硬盘是问题的根源,但究竟是什么导致了这种速度减慢?使用不同的调度程序(noop、deadline、cfq)没有帮助。无论笔记本电脑是使用电池还是连接到电源,都没有任何区别。
非常感谢所有解决此问题的提示和建议!
这是省电工具TLP的/etc/defaul/tlp,也许这会有所帮助:
--- TLP 0.5 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
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
DISK_DEVICES="sda sdb sdc sdd"
DISK_APM_LEVEL_ON_AC="255 255"
DISK_APM_LEVEL_ON_BAT="255 255"
DISK_IOSCHED="deadline cfq cfq cfq"
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power
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=1
WIFI_PWR_ON_BAT=5
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
USB_AUTOSUSPEND=1
USB_BLACKLIST_WWAN=1
RESTORE_DEVICE_STATE_ON_STARTUP=0
+++ System Info
System = SAMSUNG ELECTRONICS CO., LTD. 0.1 900X3C/900X3D/900X3E/900X4C/900X4D
BIOS = P10ABK
Release = Ubuntu 13.10
Kernel = 3.11.0-19-generic x86_64
/proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-3.11.0-19-generic root=UUID=271463cd-ca74-46fa-9ce3-0de5a5aecec7 ro quiet splash vt.handoff=7
+++ System Status
TLP power save = enabled
power source = battery
+++ Processor
CPU Model = Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz
/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_min_freq = 782000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 1701000 1700000 1600000 1500000 1400000 1300000 1200000 1100000 1000000 900000 800000 782000 [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_min_freq = 782000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies = 1701000 1700000 1600000 1500000 1400000 1300000 1200000 1100000 1000000 900000 800000 782000 [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_min_freq = 782000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies = 1701000 1700000 1600000 1500000 1400000 1300000 1200000 1100000 1000000 900000 800000 782000 [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_min_freq = 782000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_frequencies = 1701000 1700000 1600000 1500000 1400000 1300000 1200000 1100000 1000000 900000 800000 782000 [kHz]
/sys/devices/system/cpu/cpufreq/boost = 1
/proc/sys/kernel/nmi_watchdog = 0
+++ Undervolting
PHC kernel not available.
+++ Temperatures
CPU temp = 48 [°C]
Fan speed = (not available)
+++ File System
/proc/sys/vm/laptop_mode = 2
/proc/sys/vm/dirty_writeback_centisecs = 6000
/proc/sys/vm/dirty_expire_centisecs = 6000
/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 = M4-CT256M4SSD3
Firmware = 07MH
APM Level = none/disabled
Status = active/idle
TRIM = supported
scheduler = deadline
SMART info:
5 Reallocated_Sector_Ct = 0
9 Power_On_Hours = 5332 [h]
173 Wear_Leveling_Count = 99 [%]
194 Temperature_Celsius = 0 [°C]
+++ SATA Aggressive Link Power Management
/sys/class/scsi_host/host0/link_power_management_policy = min_power
/sys/class/scsi_host/host1/link_power_management_policy = min_power
/sys/class/scsi_host/host2/link_power_management_policy = min_power
/sys/class/scsi_host/host3/link_power_management_policy = min_power
/sys/class/scsi_host/host4/link_power_management_policy = min_power
/sys/class/scsi_host/host5/link_power_management_policy = min_power
+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = default (using bios preferences)
+++ Intel Graphics
/sys/module/i915/parameters/powersave = 1 (enabled)
/sys/module/i915/parameters/i915_enable_rc6 = -1 (use per-chip default)
/sys/module/i915/parameters/i915_enable_fbc = -1 (use per-chip default)
/sys/module/i915/parameters/lvds_downclock = 0 (disabled)
/sys/module/i915/parameters/semaphores = -1 (use per-chip default)
+++ Wireless
bluetooth = off (software)
wifi = on
wwan = none (no device)
wlan0(iwlwifi): power management = on
+++ Audio
/sys/module/snd_hda_intel/parameters/power_save = 1
/sys/module/snd_hda_intel/parameters/power_save_controller = Y
+++ Battery Status
/sys/class/power_supply/BAT1/manufacturer = SAMSUNG Electronics
/sys/class/power_supply/BAT1/model_name = (not available)
/sys/class/power_supply/BAT1/cycle_count = 578
/sys/class/power_supply/BAT1/charge_full_design = 5880 [mAh]
/sys/class/power_supply/BAT1/charge_full = 4600 [mAh]
/sys/class/power_supply/BAT1/charge_now = 4048 [mAh]
/sys/class/power_supply/BAT1/current_now = 932 [mA]
/sys/class/power_supply/BAT1/status = Discharging
+++ Runtime Power Management
/sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000 Host bridge)
/sys/bus/pci/devices/0000:00:02.0/power/control = auto (0x030000 VGA compatible controller)
/sys/bus/pci/devices/0000:00:16.0/power/control = auto (0x078000 Communication controller)
/sys/bus/pci/devices/0000:00:1b.0/power/control = auto (0x040300 Audio device)
/sys/bus/pci/devices/0000:00:1c.0/power/control = auto (0x060400 PCI bridge)
/sys/bus/pci/devices/0000:00:1c.3/power/control = auto (0x060400 PCI bridge)
/sys/bus/pci/devices/0000:00:1c.4/power/control = auto (0x060400 PCI bridge)
/sys/bus/pci/devices/0000:00:1d.0/power/control = auto (0x0c0320 USB controller)
/sys/bus/pci/devices/0000:00:1f.0/power/control = auto (0x060100 ISA bridge)
/sys/bus/pci/devices/0000:00:1f.2/power/control = auto (0x010601 SATA controller)
/sys/bus/pci/devices/0000:00:1f.3/power/control = auto (0x0c0500 SMBus)
/sys/bus/pci/devices/0000:01:00.0/power/control = auto (0x028000 Network controller)
/sys/bus/pci/devices/0000:02:00.0/power/control = auto (0x020000 Ethernet controller)
/sys/bus/pci/devices/0000:03:00.0/power/control = auto (0x0c0330 USB controller)
+++ USB
tlp usb autosuspend = enabled
tlp usb blacklist = (not configured)
Bus 001 Device 004 ID 2232:1024 control = auto, autosuspend_delay_ms = 2000 -- <unknown> (no driver)
Bus 001 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 2.0 root hub (hub)
Bus 003 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 3.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 2.0 root hub (hub)
答案1
假设您已对 HDD 进行了所有硬件相关测试,我将在禁用 TLP 的情况下测试系统。设置TLP_ENABLE=0
并重新启动后,您是否看到相同的症状?
如果是这样,那么 TLP 设置可能是罪魁祸首。我看到您发布了系统使用电池运行时的输出,所以我在这里遵循您的指导 :-)
a) 我会将 CPU 频率提高几格,因为我看到你非常保守。例如,我会设置:
CPU_SCALING_MIN_FREQ_ON_BAT=782000
CPU_SCALING_MAX_FREQ_ON_BAT=1300000
对于所有核心。
b)我会设置
SATA_LINKPWR_ON_BAT=medium_power
并再次测试。
c) 另外,使用 gnome-disks(“磁盘”应用程序)尝试启用写入缓存:选择您的 HDD,单击右上角的齿轮图标,选择驱动器设置,然后在那里启用。
我确信还有很多事情要做...祝你好运。