Skip to content

Instantly share code, notes, and snippets.

@djoreilly
djoreilly / ovs-cheat.md
Last active June 13, 2024 17:05
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl list interface vxlan-ac000344
ovs-vsctl --columns=options list interface vxlan-ac000344
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl -f csv --no-heading --columns=_uuid list controller
ovs-vsctl -f csv --no-heading -d bare --columns=other_config list port
@alexandrnikitin
alexandrnikitin / Disable CPU power saving on CentOS 7.sh
Last active May 20, 2021 03:20
Disable CPU power saving on CentOS 7
# disable power saving on CentOS 7
grep -E '^model name|^cpu MHz' /proc/cpuinfo
pgrep -lf ondemand
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do [ -f $CPUFREQ ] || continue; echo -n performance > $CPUFREQ; done
service cpuspeed stop
lsmod | grep ondemand
grep -E '^model name|^cpu MHz' /proc/cpuinfo
@jiewei-ke
jiewei-ke / 0.1911392-ext4-deadlock
Last active April 17, 2023 06:45
This gist repo is about an ext4 deadlock issue which may be happened when OOM killer is triggered on CentOS 7 with version after 3.10.0-862.el7.
# ext4 deadlock issue
## 0. Background
This gist repo is about an ext4 deadlock issue which may be happened when OOM
killer is triggered on CentOS 7 with version after 3.10.0-862.el7.
See https://bugzilla.redhat.com/show_bug.cgi?id=1911392 for more details.
## 1. How to reproduce this issue?