Zonemider

Aus Bjoerns-wiki
Version vom 6. Mai 2017, 16:19 Uhr von Bjoern (Diskussion | Beiträge)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche
  • Version checken
  • ist es als paket istalliert
  • platte für modect mounten

vstarcam

  • ptz einrichten
  • reset einrichten

https://koshka.ddns.net/?p=194


cgroups

    mkdir -p /sys/fs/cgroup/cpuset/littlecores /sys/fs/cgroup/cpuset/bigcores
    echo "0-3" > /sys/fs/cgroup/cpuset/littlecores/cpuset.cpus
    echo "0"> /sys/fs/cgroup/cpuset/littlecores/cpuset.mems
    chmod -R 777 /sys/fs/cgroup/cpuset/littlecores
    echo "4-7"> /sys/fs/cgroup/cpuset/bigcores/cpuset.cpus
    echo "0"> /sys/fs/cgroup/cpuset/bigcores/cpuset.mems
    chmod -R 777 /sys/fs/cgroup/cpuset/bigcores
sudo wget -O /etc/systemd/system/cpuset.service https://raw.githubusercontent.com/mad-ady/odroid-xu4-optimizations/master/cpuset.service

[Unit] Description=Setup big/little cgroups Before=sysinit.target After=local-fs.target DefaultDependencies=no

[Service] Type=oneshot

  1. ExecStart=/bin/sh -c '/bin/mkdir -p /sys/fs/cgroup/cpuset/littlecores /sys/fs/cgroup/cpuset/bigcores; /bin/echo "0-3" > /sys/fs/cgroup/cpuset/littlecores/cpuset.cpus; /bin/echo "4-7"> /sys/fs/cgroup/cpuset/bigcores/cpuset.cpus'

ExecStart=/bin/true ExecStartPost=-/bin/mkdir -p /sys/fs/cgroup/cpuset/littlecores /sys/fs/cgroup/cpuset/bigcores ExecStartPost=-/bin/sh -c '/bin/echo "0-3" > /sys/fs/cgroup/cpuset/littlecores/cpuset.cpus' ExecStartPost=-/bin/sh -c '/bin/echo "0"> /sys/fs/cgroup/cpuset/littlecores/cpuset.mems' ExecStartPost=-/bin/sh -c '/bin/chmod -R 777 /sys/fs/cgroup/cpuset/littlecores' ExecStartPost=-/bin/sh -c '/bin/echo "4-7"> /sys/fs/cgroup/cpuset/bigcores/cpuset.cpus' ExecStartPost=-/bin/sh -c '/bin/echo "0"> /sys/fs/cgroup/cpuset/bigcores/cpuset.mems' ExecStartPost=-/bin/sh -c '/bin/chmod -R 777 /sys/fs/cgroup/cpuset/bigcores'

[Install] WantedBy=sysinit.target


systemctl enable cpuset
systemctl start cpuset

in Datei nano /etc/systemd/system/multi-user.target.wants/zoneminder.service

   ExecStartPost=-/bin/sh -c 'echo $MAINPID | tee -a /sys/fs/cgroup/cpuset/littlecores/tasks'