Skip to content

Instantly share code, notes, and snippets.

View silvernode's full-sized avatar

Mollusk silvernode

  • USA
View GitHub Profile
@silvernode
silvernode / C-states.md
Created February 11, 2019 06:14 — forked from wmealing/C-states.md
What are CPU "C-states" and how to disable them if needed?

To limit a CPU to a certain C-state, you can pass the processor.max_cstate=X option in the kernel line of /boot/grub/grub.conf.

Here we limit the system to only C-State 1:

    kernel /vmlinuz-2.6.18-371.1.2.el5 ... processor.max_cstate=1

On some systems, the kernel can override the BIOS setting, and the parameter intel_idle.max_cstate=0 may be required to ensure sleep states are not entered:

@silvernode
silvernode / build_wire_rpm.sh
Created September 4, 2017 10:51 — forked from soamaven/build_wire_rpm.sh
Bash script to create the rpm for the Wire Desktop app for fc26
# Make a temporary dir to hold downloaded files
mkdir ~/tempwire
cd ~/tempwire
# Get Wire Version
WIRE_VER=$(curl -s -N "https://github.com/wireapp/wire-desktop/releases.atom" | grep -o -m1 ".*Linux.*" | grep -Po "[0-9.]{9}");
# Get latest files from Connor Anderson's Git repo
git clone "https://gitlab.com/ConorIA/wire-builds/repository/archive.tar.gz?ref=master" ~/tempwire
# Get and sort the sources
sed -i "s/<VERSION>/${WIRE_VER}/" wire-desktop.spec