Test Case Index

Test Case source

NO_HZ_FULL

Test CPU Isolation with NOHZ and CPUSETS on Linaro Ubuntu and OpenEmbedded builds. The test can isolate upto (N-1) CPU's from list of N CPU's isolating it from other background kernel activities and run user provided task (default 'stress') on the isolated CPU(s) and figures out if CPU's are isolated or not by reading 'cat /proc/ interrupts' for all interrupts. ISOL_CPU, ITERATIONS and ISOL_MIN are set to 1, 5 and 10 respectively by default which can be changed via JSON file. NOTE: Kernel configuration needed to run this test +CONFIG_NO_HZ_FULL=y +CONFIG_NO_HZ_FULL_ALL=y +CONFIG_CGROUPS=y +CONFIG_CPUSETS=y

Example JSON job file

{
    "device_type": "arndale",
    "health_check": false,
    "job_name": "example NO_HZ_FULL",
    "timeout": 1800
    "actions": [
        {
            "command": "deploy_linaro_image",
            "parameters": {
                "image": "<IMAGE_URL>"
            }
        },
        {
            "command": "lava_test_shell",
            "parameters": {
                "testdef_repos": [
                    {
                        "git-repo": "git://git.linaro.org/qa/test-definitions.git",
                        "testdef": "ubuntu/nohz-isolation.yaml"
                    }
                ],
                "timeout": 900
            }
        },

        {
            "command": "submit_results",
            "parameters": {
                "server": "http://username@your.lava.server/RPC2/",
                "stream": "/your/bundle/stream/",
                "token": "<your_token>"
            }
        }
    ],
}

Platform/QA/TestCases/Automated/ubuntu_NO_HZ_FULL (last modified 2016-03-30 19:33:39)