Skip to content

Instantly share code, notes, and snippets.

View greyltc's full-sized avatar
💭
I may be slow to respond.

M. Greyson Christoforo greyltc

💭
I may be slow to respond.
View GitHub Profile
$ sudo cpupower frequency-set -f 3000MHz
Setting cpu....
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
@greyltc
greyltc / gist:87849a1e154e6938dd881018587167e4
Created February 22, 2019 12:37
sudo cpupower frequency-info
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: Cannot determine or is not supported.
hardware limits: 2.20 GHz - 3.00 GHz
available frequency steps: 3.00 GHz, 2.80 GHz, 2.20 GHz
available cpufreq governors: userspace ondemand performance schedutil
current policy: frequency should be within 2.20 GHz and 3.00 GHz.
The governor "userspace" may decide which speed to use
root@piroute:~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
2: 336938 7015698 6937078 6520968 bcm2836-timer 1 Edge arch_timer
6: 13450 13387 13694 13579 ARMCTRL-level 1 Edge 3f00b880.mailbox
7: 0 0 1 0 ARMCTRL-level 2 Edge VCHIQ doorbell
15: 3293449 3330345 3280890 3305281 ARMCTRL-level 64 Edge dwc_otg, dwc_otg_pcd, dwc_otg_hcd:usb1
41: 175536615 176040135 175739476 175386350 ARMCTRL-level 41 Edge dwc_otg_sim-fiq
48: 0 0 0 0 ARMCTRL-level 48 Edge bcm2708_fb dma
50: 0 0 0 0 ARMCTRL-level 50 Edge DMA IRQ
52: 0 0 0 0 ARMCTRL-level 52 Edge DMA IRQ
64 bytes from 8.8.8.8: icmp_seq=41 ttl=116 time=3.69 ms
64 bytes from 8.8.8.8: icmp_seq=42 ttl=116 time=3.79 ms
64 bytes from 8.8.8.8: icmp_seq=43 ttl=116 time=3.69 ms
64 bytes from 8.8.8.8: icmp_seq=44 ttl=116 time=3.47 ms
64 bytes from 8.8.8.8: icmp_seq=45 ttl=116 time=3.74 ms
From 172.17.3.197 icmp_seq=46 Destination Host Unreachable
From 172.17.3.197 icmp_seq=47 Destination Host Unreachable
From 172.17.3.197 icmp_seq=48 Destination Host Unreachable
From 172.17.3.197 icmp_seq=49 Destination Host Unreachable
From 172.17.3.197 icmp_seq=66 Destination Host Unreachable
mkdir -p build
cd build
CXX=clang++ cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DKICAD_USE_OCE=OFF \
-DKICAD_USE_OCC=ON \
-DOCE_DIR=`dirname $(pacman -Ql oce | grep OCEConfig.cmake | awk '{ print $2 }' )` \
-DBUILD_GITHUB_PLUGIN=ON \
-DKICAD_SCRIPTING=ON \
# turbostat
turbostat version 18.07.27 - Len Brown <[email protected]>
CPUID(0): AuthenticAMD 13 CPUID levels; family:model:stepping 0x17:8:2 (23:8:2)
CPUID(1): SSE3 MONITOR - - - TSC MSR - HT -
CPUID(6): APERF, No-TURBO, No-DTS, No-PTM, No-HWP, No-HWPnotify, No-HWPwindow, No-HWPepp, No-HWPpkg, No-EPB
CPUID(7): No-SGX
cpu54: POLL: CPUIDLE CORE POLL IDLE
cpu54: C1: ACPI FFH MWAIT 0x0
cpu54: C2: ACPI IOPORT 0x814
cpu54: cpufreq driver: acpi-cpufreq
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 43 bits physical, 48 bits virtual
CPU(s): 64
On-line CPU(s) list: 0-63
Thread(s) per core: 2
Core(s) per socket: 32
Socket(s): 1
@greyltc
greyltc / PKGBUILD
Created February 6, 2019 11:55
not working
# Maintainer: Grey Christoforo <first name at last name dot net>
pkgname=ess-epics
pkgver=7.0.2
pkgrel=1
pkgdesc="Experimental Physics and Industrial Control System -- ESS falvor"
arch=('any')
url="http://www.aps.anl.gov/epics/"
provides=('epics')
conflicts=('epics')
license=('EPICS Open License')
@greyltc
greyltc / build.sh
Last active February 5, 2019 22:51
doesn't work inside PKGBUILD build()
#!/usr/bin/env bash
git clone https://github.com/icshwi/e3.git e3_clone
cd e3_clone
yes | ./e3_building_config.bash -t /tmp/build -b 7.0.2 setup
./e3.bash base
@greyltc
greyltc / PKGBUILD
Created February 3, 2019 10:27
glib2-static
pkgname=glib2-static
pkgver=2.59.1
pkgrel=1
pkgdesc="Low level core library. Static library."
url="https://wiki.gnome.org/Projects/GLib"
license=(LGPL2.1)
arch=(x86_64)
depends=(pcre libffi)
makedepends=(libffi zlib shared-mime-info python libelf git util-linux meson dbus libxslt docbook-xsl)
checkdepends=(desktop-file-utils dbus)