M.2 NVMe PCIe 启动时间比旧 SATA SSD 慢得多

M.2 NVMe PCIe 启动时间比旧 SATA SSD 慢得多

我曾经dd将旧的 SATA SSD 克隆到 Dell XPS 9360 上的新的更大的 NVMe 型号中,并将 SATA 配置从原始 RAID 切换到 AHCI 以使其启动。它可以工作,但新磁盘感觉比我的旧 SSD 慢很多,尤其是在启动过程中。启动时间缩短为几分钟,而之前只有 20 秒左右。

我在某处读到,对于 M.2 NVMe PCIe 芯片,将 SATA 切换为“禁用”而不是 AHCI 以获得最佳性能。是这样吗?

如果是,我如何安全地切换模式? (我尝试在 BIOS 上切换它,但 SSD 无法识别,我无法从它启动)。

如果我应该坚持使用 AHCI,如何才能获得更快的启动时间? (已经在BIOS中启用Fastboot)

最初提出的问题(但被认为是偏离主题的)这里

长沙:

$ sudo lshw

## output trimmed ##
*-pci:3
     description: PCI bridge
     product: Intel Corporation
     vendor: Intel Corporation
     physical id: 1d
     bus info: pci@0000:00:1d.0
     version: f1
     width: 32 bits
     clock: 33MHz
     capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
     configuration: driver=pcieport
     resources: irq:125 memory:dc200000-dc2fffff
   *-storage
        description: Non-Volatile memory controller
        product: Toshiba America Info Systems
        vendor: Toshiba America Info Systems
        physical id: 0
        bus info: pci@0000:3c:00.0
        version: 01
        width: 64 bits
        clock: 33MHz
        capabilities: storage pm msi pciexpress msix nvm_express bus_master cap_list
        configuration: driver=nvme latency=0
        resources: irq:16 memory:dc200000-dc203fff

## output trimmed ##

磁盘驱动器:

$ sudo fdisk -l
Disk /dev/loop0: 86,6 MiB, 90828800 bytes, 177400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 86,6 MiB, 90812416 bytes, 177368 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 86,6 MiB, 90759168 bytes, 177264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/nvme0n1: 953,9 GiB, 1024209543168 bytes, 2000409264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A4EB683B-DB3D-49FD-AA58-67970447597C

Device           Start        End    Sectors   Size Type
/dev/nvme0n1p1    2048    1050623    1048576   512M EFI System
/dev/nvme0n1p2 1050624    1550335     499712   244M Linux filesystem
/dev/nvme0n1p3 1550336 2000409230 1998858895 953,1G Linux filesystem


Disk /dev/mapper/sda3_crypt: 953,1 GiB, 1023413657088 bytes, 1998854799 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/mint--vg-root: 951,2 GiB, 1021388521472 bytes, 1994899456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/mint--vg-swap_1: 1,9 GiB, 2021654528 bytes, 3948544 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

高清参数:

$ sudo hdparm -Tt --direct /dev/nvme0n1

/dev/nvme0n1:
 Timing O_DIRECT cached reads:   1952 MB in  2.00 seconds = 976.68 MB/sec
 Timing O_DIRECT disk reads: 2226 MB in  3.00 seconds = 741.09 MB/sec

$ sudo hdparm -Tt /dev/nvme0n1

/dev/nvme0n1:
 Timing cached reads:   16664 MB in  1.99 seconds = 8352.90 MB/sec
 Timing buffered disk reads: 2296 MB in  3.00 seconds = 765.09 MB/sec

LSB_释放:

$ lsb_release -a
LSB Version:    core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: LinuxMint
Description:    Linux Mint 18.1 Serena
Release:    18.1
Codename:   serena

名称:

$ uname -a
Linux ricardo-ssd 4.4.0-128-generic #154-Ubuntu SMP Fri May 25 14:15:18 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

答案1

答案比我想象的要简单。该 SSD 是dd从另一台配备板载 AMD GPU 的笔记本电脑上取下的。

卸载旧的 Radeon 驱动程序后(遵循这些说明)启动时间恢复正常。

相关内容