[GLLUG] Initialising /sys

Paul Hewlett phewlett76 at gmail.com
Mon Jul 15 09:29:20 UTC 2013


Hi Alain

An alternative might be to use the 'isolcpus=' kernel commandline parameter
to isolate
all cpus above 0 from the scheduler. When you want to run a task on one of
these cpus start it
with the 'taskset' command.

Regards
Paul


On 14 July 2013 21:51, Alain Williams <addw at phcomp.co.uk> wrote:

> I am running Centos 6, I wish to tweak something under /sys on boot, what
> is the
> best way of doing it ?
>
> If I want to initialise something under /proc I can put it into
> /etc/sysctl.conf
> --- is there something equivalent for /sys ?
>
> OK: I can always write my own init script, but ....
>
> What I want to achieve is:
>
>     echo 1 > /sys/devices/system/cpu/sched_smt_power_savings
>
> which will:
>
>     One core will be filled with tasks before tasks will be moved to other
>     cores. The idea is to concentrate the running tasks on a relatively
> small
>     number of cores, allowing the others to remain idle.
>
> Tia
>
> --
> Alain Williams
> Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT
> Lecturer.
> +44 (0) 787 668 0256  http://www.phcomp.co.uk/
> Parliament Hill Computers Ltd. Registration Information:
> http://www.phcomp.co.uk/contact.php
> #include <std_disclaimer.h>
>
> _______________________________________________
> GLLUG mailing list
> GLLUG at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/gllug
>



-- 
Tel: +44 79 8532 7353
LinkedIn: http://uk.linkedin.com/pub/paul-hewlett/0/629/9b4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20130715/1ea27d96/attachment.html>


More information about the GLLUG mailing list