Mayastor core isolation #8258
Replies: 5 comments 4 replies
-
Can you point us towards the thing which you couldn't apply to Talos Linux? |
Beta Was this translation helpful? Give feedback.
-
If I understood correctly in its docs, Mayastor would prefer to have two isolated cores to work without conflicts with other workload. I don't see a way to isolate and assign those cores in Talos. My motivation: After getting Mayastor running, I discovered, it fully utilizes two cores, probably the p-cores, and drives them into maximum turbo frequency. This results in a high power consumption and I don't want that for a permanently running system. So I would like to try assigning two e-cores to eventually reduce consumption significantly. As a workaround, I currently have the turbo feature of the CPU disabled, keeping frequencies low and consumption in a reasonable range. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the new lead! I will give it a try and report back. The exclusive cores are mentioned in the Mayastor docs, right in the General section: |
Beta Was this translation helpful? Give feedback.
-
Hello @matthiasarndt7 , I have been able to force
Once done, I just had to follow the Mayastor documentation by using I hope it will help you and others. Anyway, it is not related to Talos Linux as mentionned above. By the way, thanks to all contributors :-) |
Beta Was this translation helpful? Give feedback.
-
I'm finally done experimenting. Here are my results: With the Kubelet approach, I was not able to push the Mayastor pods to a specific set of CPUs. I tried to reserve CPU 0-3 (P-Cores) for Kubelet and system but no change was noticeable. I could not find a way to check the per core usage to be really sure. So, my indicator was power consumption, which did not change. This makes me believe, Mayastor still used the P-Cores somehow. But what actually works is the extraKernelArgs approach together the core assignment as described in the Mayastor Docs. Thanks for putting me on the right path! Here is the MachineConfig patch:
To assign cores to Mayastor I used the following command. The command in the docs did not work for me.
Now I could clearly see a significant drop in power consumption, as the E-Cores are utilized. If you want to do this on a Secure Boot system, as I do, you need to inject the kernel arguments directly in the Talos image using the Image Factory. The kernel arguments in MachineConfig are ignored in the Secure Boot environment.
|
Beta Was this translation helpful? Give feedback.
-
I'm currently building a Talos cluster, 3 nodes, as a home server. As I need persistent storage for things like Nextcloud, I want to use Mayastor, as recommended in the Talos docs.
Installation worked and Mayastor is running. But I have not been able to find a way reserving dedicated cores, as the Mayastor docs suggest.
How can I do this? Is it possible to run Mayastor on specific cores? My idea is, using only e-cores to eventually reduce power consumption.
Beta Was this translation helpful? Give feedback.
All reactions