Iva*_*van 5 ssd lvm hard-drive
我刚刚从 18.10(之前从 Debian Stretch)更新到 19.04。升级后,任何写入操作都会使整个系统(包括鼠标)冻结 3 秒或更长时间。这很奇怪,因为升级之前没有发生过,而且系统是一样的。hdparm 报告 517 MB/s 读取和 smart 没有显示任何错误:
sudo smartctl -a /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-5.0.0-13-generic] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: LITEON L8H-128V2G-11 M.2 2280 128GB
Serial Number: BR0RJW291CB0075GB0VE
Firmware Version: F87110C
User Capacity: 128.035.676.160 bytes [128 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: M.2
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sat Apr 20 11:47:56 2019 -03
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: PASSED
General SMART Values:
Offline data collection status: (0x02) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Disabled.
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: ( 0) seconds.
Offline data collection
capabilities: (0x11) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No 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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 10) minutes.
SCT capabilities: (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0003 100 100 000 Pre-fail Always - 0
9 Power_On_Hours 0x0002 100 100 000 Old_age Always - 681
12 Power_Cycle_Count 0x0003 100 100 000 Pre-fail Always - 535
175 Program_Fail_Count_Chip 0x0003 100 100 000 Pre-fail Always - 0
176 Erase_Fail_Count_Chip 0x0003 100 100 000 Pre-fail Always - 0
177 Wear_Leveling_Count 0x0003 100 100 000 Pre-fail Always - 76
178 Used_Rsvd_Blk_Cnt_Chip 0x0003 100 100 000 Pre-fail Always - 0
179 Used_Rsvd_Blk_Cnt_Tot 0x0003 100 100 000 Pre-fail Always - 0
180 Unused_Rsvd_Blk_Cnt_Tot 0x0003 100 100 000 Pre-fail Always - 147
181 Program_Fail_Cnt_Total 0x0003 100 100 000 Pre-fail Always - 0
182 Erase_Fail_Count_Total 0x0003 100 100 000 Pre-fail Always - 0
187 Reported_Uncorrect 0x0003 100 100 000 Pre-fail Always - 0
195 Hardware_ECC_Recovered 0x0003 100 100 000 Pre-fail Always - 0
241 Total_LBAs_Written 0x0003 100 100 000 Pre-fail Always - 215371
242 Total_LBAs_Read 0x0003 100 100 000 Pre-fail Always - 68520
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 58 -
# 2 Short offline Completed without error 00% 58 -
# 3 Short offline Completed without error 00% 58 -
# 4 Short offline Completed without error 00% 0 -
Selective Self-tests/Logging not supported
Run Code Online (Sandbox Code Playgroud)
fstab 具有用于带有 LVM 的系统的通用选项:
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/euclides--vg-root / ext4 noatime,nodiratime,errors=remount-ro 0 1
# /boot was on /dev/sdb1 during installation
UUID=456b218a-f23c-4a35-8b39-ad416b03204f /boot ext2 defaults 0 2
/dev/mapper/euclides--vg-home /home ext4 defaults 0 2
/swapfile none swap sw 0 0
Run Code Online (Sandbox Code Playgroud)
关于发生了什么以及如何解决这个问题的任何想法?
编辑:为了测试,我从 Gnome 切换到 KDE,令人惊讶的是,延迟消失了。所以这可能不是我的 SSD 的问题,而是与 Gnome 相关的问题。
如果您在 Ubuntu 19.04 上安装了 nVIDIA 和 Gnome 3.32,请按照以下步骤操作: https: //devtalk.nvidia.com/default/topic/957814/linux/prime-and-prime-synchronization/post/5323965/#5323965 将变量添加为如下:
sudo gedit /etc/environment
__GL_MaxFramesAllowed=1
Run Code Online (Sandbox Code Playgroud)
在我的 Dell 7577 笔记本电脑(配备带有 max-Q 设计的 nVIDIA GTX 1060)上,自从从 Ubuntu 18.10 升级到 19.04 后,当启动 Thunderbird 或 Firefox 等应用程序时,我会冻结 2 秒。VLC 也很卡顿。有了上面的变量,我的 gnome 就可以顺利运行了。
小智 1
您可能遇到了此处描述的 APST 错误:
1. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1678184
2. https://bugs.launchpad.net/ubuntu/+source/ linux/+错误/1689357
他们建议编辑 /etc/default/grub 并 在
不同设备的
内核命令行中添加内核参数nvme_core.default_ps_max_latency_us=xxx , xxx不同,如果它适用于0,您可以开始增加到(最大 5500)以允许更深层次的省电状态。不要忘记在编辑后和重新启动前运行 update-grub。无论如何,请阅读主题。
| 归档时间: |
|
| 查看次数: |
5686 次 |
| 最近记录: |