Restricting the amount of cores that YF runs on

Summary

In some environments you may need to restrict the number of CPU cores that Yellowfin is permitted to use at runtime. This article explains how to do this on both Linux and Windows. Note that restricting cores will limit Yellowfin's performance, as it is the equivalent of running the application on a smaller server.

Linux

Run the following command in a terminal to start Yellowfin using the taskset utility:

taskset --cpu-list 0-1 ./startup.sh

This starts Yellowfin on cores 0 and 1. Java will treat this as a 2-core machine. To use the first 4 cores instead, replace 0-1 with 0-3:

taskset --cpu-list 0-3 ./startup.sh

Windows

Run the following command in a Command Prompt window:

start /affinity 3 startup.bat

The value 3 is a bitmask representing the first 2 cores. To use the first 4 cores instead, replace 3 with F:

start /affinity F startup.bat


If you have any further questions on this article, contact Support with a new ticket or send us an email.

Is this article helpful?
0 0 0