9.3.4.2. 분할된 시스템에서 여러 로드 시뮬레이션
격리되지 않은 CPU 세트에서 rteval 로드 생성기를 시작합니다. 다음으로 isolcpus 세트의 일부에서 고속 데이터베이스 컨테이너와 같은 처리량이 높은 애플리케이션을 시뮬레이션합니다. 이 예에서 CPU 7-28은 고속 데이터베이스 컨테이너를 나타내는 데 사용됩니다. 별도의 터미널 세션에서 다음 명령을 실행하여 부하를 시작합니다.
$ podman run -it --rm --privileged --pids-limit=0 --cpuset-cpus 0-6 registry.redhat.io/rhel10/rteval \
/bin/bash -c 'rteval --duration 2h --onlyload --loads-cpulist 0-6'
그런 다음 별도의 터미널에서 분리된 CPU의 하위 집합에서 일부 부하를 생성합니다.
$ podman run -it --rm --privileged --pids-limit=0 --cpuset-cpus 20-30 registry.redhat.io/rhel10/rteval \
/bin/bash -c 'rteval --duration 2h --onlyload --loads-cpulist 20-30'
이제 나머지 CPU에서 측정 스레드를 실행하려면 다음 두 가지 옵션이 있습니다. 분리된 CPU의 나머지 두 하위 집합을 배포하여 컨테이너를 분리하거나 나머지 CPU 하위 집합을 모두 사용하는 단일 측정 컨테이너를 실행할 수 있습니다.
옵션 1: 두 개의 측정 컨테이너 배포
$ podman run -it --rm --privileged --pids-limit=0 --cpuset-cpus 7-19 registry.redhat.io/rhel10/rteval \ /bin/bash -c 'rteval --duration 2h --noload --measurement-cpulist 7-19'$ podman run -it --rm --privileged --pids-limit=0 --cpuset-cpus 31-47 registry.redhat.io/rhel10/rteval \ /bin/bash -c 'rteval --duration 2h --noload --measurement-cpulist 31-47'옵션 2: 단일 측정 컨테이너 배포
$ podman run -it --rm --privileged --pids-limit=0 --cpuset-cpus 7-19,31-47 registry.redhat.io/rhel10/rteval \ /bin/bash -c 'rteval --duration 2h --noload --measurement-cpulist 7-19,31-47'