我读过很多帖子,并尝试了一些基本方法来解决这个问题,但在我采取更有雄心的行动之前,我想寻求帮助。
我正在运行 22.04.3;我喜欢坚持使用 LTS 版本,因为有些人这样做都是很正常的原因。我有一台相当老旧的 2011 年戴尔台式机,配有“八核”i7 处理器。我有一个英特尔“硬件”RAID 1 作为启动驱动器。
直到最近,一切都还很好。大约一周前,这台电脑的速度几乎完全停滞了。这在运行 Firefox 浏览器时最为明显。然而,从那时起,我发现我几乎什么都做不了。例如,现在我已经等了半个小时才让电脑启动(通常大约需要 1 分钟)。它确实在逐渐取得进展,但做任何事情真的需要很长时间。在加载程序时,如果我查看资源监视器,我会注意到资源监视器没有工作,或者如果它在工作,电脑没有压力---处理器负载最小,没有使用太多 RAM,网络或多或少很安静。换句话说,什么都没有发生,因此任何程序的加载都非常慢。
所描述的情况与我尝试解决 VPN 问题时的情况相吻合,当时我在本地计算机上连接到 VPN 时无法访问外部网站。但是,我并不是真的声称这些是相关的。在我看来,这似乎是巧合。如果不诉诸当前方法,我找不到解决 VPN 问题的方法,即使用 netplan(我的理解)。从我升级到 22.04 开始,netplan 目录中没有任何内容,因此我不得不手动执行此操作,使用有关该主题的几篇文章中描述的过程。最终我无法让它工作,但我想我只是没有正确设置。我正在连接到 PAN Global Protect。
此时,我已确保完全升级所有软件包。这最终变成了一个过程;由于某种原因,许多软件包被搁置。(可能是我遇到的问题的原因或症状?)。我能够通过手动依次 apt-get 并反复执行 apt autoremove 来更新所有内容。我相信我现在已经完全更新了。
但是,速度还是很慢。我尝试关闭 iommu,但似乎没有任何效果。
接下来我将尝试关闭thermald。
附带的评论是,我的网络连接在最近重启后就被破坏了。
我使用 Ubuntu 时从来没有遇到过这么严重的问题。22.04 非常令人失望。
谢谢
肖恩
编辑 1:附加 RAID 信息。RAID 之前没有问题,只是当我最初(去年)升级到 22.04 时,RAID 根本不起作用,因此计算机甚至无法启动。我修复了这个问题(不记得具体是怎么回事,但我使用了 USB 可启动的 ubuntu 驱动器,我想我只需要修复它正在启动的驱动器的名称)。
然而,几天前(速度问题已经持续了好几天),当计算机启动时,它卡在了 Dell + Bios 屏幕上。我试图让它继续运行,但它全速运行了好几分钟。最后我不得不关闭电源,之后它确实正常启动了,但现在检测到了 SMART 事件,可能是其中一个 RAID 驱动器温度过高。我之前从未在该屏幕上注意到这两个驱动器有任何问题。我猜想是启动锁定失败导致了温度过高。也可能是巧合。以下是信息lshw
:
*-raid
description: RAID bus controller
product: SATA Controller [RAID mode]
vendor: Intel Corporation
physical id: 1f.2
bus info: pci@0000:00:1f.2
logical name: scsi0
logical name: scsi1
logical name: scsi2
version: 04
width: 32 bits
clock: 66MHz
capabilities: raid msi pm bus_master cap_list emulated
configuration: driver=ahci latency=0
resources: irq:27 ioport:4090(size=8) ioport:4080(size=4) ioport:4070(size=8) ioport:4060(size=4) ioport:4020(size=32) memory:e1540000-e15407ff
*-disk:0
description: ATA Disk
product: WDC WD10EALX-759
vendor: Western Digital
physical id: 0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 1H19
serial: WD-WCATR8410859
size: 931GiB (1TB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=0000d8c4
*-volume:0 UNCLAIMED
description: EXT4 volume
vendor: Linux
physical id: 1
bus info: scsi@0:0.0.0,1
version: 1.0
serial: 59db399e-f827-4109-9d4a-80c3a06fe246
size: 923GiB
capacity: 923GiB
capabilities: primary bootable journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
configuration: created=2011-09-06 10:54:40 filesystem=ext4 lastmountpoint=/ modified=2023-07-21 12:35:23 mounted=2023-09-22 12:06:53 state=clean
*-volume:1 UNCLAIMED
description: Extended partition
physical id: 2
bus info: scsi@0:0.0.0,2
size: 8147MiB
capacity: 8147MiB
capabilities: primary extended partitioned partitioned:extended
*-logicalvolume UNCLAIMED
description: Linux swap volume
physical id: 5
version: 1
serial: 29cea475-fa94-4a3d-9227-e88017ececcb
size: 8147MiB
capacity: 8147MiB
capabilities: nofs swap initialized
configuration: filesystem=swap pagesize=4096
*-disk:1
description: ATA Disk
product: WDC WD10EALX-759
vendor: Western Digital
physical id: 1
bus info: scsi@1:0.0.0
logical name: /dev/sdb
version: 1H19
serial: WD-WCATR8422235
size: 931GiB (1TB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=0000d8c4
*-volume:0 UNCLAIMED
description: EXT4 volume
vendor: Linux
physical id: 1
bus info: scsi@1:0.0.0,1
version: 1.0
serial: 59db399e-f827-4109-9d4a-80c3a06fe246
size: 923GiB
capacity: 923GiB
capabilities: primary bootable journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
configuration: created=2011-09-06 10:54:40 filesystem=ext4 lastmountpoint=/ modified=2023-07-21 12:35:23 mounted=2023-09-22 12:06:53 state=clean
*-volume:1 UNCLAIMED
description: Extended partition
physical id: 2
bus info: scsi@1:0.0.0,2
size: 8147MiB
capacity: 8147MiB
capabilities: primary extended partitioned partitioned:extended
*-logicalvolume UNCLAIMED
description: Linux swap volume
physical id: 5
version: 1
serial: 29cea475-fa94-4a3d-9227-e88017ececcb
size: 8147MiB
capacity: 8147MiB
capabilities: nofs swap initialized
configuration: filesystem=swap pagesize=4096
编辑 2:来自 smartctl -a 的 RAID 错误
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Blue
Device Model: WDC WD10EALX-759BA1
Serial Number: WD-WCATR8410859
LU WWN Device Id: 5 0014ee 2b0cffb90
Firmware Version: 19.01H19
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Fri Sep 22 16:16:02 2023 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
See vendor-specific Attribute list for failed Attributes.
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (15960) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 185) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x3037) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 199 199 051 Pre-fail Always - 8672
3 Spin_Up_Time 0x0027 176 167 021 Pre-fail Always - 4191
4 Start_Stop_Count 0x0032 098 098 000 Old_age Always - 2636
5 Reallocated_Sector_Ct 0x0033 069 069 140 Pre-fail Always FAILING_NOW 1043
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 050 050 000 Old_age Always - 37073
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 098 098 000 Old_age Always - 2634
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 210
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 2425
194 Temperature_Celsius 0x0022 100 086 000 Old_age Always - 47
196 Reallocated_Event_Count 0x0032 001 001 000 Old_age Always - 410
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 103
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 85
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 193 193 000 Old_age Offline - 1492
240 Head_Flying_Hours 0x0032 054 054 000 Old_age Always - 33972
241 Total_LBAs_Written 0x0032 200 200 000 Old_age Always - 35557148779
242 Total_LBAs_Read 0x0032 200 200 000 Old_age Always - 28469971659
/dev/sdb 的输出除了通过之外都相同,但它确实有类似的预失败和 old_age 标记。没有显示“现在失败”。
答案1
您的驱动器出现故障。它花时间重新分配扇区,而不是返回读取的数据。您需要更换出现故障的磁盘。
和只是一种指示,并不表示存在问题。计数器增加和Old_age
表示此测量值表明驱动器出现故障。Pre_fail
FAILING_NOW
顺便说一句,使用单个 SSD 可能会获得更好的性能和可靠性。如今,只需 60 美元就可以买到一个简单的 SATA SSD,它就能让你的旋转磁盘黯然失色。对于这种旧硬件来说,这可能是你能拥有的最大性能改进。