Skip to content

Instantly share code, notes, and snippets.

@travisdowns
travisdowns / mlp.md
Last active November 30, 2019 19:33

MLP vs size for SKL, SKX and Zen2. Insprired by similar charts produced by Andrei at AnandTech.

Size here is in 8-byte units (sorry), so 10^7 means 80,000,000 bytes.

Data is generated using the console version of MemoryLanes:

MLP_CSV=2 MLP_START=1 MLP_STOP=20000 ./testingmlp > out

Charts generated like:

/*
* cxxstacks.hpp
*/
#ifndef CXXSTACKS_HPP_
#define CXXSTACKS_HPP_
#include <string.h>
#include <string>
@travisdowns
travisdowns / conc-run.sh
Last active July 6, 2020 23:57
set up ec2 ubuntu box
#!/bin/bash
set -euo pipefail
echo "Running $0"
sudo apt update
sudo apt install -y build-essential
mkdir dev && cd dev
git clone https://github.com/travisdowns/concurrency-hierarchy-bench.git
cd concurrency-hierarchy-bench
dd if=/dev/urandom of=64mib.bin bs=1024K count=64
echo $((64*1024*1024))
time tail -c +$((16*1024*1024+1)) 64mib.bin | head -c $((32*1024*1024+1)) > out.bin
ls -lh out.bin
#!/usr/bin/env bash
set -euo pipefail
export DEBIAN_FRONTEND=noninteractive
# Build Seastar framework from source
# This script clones the Seastar repository, installs dependencies,
# configures the build with required libraries, and compiles the project.