|  | UltraDefrag Handbook 7.1.2

Tips and Tricks

# Performance

### How to improve system performance

First of all, we recommend to disable the Windows paging file. It expands RAM, but works much slower. If you need more memory than physically installed, buy more for the best performance.

Then, it's a good idea to keep system files as close as possible to the beginning of the disk because of higher speed of that area. The best way to do it is to repartition the disk once and use the first partition for system files and the second one for backups, videos, music and other stuff more tolerant for slower access.

### How frequently to defragment

Defragment files whenever you believe their fragmentation slows down your system. It really does make sense to defragment the system drive from time to time and optimize it after massive updates. On the other hand, data drives rarely benefit from defragmentation, especially when they are filled by music and videos.

In case of highly fragmented drives, no matter what is fragmented, files or free space, we recommend to run the full optimization instead of regular defragmentation as it usually leads to better results. If neither defragmentation nor optimization are able to reduce fragmentation significantly in most cases it simply means you haven't enough free space on the disk, so it's time for a cleanup.

### The best environment for UltraDefrag

The program shows the best performance being launched at Windows boot where no concurrent processes are running. Nothing interrupts its flow and no applications are locking files preventing their movements.

On the other hand, when your system is in use, some files, being locked by running applications, drop down UltraDefrag performance. Due to this reason we recommend to optimize entire disks at Windows boot rather than on a fully running system. Slightly better results can be achieved in Windows safe mode, but at boot they're always the best.

Note
  You should disable your virus detection software before defragmentation, because otherwise it will be extremely slow. If your antivirus program allows to exclude processes from being monitored, you might exclude UltraDefrag instead of disabling it completely.

Regardless of environment remove temporary contents from disks before their optimization. This will shorten optimization time and lead to better results.

# Hardware

### Flash and SSD drives

Defragmentation of flash memory and solid state drives (SSD) is usually not necessary as those drives don't rely on physical movements of mechanical parts anyway. However, in case of heavily fragmented files defragmentation still does make sense as it improves performance of the file system itself. Also defragmentation can help to make files more recoverable.

### Floppy drives

Floppy drives defragmentation is not recommended, because it always reduces lifespan of the floppies.

### Checking the file system

Freshly used drives can be defragmented immediately; any drive, which has been in use for a long time without maintenance, should be checked for consistency first. Open a command prompt and type one of the following commands there:

:: check drive c: and repair it when needed
chkdsk C: /F /V
:: check drive c:, repair it and collect lost clusters
:: when needed (takes quite long, but is the safest)
chkdsk C: /R /F /V

### Parallel processing

Simultaneous defragmentation of multiple hard disks can save time.

For instance:

- Hard disk 1 contains partitions C: and D:
- Hard disk 2 contains partitions G: and H:

Start two UltraDefrag sessions simultaneously - one for partitions C: and D: and another one for G: and H: to save up to 50% of time (compared to the case when all four partitions are processed one by one). On the other hand, don't try to defragment partitions C: and D: simultaneously - they belong to the same physical disk, so their parallel processing will be pretty slow.

# Caveats

### How to prevent endless boot processing

We are trying to keep the program as reliable as possible, but some little chance still exists that its boot time interface will crash making it impossible to boot into Windows. So, for extra safety we recommend to automatically turn the program off for subsequent boots by inclusion of the boot-off command to the beginning of the boot time script.

### USN journal cleanup

Sometimes a fragmented USN journal prevents free space consolidation. Open an elevated command prompt and type the following commands there to clean it up:

:: query the journal parameters,
:: write them down to use later
fsutil usn queryjournal c:
:: delete the journal
fsutil usn deletejournal /n c:
:: now it's time to optimize the disk...
:: recreate the journal afterwards
fsutil usn createjournal m=33554432 a=4194304 c:

A reasonable value for the maximum size is 85MB for each 100GB of the disk space. The allocation delta should be between 1/8 and 1/4 of the maximum size. The default values are usually 32MB and 4MB respectively.