You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `hardware offload enabled` configuration option allows integrated offloading and acceleration with validated solutions from partners. For more information, see [Integrated offloading and acceleration](../../relational-databases/integrated-acceleration/overview.md).
24
-
25
-
This is an advanced option.
23
+
The `hardware offload enabled` configuration option allows integrated acceleration and offloading with validated solutions from partners. For more information, see [Integrated acceleration and offloading](../../relational-databases/integrated-acceleration/overview.md).
title: "View or Configure the backup compression algorithm Server Configuration Option | Microsoft Docs"
3
+
description: 'Find out about the "backup compression algorithm" option. See how it determines the algorithm to use for backup compression, and learn how to set it.'
# View or configure the backup compression algorithm Server Configuration Option
17
+
18
+
[!INCLUDE [SQL Server 2022](../../includes/applies-to-version/sqlserver2022.md)]
19
+
20
+
This topic describes how to view or configure the **backup compression algorithm** server configuration option in [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] with [!INCLUDE[tsql](../../includes/tsql-md.md)]. The **backup compression algorithm** option determines which algorithm to use to set the backup.
21
+
22
+
The `backup compression algorithm` configuration option is required for you to implement [integrated acceleration and offloading solutions](../../relational-databases/integrated-acceleration/use-integrated-acceleration-and-offloading.md).
23
+
24
+
## <aname="BeforeYouBegin"></a> Before You Begin
25
+
26
+
### <aname="Restrictions"></a> Limitations and Restrictions
Execute permissions on **sp_configure** with no parameters or with only the first parameter are granted to all users by default. To execute **sp_configure** with both parameters to change a configuration option or to run the RECONFIGURE statement, a user must be granted the ALTER SETTINGS server-level permission. The ALTER SETTINGS permission is implicitly held by the **sysadmin** and **serveradmin** fixed server roles.
36
+
37
+
## To view the backup compression algorithm option
38
+
39
+
1. Connect to the [!INCLUDE[ssDE](../../includes/ssde-md.md)].
40
+
41
+
2. From the Standard bar, click **New Query**.
42
+
43
+
3. Copy and paste the following example into the query window and click **Execute**. This example queries the [sys.configurations](../../relational-databases/system-catalog-views/sys-configurations-transact-sql.md) catalog view to determine the value for `backup compression algorithm`. A value of 0 means that backup compression is off, and a value of 1 means that SQL Server will use the default backup compression algorithm (MS_XPRESS). A value of 2, means that SQL Server will use Intel® QAT backup compression algorithm.
44
+
45
+
```sql
46
+
SELECT value
47
+
FROMsys.configurations
48
+
WHERE name ='backup compression algorithm' ;
49
+
GO
50
+
```
51
+
52
+
## To configure the backup compression default option
53
+
54
+
1. Connect to the [!INCLUDE[ssDE](../../includes/ssde-md.md)].
55
+
56
+
2. From the Standard bar, click **New Query**.
57
+
58
+
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](../../relational-databases/system-stored-procedures/sp-configure-transact-sql.md) to configure the server instance to use Intel® QAT as the default compression algorithm:
For more information, see [Server Configuration Options (SQL Server)](../../database-engine/configure-windows/server-configuration-options-sql-server.md).
At installation, backup compression is off by default. The default behavior for backup compression is defined by the **backup compression default** Option server-level configuration option. However, you can override the server-level default when creating a single backup or scheduling a series of routine backups. To change the server-level default, see [View or Configure the backup compression default Server Configuration Option](../../database-engine/configure-windows/view-or-configure-the-backup-compression-default-server-configuration-option.md).
At installation, backup compression is off by default. The **backup compression default** server-level configuration option sets the default behavior for backup compression. However, you can override the server-level default when creating a single backup or scheduling a series of routine backups. To change the server-level default, see [View or Configure the backup compression default Server Configuration Option](../../database-engine/configure-windows/view-or-configure-the-backup-compression-default-server-configuration-option.md).
18
20
19
21
## Use integrated acceleration and offloading
20
22
21
-
Beginning with [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)], use [Integrated offloading and acceleration](../integrated-acceleration/overview.md) to compress backups with Intel® QuickAssist Technology.
23
+
Beginning with [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)], use [Integrated acceleration and offloading](../integrated-acceleration/overview.md) to compress backups with Intel® QuickAssist Technology.
22
24
23
25
## Override the Backup Compression Default
24
26
You can change the backup compression behavior for an individual backup, backup job, or log shipping configuration.
[!INCLUDE [sssql22-md](../../includes/sssql22-md.md)] provides a framework for offloading specific SQL Server workload compute to hardware devices.
18
18
19
19
This article explains offloading and acceleration to hardware devices.
20
20
21
-
-[!INCLUDE [sssql22-md](../../includes/sssql22-md.md)]integrates [Intel® QuickAssist Technology (QAT)](https://www.intel.com/content/www/us/en/developer/topic-technology/open/quick-assist-technology/overview.html). You can offload backup compression with Intel® QAT to reduce CPU usage, backup completion times, and reduce storage consumption. To back up or restore databases with accelerated compression, install Intel® QAT drivers. For specific information and instructions to use with SQL Server, see [Configure Intel® QuickAssist Technology (QAT)](intel-quickassist.md).
21
+
[!INCLUDE [sssql22-md](../../includes/sssql22-md.md)]enables integrated offloading and acceleration with [Intel® QuickAssist Technology (QAT)](https://www.intel.com/content/www/us/en/developer/topic-technology/open/quick-assist-technology/overview.html). You can offload backup compression with Intel® QAT to reduce CPU usage, backup completion times, and reduce storage consumption. To back up or restore databases with accelerated compression, install Intel® QAT drivers. For specific information and instructions to use with SQL Server, see [Configure Intel® QuickAssist Technology (QAT)](use-integrated-acceleration-and-offloading.md).
22
22
23
-
## Use case - Backup and restore operations
23
+
## Back up and restore databases
24
24
25
-
One use case for integrated offloading and acceleration is [backup compression](../backup-restore/backup-compression-sql-server.md). Compression speeds up backup and restore operations, and saves space. Compression also consumes CPU resources which may impact application performance. Because Intel® QAT is an integrated offloading and acceleration solution, you can use it to back up and restore databases with compression, and reduce the load compression places on the CPU.
25
+
One use case for integrated acceleration and offloading is [backup compression](../backup-restore/backup-compression-sql-server.md). Compression speeds up back up and restore operations, and saves space. Compression also consumes CPU resources which may impact application performance. Because Intel® QAT is an integrated acceleration and offloading solution, you can use it to back up and restore databases with compression, and reduce the load compression places on the CPU.
26
26
27
27
Backup compression is enabled by including the COMPRESSION keyword for BACKUP T-SQL commands, and is now available with an ALGORITHM parameter to choose between MS_XPRESS (default) and QAT_DEFLATE. For information about how to compress backups, see [Configure Backup Compression (SQL Server)](../backup-restore/configure-backup-compression-sql-server.md).
28
28
29
-
## Enable integrated offloading and acceleration
29
+
## Edition specific capabilities
30
30
31
-
Before you can use integrated offloading and acceleration, you need to configure the instance of SQL Server. Before you complete this section, install the drivers for your accelerator.
31
+
Integrated acceleration and offloading are supported starting with [!INCLUDE[sssql22-md](../../includes/sssql22-md.md)] on Windows.
32
32
33
-
1. Set the server configuration option `hardware offload enabled` to `1` to enable all SQL Server accelerators. By default, this setting is `0`. This setting is an advanced configuration option. To set this setting, run the following commands:
33
+
- Enterprise edition supports hardware offloading - can use a physical device. If no device is available, it falls back to software based compression.
34
34
35
-
```sql
36
-
sp_configure 'show advanced options', 1;
37
-
GO
38
-
RECONFIGURE
39
-
GO
40
-
41
-
sp_configure 'hardware offload enabled', 1;
42
-
GO
43
-
RECONFIGURE
44
-
GO
45
-
```
35
+
- Standard edition supports software compression. Standard edition does not offload to hardware even if a device is available.
46
36
47
-
Changing this configuration option requires a restart of SQL Server service to take effect.
37
+
- Express edition allows compressed backups to be restored if the drivers are available. All editions lower than SQL Server Standard edition will only allow backups to be performed with the default MS_XPRESS algorithm.
48
38
49
-
> [!NOTE]
50
-
> If `hardware offload enabled` option equals `0`, all offloading and acceleration is disabled, however the accelerator-specific configurations will persist.
51
-
52
-
1. Configure the server to use hardware offload for a specific accelerator. Run [ALTER SERVER CONFIGURATION](../../t-sql/statements/alter-server-configuration-transact-sql.md) to enable hardware acceleration. The following example sets this configuration for Intel® QAT.
53
-
54
-
```sql
55
-
ALTER SERVER CONFIGURATION
56
-
SET HARDWARE_OFFLOAD =ON (ACCELERATOR = QAT);
57
-
```
58
-
59
-
If your instance is Enterprise Edition, and you have the Intel® QAT device installed, it will use hardware by default, with software fallback. If you would prefer to only use software offloading, run the following configuration.
60
-
61
-
```sql
62
-
ALTER SERVER CONFIGURATION
63
-
SET HARDWARE_OFFLOAD =ON (ACCELERATOR = QAT, MODE = SOFTWARE)
64
-
```
65
-
66
-
Standard edition only supports software offloading. For more information on edition specifics, see [Edition specific capabilities](intel-quickassist.md#edition-specific-capabilities).
67
-
68
-
> [!TIP]
69
-
> You might specify software mode for your accelerator if you have higher computing resources and prefer higher backup performance over protecting the host systems compute resources.
70
-
71
-
1. Restart the SQL Server instance. You need to restart the SQL Server instance after you run a command to `SET HARDWARE_OFFLOAD = ...`.
72
-
73
-
## Disable offloading and acceleration
74
-
75
-
The following example disables hardware offloading and acceleration for an Intel® QAT accelerator.
76
-
77
-
```sql
78
-
ALTER SERVER CONFIGURATION
79
-
SET HARDWARE_OFFLOAD = OFF (ACCELERATOR = QAT);
80
-
```
39
+
> [!NOTE]
40
+
> Hardware is not required to successfully restore a previously compressed backup, regardless of the SQL Server edition. However, to back up or restore databases with accelerated compression, you must install product drivers.
81
41
82
42
## Limitations
83
43
84
-
Integrated offloading and acceleration requires Windows operating system. It is not available on Linux or containers.
44
+
Integrated acceleration and offloading are not available on Linux or containers.
0 commit comments