Reply
Visitor
UDMA133
Posts: 3
Registered: ‎07-26-2012
0

SmartAlign hurts performance, align your 4K drives anyway.

[ Edited ]

SYSTEM:

Seagate ST1000DM003 1TB drive (4K sectors, SmartAlign)

Windows XP SP3

 

Cloned older SATA 250GB drive to new 1TB drive.

(beginning of drive, 200GB partition, 9ms access times).

 

GENERAL: Responsiveness in WindowsXP was ok-ish, not what I expected going from a SATA-I 250GB drive to a fast SATA-III 1TB drive. Drive speeds tested fine in HD Tune.

HIBERNATE: putting the PC in hibernate (2GB RAM in use) was *SLOW*, resuming was *REALLY SLOW*
(more than 1 minute, probably around 2 or 3 minutes).

 

Defragged the hibernation file, toyed around a bit with SATA drivers etc.

(although this shouldn’t be a problem, hibernate was fast enough with the old 250GB drive).

 

I couldn’t figure out why this hibernate thing was so slow, so after trying many things I aligned the drive with Paragon Alignment software.

(after checking the partitions weren’t aligned with Disk Alignment Test, nice tool).

 

Lo and behold, hibernate works fast again! Like it used to with the older drive.

 

 

 

Conclusion: SmartAlign doesn’t solve all performance problems, align your 4K disks anyway!

 

Yottabyte
fzabkar
Posts: 4,688
Registered: ‎01-27-2009
0

Re: SmartAlign hurts performance, align your 4K drives anyway.

@UDMA133, ISTM that several of your observations are the opposite of what one would expect if the partition were misaligned. Other observations don't make sense irrespective of the alignment.

My first query would be in respect of the large variation in wakeup times. I'm assuming that most of this time is involved with reading the HIB.SYS file from the HDD and writing it to RAM, without any significant system overhead. Conversely, I'm assuming that the majority of the hibernate time involves reading from RAM and writing to disc. You state that your data are located at the outer zones of the drive, in which case the sustained data transfer rate would be about 200MB/s (the Product Manual specifies 210MB/s). Therefore, if my assumptions are correct, reading a 2GB file would require about 10 seconds. Furthermore, Microsoft's documentation suggests that the HIB.SYS file is compressed, in which case we might expect that this time would be reduced to 5 seconds. Your figures of 1 minute, or 3 minutes, appear to be much too high. In any case, one would expect that these numbers would be consistent and repeatable, without the kind of wild variation that you have observed.

You state that "putting the PC in hibernate was *SLOW*, resuming was *REALLY SLOW*". In other words you are saying that writing the HIB.SYS file was much faster than reading it. In fact this is exactly the opposite of what one would expect of a misaligned partition. An Advanced Format HDD suffers no performance penalty when reading a partial physical sector. OTOH, writing a partial sector involves a read-modify-write cycle, which necessitates an additional rotation of the platters. This results in a significant drop in write performance.

Nevertheless, after applying Paragon's alignment utility, you say that "hibernate works fast again! Like it used to with the older [250GB] drive". So, how fast is fast, and is the new drive faster than the old one? Can you give us some actual numbers? What is your new drive's firmware version, CC4x or CC9x?

Visitor
UDMA133
Posts: 3
Registered: ‎07-26-2012
0

Re: SmartAlign hurts performance, align your 4K drives anyway.

I can understand your skepticism. It doesn't seem logical to me, but only after 4K aligning the drive, the hibernation performance was normal again.

 

The speed (MB/s) and seconds you mention might be a bit theoretical. Do you with what block size WinXP writes or reads the hibernation file? I don't.

 

Yes, the times were much too high. Putting the system into hibernation should take maybe 10 to 30 secs (4GB RAM usage max). Before aligning, it was much more.

Resuming from hibernation was even slower. Weird, i know, considering it is *reading* the file.


After trying many things, i resorted to the alignment software and couldn't believe it fixed the slow hibernation, but it did. 

 

Nope, don't have any stopwatch timings for you. Just sharing my experience.

 

BTW

- the Windows XP hibernation file is not compressed. It's size is equal to the amount of RAM installed.

 

- firmware is CC4H, updated from CC4C.

 

Yottabyte
fzabkar
Posts: 4,688
Registered: ‎01-27-2009
0

Re: SmartAlign hurts performance, align your 4K drives anyway.

Microsoft's documentation does state that the amount of disc space allocated to the HIB.SYS file matches the system RAM. However, this doesn't necessarily mean that the entire space is utilised.

You could test whether the HIB.SYS file is compressed by using a hex editor such as HxD to cut a 10MB chunk from near the beginning of the file, and then use a tool such as WinZip or WinRAR to compress this chunk.

Another test would be to create a 1.5GB RAM disk, fill it with zeros (perfectly compressible data), and then measure the hibernate and wakeup times. Do this again after filling the RAM disk with incompressible files such as ZIPs and JPGs. If the HIB.SYS file is compressed, then the first test should execute much faster than the second.