You are here: Tool Design > Smart Disk Space

# Smart Disk Space

If disk drives that are relevant to Power Monitoring Expert or other applications on the computer run out of free space it could negatively impact the computer operation. The Configuration Manager includes a free disk space check to prevent this from happening.

Before the Configuration Manager saves a configuration to an archive or writes a configuration to a new PME 8.2 system, it calculates the disk space required to complete the operation, as well as the free disk space that would remain after the operation is complete.

The tool also checks whether the configuration is being written to a local disk, a network drive, or a removable disk. If it is a local disk, the tool uses a minimum threshold to determine whether or not to display a disk space warning. The default warning threshold value is 10 GB. If the expected remaining free disk space is less than this threshold, you are warned that there may not be sufficient free space left after the configuration is written.

Note: The Configuration Manager does not perform threshold checks on network drives or removable disks.

## Required disk space estimation

The Configuration Manager uses the following logic to estimate the required disk space:

Note: The Configuration Manager looks at both the .mdf and .ldf file sizes and adds them up for the estimation.

### Save to Archive

2x historical data (ION_Data + ION_Data archives) + 2x (unzipped archive + attachments)

### Write to System

Upgrade from 6.0.1:

Drive - PME Install | 1x historical data (ION_Data + ION_Data archives) + 2x unzipped archive folder
Drive - SQL Server Temp DB | 2x historical data (ION_Data + ION_Data archives)
Drive - PME Database | 2x historical data (ION_Data + ION_Data archives)

Upgrade from 7.2.2:

Drive - PME Install | 1x historical data (ION_Data + ION_Data archives) + 2x unzipped archive folder
Drive - SQL Server Temp DB | 1x historical data (ION_Data + ION_Data archives)
Drive - PME Database | 1x historical data (ION_Data + ION_Data archives)

Migration from 8.2:

Drive - PME Install | 1x historical data (ION_Data + ION_Data archives) + 2x unzipped archive folder
Drive - SQL Server Temp DB | 1x historical data (ION_Data + ION_Data archives)

## Changing the warning threshold value

You can change the default threshold value by editing the Configuration Manager's configuration file.

Note: Lowering the threshold value can render the disk space warning feature ineffective in preventing the system from running out of disk space.

To change the threshold value:

1. Close the Configuration Manager.
2. Navigate to the `...\<Configuration Manager extraction location>\Configuration Manager v2.1.0\Program Files\bin\` folder and then open `ConfigurationManager.Settings.xml` with an XML or text editor.
3. In the `DiskSpaceManagementThresholdsInBytes` tag, edit the `Warning` threshold value as required. Threshold values are in bytes.
4. Save and close the file.
5. Restart the Configuration Manager.