LINUX.ORG.RU

ext4 trim

 , ,


0

1
# fstrim / -v
/: 19227467776 bytes were trimmed
# fstrim / -v
/: 0 bytes were trimmed

И такое же после каждой перезагрузки, цифры не меняются. Причем кол-во якобы оттримленных байтиков превышает свободное место. Это нормально?

# hdparm -I /dev/sdb

/dev/sdb:

ATA device, with non-removable media
        Model Number:       SAMSUNG SSD PM830 mSATA 32GB            
        Serial Number:      S0XLNECC516120
        Firmware Revision:  CXM12D1Q
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
        Used: unknown (minor revision code 0x0039) 
        Supported: 8 7 6 5 
        Likely used: 8
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:   62533296
        LBA48  user addressable sectors:   62533296
        Logical  Sector size:                   512 bytes
        Physical Sector size:                   512 bytes
        device size with M = 1024*1024:       30533 MBytes
        device size with M = 1000*1000:       32017 MBytes (32 GB)
        cache/buffer size  = unknown
        Nominal Media Rotation Rate: Solid State Device
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 128, current value: 0                                                                                                                                                            
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6                                                                                                                                                       
             Cycle time: min=120ns recommended=120ns                                                                                                                                                                            
        PIO: pio0 pio1 pio2 pio3 pio4                                                                                                                                                                                           
             Cycle time: no flow control=120ns  IORDY flow control=120ns                                                                                                                                                        
Commands/features:                                                                                                                                                                                                              
        Enabled Supported:                                                                                                                                                                                                      
           *    SMART feature set                                                                                                                                                                                               
                Security Mode feature set                                                                                                                                                                                       
           *    Power Management feature set                                                                                                                                                                                    
           *    Write cache                                                                                                                                                                                                     
           *    Look-ahead                                                                                                                                                                                                      
           *    Host Protected Area feature set                                                                                                                                                                                 
           *    WRITE_BUFFER command                                                                                                                                                                                            
           *    READ_BUFFER command                                                                                                                                                                                             
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
                Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    64-bit World wide name
           *    WRITE_UNCORRECTABLE_EXT command
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Gen3 signaling speed (6.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Host-initiated interface power management
           *    Phy event counters
           *    DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
           *    SET MAX SETPASSWORD/UNLOCK DMA commands
           *    WRITE BUFFER DMA command
           *    READ BUFFER DMA command
           *    Data Set Management TRIM supported (limit 8 blocks)
Security: 
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        6min for SECURITY ERASE UNIT. 32min for ENHANCED SECURITY ERASE UNIT. 
Logical Unit WWN Device Identifier: 5002538043584d30
        NAA             : 5
        IEEE OUI        : 002538
        Unique ID       : 043584d30
Checksum: correct

★★★★★

Нормально.

Это просто вызов ioctl(FITRIM), т.е. файловая система сама решает, что тримить, при первом запуске это все незанятые блоки. И не запоминает между ребутами.

Adjkru ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.