Developer Guide

  • 2022.1
  • 09/08/2022
  • Public
Contents

Step 4: Production: Apply Tuning Configuration

Imagine that you are now in the production phase. You will use the tuning configuration file generated in the preproduction phase to tune a production environment. For this demo, you will walk through the data streams optimizer production workflow, using the same target board as a proxy for a production environment.
  1. On the host system, go to the tools directory.
    cd ${TCC_TOOLS_PATH}
  2. Run the production tool to apply the tuning configuration to the target board. Replace
    <target_hostname>
    with the target name from environment file and
    <date>
    as appropriate.
    python3 tcc_data_streams_optimizer_prod.py --apply <target_hostname>/single_corepcierd_1_<date>/tuning_configuration.json --reboot
    where
    Option
    Description
    --apply <target_hostname>/single_corepcierd_1_<date>/tuning_configuration.json
    Apply the tuning from the specified configuration file.
    --reboot
    Reboot the target after applying the capsule. A reboot is required to apply the tuning configuration to the target system.
  3. The tool applies the configuration. Confirm that you see output similar to the example below.
    Applying capsule(s) for target... Capsule(s) were applied for target. Configuration ready. Rebooting target...
  4. To verify successful configuration, use the same command as in the previous step but change
    --apply
    to
    --verify
    , and remove
    --reboot
    .
    python3 ${TCC_ROOT}/tools/tcc_data_streams_optimizer_prod.py --verify <target_hostname>/single_corepcierd_1_<date>/tuning_configuration.json
    where
    Option
    Description
    --verify /usr/share/tcc_tools/<target_hostname>/single_corepcierd_1_<date>/tuning_configuration.json
    Verify the current tuning against the specified configuration file.
  5. The tool compares the tuning configuration file to the target’s current configuration. Confirm that you see output similar to the example below.
    Verifying that configuration was applied successfully... Configuration applied.
    In this release, the verification always passes.

Next Steps

You have confirmed that the tool is functioning properly. For your use case and workload, you will need to create your own input files, such as a workload validation script, requirements file, and environment file. Learn more about customizing the input files for your workload, starting in Create Input Files for Your Workload.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.