BS86
May 16, 2023, 5:01pm
32
chatGPT surely is convenient and I am still using the free GPT3 model. The paid model GPT4 is a lot better (I have access to the paid version at work):
well … I gave the task of writing the script to ChatGPT free model (chatGPT 3):
User
Write a Shell script that applies a configurable value, for example 'balance_power' to all threads of a system. The path is /sys/devices/system/cpu/cpufreq/policy6/energy_performance_preference
ChatGPT
Certainly! Here's a Shell script that applies a configurable value, such as 'balance_power', to all threads of a system by modifying the energy_performance_preference file for each CPU thread:
bash
#!/bin/b…