zzz0xxx
V2EX  ›  问与答

[求救] Mac 安装系统到外置硬盘, SWAP 没有启用

  •  
  •   zzz0xxx · Aug 9, 2024 · 1067 views
    This topic created in 670 days ago, the information mentioned may be changed or developed.

    如图,交换一直是 0 字节 内存

    找到一篇相关的文章:Mac OS X is not creating a swap file

    大概看了一下,里面基本是说 VM 分区没有挂载导致的,但是在 14.6.1 的系统版本上,这个 VM 已经正确挂载了

    # mount
    /dev/disk6s5 on /System/Volumes/VM (apfs, local, noexec, journaled, noatime, nobrowse)
    
    # diskutil ap list
    |   +-> Volume disk6s5 30C948FD-936F-45EA-AFA0-C38FFF6D6EB5
    |       ---------------------------------------------------
    |       APFS Volume Disk (Role):   disk6s5 (VM)
    |       Name:                      VM (Case-insensitive)
    |       Mount Point:               /System/Volumes/VM
    |       Capacity Consumed:         20480 B (20.5 KB)
    |       Sealed:                    No
    |       FileVault:                 No
    

    请问有哪位 V 友解决过这个问题吗?

    系统:Sonoma (14.6.1)

    1 replies
    zzz0xxx
        1
    zzz0xxx  
    OP
       Aug 9, 2024
    破案了,原来是内存压力不够,写了个小程序给内存上压力后,它就使用 SWAP 了

    ![image]( )
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4628 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 05:35 · PVG 13:35 · LAX 22:35 · JFK 01:35
    ♥ Do have faith in what you're doing.