MultiDrive – free backup, clone & wipe disk utility from Atola Technology

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: 64GB SATA SanDisk SSD reports 9PB of host writes
PostPosted: September 3rd, 2026, 14:03 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 17214
Location: Australia
I optimized my 1TB Crucial SATA SSD and observed an increase of 64.2MB in the Host Writes count.

    838GiB -- total size of C: volume
    142GiB -- free space in C: volume

    Host writes before optimize -- 0x17b8ed77f
    Host writes after optimize -- 0x17b90c19f

    0x17b90c19f - 0x17b8ed77f = 125472
    (0x17b90c19f - 0x17b8ed77f) x 512 bytes = 64.2 MB

I confirmed that the units for the Host Writes attribute were single sectors by writing a 1.3GB file and comparing the before-and-after counts.

The OS was Windows 10.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: 64GB SATA SanDisk SSD reports 9PB of host writes
PostPosted: September 3rd, 2026, 14:59 
Offline
User avatar

Joined: May 13th, 2019, 7:50
Posts: 1196
Location: Nederland
And one TRIM command generates at least 1 sector worth of host writes. AFAIK per command max 2 GB can be trimmed. To TRIM his 64 GB drive 32 sectors worth of host writes would be required, if I understand and remember correctly.

_________________
Joep - http://www.disktuna.com - video & photo repair & recovery service


Top
 Profile  
 
 Post subject: Re: 64GB SATA SanDisk SSD reports 9PB of host writes
PostPosted: September 3rd, 2026, 15:45 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 17214
Location: Australia
The ATA standard defines DATA SET MANAGEMENT (06h) and DATA SET MANAGEMENT XL (07h) commands.

For the former ...

    63:48 RANGE LENGTH field
    47:0 LBA VALUE field

For the latter ...

    127:64 RANGE LENGTH field
    63:48 Reserved
    47:0 LBA VALUE field

My take on the SMART Host Writes attribute is that it counts ATA WRITE SECTOR(S) commands (30h). If that's the case, then TRIM commands should not affect this counter. If this were not the case, then READ SECTOR(S) commands (20h) would also increment the Host Writes counter.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: 64GB SATA SanDisk SSD reports 9PB of host writes
PostPosted: September 3rd, 2026, 18:46 
Offline
User avatar

Joined: May 13th, 2019, 7:50
Posts: 1196
Location: Nederland
Read sector does not send 512 bytes of data to the drive, TRIM does. It provides a "map" of LBA ranges to be trimmed, a range list as a data block. I think this is what's going on and why it is counted as host write.

_________________
Joep - http://www.disktuna.com - video & photo repair & recovery service


Top
 Profile  
 
 Post subject: Re: 64GB SATA SanDisk SSD reports 9PB of host writes
PostPosted: September 4th, 2026, 1:31 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 17214
Location: Australia
Arch Stanton wrote:
Read sector does not send 512 bytes of data to the drive, TRIM does. It provides a "map" of LBA ranges to be trimmed, a range list as a data block. I think this is what's going on and why it is counted as host write.

Oops, brain fart. I was thinking of SMART READ LOG commands and confused myself. I wonder if IDENTIFY DEVICE increments the host reads counter for the same reason?

_________________
A backup a day keeps DR away.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group