Skip to content

Instantly share code, notes, and snippets.

@peo3
peo3 / config-3.10.0-0.rc5.git0.1.nohzfull.vbox.fc20.x86_64
Last active December 18, 2015 05:08
A sample configuration of a minimal x86_64 kernel with NOHZ_FULL enabled for VirtualBox.
# x86_64
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.10.0-0.rc5.git0.1.nohzfull.fc20.x86_64 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@peo3
peo3 / systemd-changelogs.txt
Last active December 24, 2015 17:49
Recent systemd changes for cgroups and namespaces.
systemd 208 released [LWN.net] http://lwn.net/Articles/569235/
* This release removes high-level support for the
MemorySoftLimit= cgroup setting. The underlying kernel
cgroup attribute memory.soft_limit= is currently badly
designed and likely to be removed from the kernel API in its
current form, hence we shouldn't expose it for now.
* The memory.use_hierarchy cgroup attribute is now enabled for
all cgroups systemd creates in the memory cgroup
@peo3
peo3 / hello.patch
Created November 2, 2013 07:18
Add hello.so app to OSv. How to compile and run: make; /scripts/run.py -e 'hello.so'
diff --git a/bootfs.manifest b/bootfs.manifest
index c04c161..b3e6479 100644
--- a/bootfs.manifest
+++ b/bootfs.manifest
@@ -76,4 +76,5 @@
/libzfs.so: libzfs.so
/zfs.so: zfs.so
/tools/mkfs.so: tools/mkfs/mkfs.so
+/hello.so: hello.so
@peo3
peo3 / linux-4.6.0.vbox.config
Created May 21, 2016 16:33
Linux 4.6.0 kernel config for VirtualBox
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.6.0 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
@peo3
peo3 / kcm-sample.c
Last active June 5, 2024 14:49
A sample program of KCM
/*
* A sample program of KCM.
*
* $ gcc -lbcc kcm-sample.c
* $ ./a.out 10000
*/
#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
@peo3
peo3 / ulp-comp.c
Last active December 19, 2017 15:51
A sample program using ULP (it deflates/inflates payload of TCP transparent to userland)
#include <linux/module.h>
#include <linux/zlib.h>
#include <net/tcp.h>
#include <net/inet_common.h>
MODULE_AUTHOR("peo3");
MODULE_DESCRIPTION("compression ULP");
MODULE_LICENSE("GPL");