Skip to content

Instantly share code, notes, and snippets.

@marcoguerri
marcoguerri / BIOS.conf
Created April 4, 2015 09:32
BIOS configuration
[SYSTEM]
BIOSVersion=SE5C610.86B.01.01.0003.090520141303 ; This field should not be edited
FWBootVersion=01.03 ; This field should not be edited
FWOpcodeVersion=1.05.6802 ; This field should not be edited
[POWER]
PowerRestorePolicy=ON ; Options: On, Off or Restore
[PEF]
PEFEnable=ENABLE ; Options: Enable, Disable
@marcoguerri
marcoguerri / icache.py
Created March 31, 2017 13:25
Python script for the generation of icache miss intense workload
#!/usr/bin/env python
import tempfile
import random
import sys
if __name__ == '__main__':
functions = list()
for i in range(10000):
func_name = "f_{}".format(next(tempfile._get_candidate_names()))
@marcoguerri
marcoguerri / itlb.c
Created March 31, 2017 13:34
Benchmark for the generation of instruction cache misses with an adjustable code segment size
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
#include <memory.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
uint64_t max_ip = 0, min_ip = 0;
uint64_t ip;
MOCK="sudo mock --dnf --no-clean --no-cleanup-after -r fedora-rawhide-x86_64"
${MOCK} clean
${MOCK} install lorax kmod-devel wget asciidoc bash-completion vim dnf ansible dnf-plugins-core yum rpm make git glade-devel gettext
${MOCK} --chroot "
cat >> /tmp/issue_254.repo << EOF
[fedora-secondary]
name=fedora
includepkgs=kernel
mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=x86_64&country=US
@marcoguerri
marcoguerri / 01-Status
Created January 24, 2020 13:45
First status request, only one target entered the test step, the state is the latest available.
Requesting URL http://localhost:8080/status with requestor ID 'httpclient'
with params:
requestor: [httpclient]
jobID: [101]
The server responded with status 200 OK
{
"ServerID": "debian",
"Type": "ResponseTypeStatus",
"Data": {
@marcoguerri
marcoguerri / 02-Status
Created January 24, 2020 13:46
Second status request. One target has left the test step, another has entered.
{
"ServerID": "debian",
"Type": "ResponseTypeStatus",
"Data": {
"Status": {
"EndTime": "0001-01-01T00:00:00Z",
"Name": "test job",
"Report": {
"JobID": 0,
"JobReport": null,
@marcoguerri
marcoguerri / 03-Status
Created January 24, 2020 13:57
Final status, with job completed
{
"ServerID": "debian",
"Type": "ResponseTypeStatus",
"Data": {
"Status": {
"EndTime": "2020-01-24T13:34:30Z",
"Name": "test job",
"Report": {
"JobID": 101,
"JobReport": {
{
"ServerID": "e5f7b36bae8b",
"Type": "ResponseTypeStatus",
"Data": {
"Status": {
"EndTime": "2020-01-30T23:22:01Z",
"Name": "test job",
"Report": {
"JobID": 1,
"JobReport": {
Re-running as root with sudo
using --exit-code-from implies --abort-on-container-exit
Building mysql
Step 1/3 : FROM mysql
---> b8fd9553f1f0
Step 2/3 : COPY docker/mysql/initdb.sql /docker-entrypoint-initdb.d/
---> Using cache
---> 44826aee1494
Step 3/3 : COPY docker/mysql/create_contest_db.sql /
---> Using cache
{
"ServerID": "3b07d82c0cce",
"Type": "ResponseTypeStatus",
"Data": {
"Status": {
"EndTime": "2020-01-31T12:22:20Z",
"Name": "test job",
"Report": {
"JobID": 1,
"JobReport": {