<div dir="ltr">Hi Alain<div><br></div><div>An alternative might be to use the 'isolcpus=' kernel commandline parameter to isolate</div><div>all cpus above 0 from the scheduler. When you want to run a task on one of these cpus start it</div>
<div>with the 'taskset' command.</div><div><br></div><div>Regards</div><div>Paul</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 July 2013 21:51, Alain Williams <span dir="ltr"><<a href="mailto:addw@phcomp.co.uk" target="_blank">addw@phcomp.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am running Centos 6, I wish to tweak something under /sys on boot, what is the<br>
best way of doing it ?<br>
<br>
If I want to initialise something under /proc I can put it into /etc/sysctl.conf<br>
--- is there something equivalent for /sys ?<br>
<br>
OK: I can always write my own init script, but ....<br>
<br>
What I want to achieve is:<br>
<br>
    echo 1 > /sys/devices/system/cpu/sched_smt_power_savings<br>
<br>
which will:<br>
<br>
    One core will be filled with tasks before tasks will be moved to other<br>
    cores. The idea is to concentrate the running tasks on a relatively small<br>
    number of cores, allowing the others to remain idle.<br>
<br>
Tia<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Alain Williams<br>
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.<br>
+44 (0) 787 668 0256  <a href="http://www.phcomp.co.uk/" target="_blank">http://www.phcomp.co.uk/</a><br>
Parliament Hill Computers Ltd. Registration Information: <a href="http://www.phcomp.co.uk/contact.php" target="_blank">http://www.phcomp.co.uk/contact.php</a><br>
#include <std_disclaimer.h><br>
<br>
_______________________________________________<br>
GLLUG mailing list<br>
<a href="mailto:GLLUG@mailman.lug.org.uk">GLLUG@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/gllug" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/gllug</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Tel: +44 79 8532 7353<div>LinkedIn: <a href="http://uk.linkedin.com/pub/paul-hewlett/0/629/9b4" target="_blank">http://uk.linkedin.com/pub/paul-hewlett/0/629/9b4</a></div>
<div><br></div><div><br></div>
</div>