Skip to content

Commit

Permalink
Restricting CPU and Memory Usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Peeeeanut committed Jun 19, 2024
1 parent 148a546 commit 3dfaa59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 24-06-19/Restricting CPU and Memory Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ python3 /home/6eanut/tensorflow-test/benchmarks/perfzero/lib/benchmark.py --git_
限制CPU后的命令如下:

```
b
taskset -c 0-9 python3 /home/6eanut/tensorflow-test/benchmarks/perfzero/lib/benchmark.py --git_repos="https://github.com/tensorflow/models.git;benchmark" --python_path=models --gcloud_key_file_url="" --benchmark_methods=official.benchmark.resnet_ctl_imagenet_benchmark.Resnet50CtlBenchmarkSynth.benchmark_1_gpu
```

**`taskset`命令可以将进程绑定到特定的CPU核心上**
Expand Down

0 comments on commit 3dfaa59

Please sign in to comment.