Managing and Customizing TuneD Profiles
TuneD is a system tuning service that provides profiles for optimizing system performance for various use cases.
The NVIDIA BaseOS software includes the nvidia-tuned-profiles package, which provides
pre-configured TuneD profiles optimized for different use cases on systems with NVIDIA hardware,
including NVIDIA DGX systems.
About NVIDIA TuneD Profiles
The nvidia-tuned-profiles package installs these profiles in
/usr/lib/tuned/profiles/. These profiles are categorized as follows:
Platform-Specific Performance Profiles
The following profiles are installed in /usr/lib/tuned/profiles/:
dgx-a100-performance,dgx-a800-performance- Optimized for DGX A100/A800 systemsdgx-h100-performance,dgx-h200-performance,dgx-h800-performance- Optimized for DGX H100/H200/H800 systemsdgx-b200-performance,dgx-b300-performance- Optimized for DGX B200/B300 systemsdgx-gb200-performance,dgx-gb200ws-performancedgx-gb300-performance,dgx-gb300ws-performancedgx-lpu30-performancedgx-r-nvl-8-performancedgx-spark-performancedgx-vera-cpu-rack-performancedgx-vr-nvl-72-performancedgx-vr-nvl-8-performance
Crashdump Profiles
dgx-a100-crashdump,dgx-a800-crashdump- Crashdump configuration for A100/A800 systemsdgx-h100-crashdump,dgx-h200-crashdump,dgx-h800-crashdump- Crashdump configuration for H100/H200/H800 systemsdgx-b200-crashdump,dgx-b300-crashdump- Crashdump configuration for B200/B300 systemsdgx-gb200-crashdump,dgx-gb200ws-crashdumpdgx-gb300-crashdump,dgx-gb300ws-crashdumpdgx-lpu30-crashdumpdgx-r-nvl-8-crashdumpdgx-spark-crashdumpdgx-vera-cpu-rack-crashdumpdgx-vr-nvl-72-crashdumpdgx-vr-nvl-8-crashdump
Base and Common Profiles
dgx-base- Base profile with common DGX profile metadatanvidia-base- Base profile with common NVIDIA CPU, bootloader, module, and network settingsnvidia-x86-64-performance- Performance profile for x86_64 architecturesnvidia-arm64-performance- Performance profile for ARM64 architecturesnvidia-crashdump-core- Core crashdump configurationnvidia-crashkernel-x86,nvidia-crashkernel-arm64- Architecture-specific crashkernel reservation profilesnvidia-no-mitigations- Disables CPU mitigations for better performancenvidia-pci-bridge-power- Keeps PCIe bridges upstream of A100/A800 GPUs powerednvidia-acs-disable- Sets thedisable-acs-redirkernel parameter for all devices that support Access Control Services (ACS) to force off PCI ACS redirect capabilities, allowing P2P traffic between devices through bridges without being forced upstream. This removes isolation between devices and can put more devices in an IOMMU group.
Understanding Profile Inheritance
Most NVIDIA profiles use the include directive to inherit settings from base profiles. This creates
a hierarchy where platform-specific profiles build upon common base configurations:
-
nvidia-base - Provides core NVIDIA settings including:
- CPU governor set to performance
- Network ARP tuning for better networking
- Kernel parameters
init_on_alloc=0andrd.auto=1 - Immediate loading or reloading of the
ib_umadmodule
-
dgx-base - Provides the common DGX profile foundation. Platform profiles include it so future shared DGX settings can be added in one place.
-
Platform profiles (for example,
dgx-h100-performance) - Include both nvidia-base and dgx-base, then add:- Platform-specific bootloader parameters
- Hardware-specific module parameters
- Console and IOMMU settings
Service overrides for Docker, nvidia-persistenced, and cachefilesd are not
managed by TuneD profiles. The nvidia-tuned-profiles package installs static systemd
vendor drop-ins under /usr/lib/systemd/system/<unit>.service.d/. Verify
these with systemctl cat <unit> rather than by looking for files in a TuneD
profile directory.
Listing Available TuneD Profiles
To view all available TuneD profiles on your system:
To view the currently active profile:
To verify that the current profile is properly applied:
To check the status of the TuneD service:
Creating Custom TuneD Profiles
When creating custom TuneD Profiles, be sure to use the best practices specified here: TuneD Profiles Best Practices.
The profile and configuration changes in the next sections are examples of how to customize TuneD parameters. They are not universally recommended for every platform type or workload; evaluate and test each change for your system.
Cloning and Modifying an Existing Profile
Use the following steps to clone an existing NVIDIA profile and modify it for your needs.
-
Identify the profile to clone by listing available profiles:
-
Create a new directory for your custom profile. Replace
<my-custom-profile>with the name for your profile: -
Copy the configuration from an existing profile. For example, to clone the
dgx-h100-performanceprofile:The original
dgx-h100-performanceprofile contains: -
Edit the custom profile configuration:
-
Modify settings as needed. For example, you can add custom network tuning or adjust kernel parameters:
-
Save the file and activate
<my-custom-profile>: -
Verify the profile is active:
Creating a Custom Profile from Scratch
If you need to create a completely custom profile rather than modifying an existing one:
The TuneD configuration below is only an example of how to set TuneD parameters. These settings are not universally recommended for every platform type or workload; evaluate and test each setting for your system.
-
Create a directory for your new profile. Replace
<my-custom-profile>with the name for your profile: -
Create a new
tuned.conffile: -
Input your profile configuration. Here is an example that builds on the
nvidia-baseandnvidia-no-mitigationsprofiles:Common profile sections and options:
- [main] - Profile metadata (summary, description)
- [cpu] - CPU-related settings (governor, energy policy)
- [sysctl] - Kernel parameters
- [bootloader] - Kernel boot parameters
- [disk] - Storage settings (readahead, scheduler)
- [vm] - Virtual memory settings
- [service] - Service enable/disable directives
- [script] - Custom scripts to run
-
Activate the new profile:
-
Verify that the profile is active and applied correctly:
Using TuneD Profile Merging
TuneD supports merging multiple profiles to combine their settings. This is useful when you want to combine the optimizations from multiple profiles without creating a completely new profile.
Applying Multiple Profiles
You can apply multiple profiles at once, and TuneD merges their configurations. Profiles are applied in order, with later profiles overriding settings from earlier ones.
TuneD merges profiles automatically without validating the logical consistency of the combined settings. Carefully review the profiles you are merging to avoid conflicting configurations. For example, combining a profile optimized for high throughput with one optimized for power saving could result in counterproductive settings.
-
Apply multiple profiles using the merge functionality:
Example - combining NVIDIA base settings with architecture-specific optimizations:
-
Verify the merged profile is active:
The output lists all active profiles, separated by spaces.
Creating a Profile that Includes Other Profiles
You can also create a custom profile that explicitly includes other profiles using the include directive:
-
Create a new custom profile directory:
-
Create a
tuned.conffile that includes other profiles: -
Use the
includedirective to merge base profiles and add customizations:In this example:
- The profile includes settings from both
dgx-baseandnvidia-x86-64-performance. - Additional custom settings are layered on top.
- Settings defined in this profile override those from included profiles.
- The profile includes settings from both
-
Activate the merged profile:
Common Profile Merge Examples
Example 1: Performance with security mitigations disabled
This combines the DGX H100 performance optimizations with CPU security mitigations disabled for maximum performance. Only use this in isolated, trusted environments.
Example 2: Base configuration with architecture-specific tuning
This creates a generic high-performance NVIDIA profile by combining:
- nvidia-base: Core NVIDIA settings (CPU governor, bootloader, module, and network tuning)
- nvidia-x86-64-performance: Architecture-specific optimizations for x86_64 systems
After applying, verify with:
Example 3: Crashdump-enabled profile
The crashdump profiles (like dgx-h100-crashdump) automatically include the base performance profile
and add crashdump configuration:
The crashdump profile includes the platform performance profile, shared panic
settings, and a distro-specific crashkernel profile. The exact crashkernel
reservation is therefore distro-specific; inspect the installed
nvidia-crashkernel-x86 or nvidia-crashkernel-arm64 profile rather than
copying a fixed value into a custom profile.
When merging profiles, settings from profiles listed later in the command override settings from earlier profiles. Plan your profile order accordingly.
Viewing Profile Contents
To examine the contents of a profile before using it:
-
View system-provided profiles:
For example, to view the
dgx-h100-performanceprofile:Expected output:
-
View custom profiles:
Example: Examining Key Profiles
nvidia-base profile - The foundation for most NVIDIA profiles:
dgx-a100-performance profile - Platform-specific configuration:
nvidia-crashdump-core profile - Crashdump configuration:
Disabling TuneD
If you need to disable TuneD, stop applying TuneD profile settings:
To re-enable TuneD:
Bootloader changes made by a profile take effect only after a reboot.
In addition, Docker, nvidia-persistenced, and cachefilesd overrides are
package-managed static systemd drop-ins and are not removed by
tuned-adm off.
Disabling Security Mitigations for Maximum Performance
The nvidia-no-mitigations profile disables CPU security mitigations, such as Spectre and Meltdown
protections, to maximize system performance. This section provides detailed instructions on when
and how to disable these mitigations safely.
Understanding Security Mitigations
Modern CPUs include hardware security vulnerabilities (such as Spectre, Meltdown, L1TF, MDS, and others) that allow potential side-channel attacks. The Linux kernel implements mitigations for these vulnerabilities, but these protections can reduce system performance by 5-30% depending on the workload.
Performance Impact:
- Memory-intensive workloads: 5-10% overhead
- System call-heavy workloads: 15-30% overhead
- GPU compute workloads: 3-8% overhead (varies by operation)
Security Considerations:
Disabling mitigations should only be done in environments where:
- Systems are physically isolated or on trusted networks
- No untrusted code or containers are executed
- Multi-tenant workloads are not running
- Maximum performance is critical and security risks are understood and accepted
Disabling CPU security mitigations removes protections against known CPU vulnerabilities including Spectre, Meltdown, L1TF, MDS, TAA, and others. Only disable mitigations in trusted, isolated environments where you control all code execution.
Using the nvidia-no-mitigations Profile
The nvidia-no-mitigations profile contains a simple configuration:
This adds the mitigations=off kernel parameter, which disables all CPU vulnerability mitigations.
Method 1: Applying nvidia-no-mitigations with Your Platform Profile
To combine your platform-specific profile with the no-mitigations setting:
-
Check your current active profile:
Example output:
Current active profile: dgx-h100-performance -
Apply your platform profile merged with nvidia-no-mitigations:
Replace
dgx-h100-performancewith your actual platform profile (for example,dgx-a100-performance,dgx-b200-performance, and so forth). -
Verify the profile is active:
Output should show:
Current active profile: dgx-h100-performance nvidia-no-mitigations -
Reboot the system for the kernel command line changes to take effect:
-
After reboot, verify the mitigations are disabled:
Verify that
mitigations=offappears in the output. -
Check the current mitigation status:
The output should indicate that mitigations are inactive, for example by displaying a Vulnerable status.
Method 2: Creating a Custom Profile with Mitigations Disabled
If you want to create a permanent custom profile that includes your platform settings and the packaged no-mitigations settings:
-
Create a custom profile directory:
-
Create the profile configuration:
-
Add the following configuration:
This profile inherits all settings from
dgx-h100-performanceandnvidia-no-mitigations. The latter adds themitigations=offkernel parameter. -
Activate the custom profile:
-
Verify the profile is active:
-
Reboot the system:
-
After reboot, verify mitigations are disabled as shown in Method 1.
Method 3: Selective Mitigation Disabling
If you want more granular control, you can disable specific mitigations instead of all of them:
-
Create a custom profile:
-
Configure selective mitigations:
Available options for selective disabling:
spectre_v2=off- Disable Spectre Variant 2 mitigationsspec_store_bypass_disable=off- Disable Spectre Variant 4 mitigationsl1tf=off- Disable L1 Terminal Fault mitigationsmds=off- Disable Microarchitectural Data Sampling mitigationstsx_async_abort=off- Disable TSX mitigationsnopti- Disable Page Table Isolation (Meltdown mitigation)
-
Activate the profile and reboot:
Verifying Mitigation Status
After disabling mitigations and rebooting, verify the configuration:
-
Check kernel command line:
Confirm that
mitigations=offor your specific mitigation parameters appear in the output. -
Check CPU vulnerability status:
Example output with mitigations disabled:
The
Vulnerablestatus indicates mitigations are disabled. -
Compare with enabled mitigations (for reference):
Example output with mitigations enabled:
Re-enabling Security Mitigations
If you need to re-enable security mitigations:
Method 1: Switch back to standard profile
Method 2: Remove nvidia-no-mitigations from merged profile
If you were using a merged profile:
Method 3: Delete custom profile
If you created a custom profile:
After rebooting, verify mitigations are enabled:
Confirm that Mitigation entries appear instead of a Vulnerable status.
Performance Testing Recommendations
When disabling mitigations, measure the actual performance impact for your specific workload:
-
Benchmark with mitigations enabled (baseline):
-
Benchmark with mitigations disabled:
-
Calculate the performance improvement:
- If improvement is < 5%, consider keeping mitigations enabled for security
- If improvement is > 10%, the trade-off can be worthwhile in trusted environments
- Document your findings and revisit the decision periodically
Practical Use Case Scenarios
Here are some common scenarios and recommended profile configurations.
Scenario 1: Standard Production DGX H100 System
For most production workloads, use the default platform profile:
This profile includes all necessary optimizations from nvidia-base and dgx-base.
Scenario 2: High-Performance GPU Training
For GPU training workloads requiring maximum performance, use the default platform profile:
This profile provides platform-specific optimizations including IOMMU settings, console configuration, and PCI settings optimized for DGX H100 systems.
To verify the profile is active:
Output: Current active profile: dgx-h100-performance
Scenario 3: High-Performance Inference Server
Create a custom profile optimized for inference workloads with low latency requirements:
Then activate:
Scenario 4: System with Crashdump Debugging Required
When you need to capture crash information for debugging:
This automatically configures crashkernel memory reservation and panic behavior.
Scenario 5: Multi-Node Training Cluster with Network Optimization
For distributed training across multiple nodes requiring network tuning:
Then activate:
TuneD Profiles Best Practices
- Always create custom profiles in
/etc/tuned/profiles/to avoid conflicts with package updates. - Test custom profiles on non-production systems before deploying to production.
- Use
tuned-adm verifyto ensure profiles are correctly applied. - Document any custom settings and the reasons for the changes.
- For platform-specific systems, start with the appropriate NVIDIA profile and customize as needed.
- Use profile merging when you want to combine features from multiple profiles.
- Monitor system performance after applying or changing profiles to ensure desired results.
- Remember that bootloader changes (in the
[bootloader]section) require a system reboot to take effect. - Use
tuned-adm profile_info <profile-name>for detailed information about what a profile does.
On detected DGX systems, nvidia-dgx-setup activates the appropriate
dgx-<platform>-performance profile during setup. If platform detection
is skipped or fails, no profile is activated. Verify the result with
sudo tuned-adm active during initial setup.
Additional Resources
For more information about TuneD configuration options and advanced usage, refer to:
- TuneD documentation:
man tunedandman tuned-adm - TuneD configuration guide:
man tuned.conf /usr/share/doc/tuned/directory for additional documentation