Skip to content

Instantly share code, notes, and snippets.

Martin Raiber uroni

View GitHub Profile
View btrfs_send_test.sh
#!/bin/bash
set -e -o pipefail
SUBVOL=test
SUBVOL_RO=test_ro
DB_FILE=$SUBVOL/test.file
NUM_ENTRIES=100000000
NUM_EXTENTS=100000
View btrfs_send_test_results
/dev/vda2 on / type btrfs (rw,noatime,compress-force=lzo,nossd,space_cache=v2,subvolid=257,subvol=/sys_root_current)
------------------------------------------------------
Linux urbctest2020-1 5.5.0-rc5-cloud-amd64 #1 SMP Debian 5.5~rc5-1~exp1 (2020-01-06) x86_64 GNU/Linux
Delete subvolume (no-commit): '/root/test'
Create subvolume './test'
Delete subvolume (no-commit): '/root/test_ro'
Testing send without fragmentation...
Create a readonly snapshot of 'test' in './test_ro'
At subvol test_ro
@uroni
uroni / mod_proxy_connect.c
Last active Aug 4, 2019
Mod_proxy_connect.c modified such that the client IP address is forwarded to the backend in a 50 byte buffer
View mod_proxy_connect.c
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View test_lookup.cpp
#include <iostream>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
void print_in_addr(struct sockaddr *sa) {
char buf[100];
View malloc_stats.txt
This file has been truncated, but you can view the full file.
___ Begin jemalloc statistics ___
Version: 3.6.0-0-g46c0af68bd248b04df75e4f92d5fb804c3d75340
Assertions disabled
Run-time option settings:
opt.abort: false
opt.lg_chunk: 22
opt.dss: "secondary"
opt.narenas: 128
opt.lg_dirty_mult: 3
View gist:5709555
Jun 4 22:17:02 atomsrv /USR/SBIN/CRON[3308]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 4 23:00:20 atomsrv kernel: [ 5161.108064] INFO: task kswapd0:33 blocked for more than 120 seconds.
Jun 4 23:00:20 atomsrv kernel: [ 5161.108087] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jun 4 23:00:20 atomsrv kernel: [ 5161.108106] kswapd0 D ffff88007f513780 0 33 2 0x00000000
Jun 4 23:00:20 atomsrv kernel: [ 5161.108118] ffff88007c1dc930 0000000000000046 0000000000000000 ffff88007c043610
Jun 4 23:00:20 atomsrv kernel: [ 5161.108130] 0000000000013780 ffff88007988dfd8 ffff88007988dfd8 ffff88007c1dc930
Jun 4 23:00:20 atomsrv kernel: [ 5161.108141] 0000000000000202 000000018134d9a4 ffff880077d08b28 ffff880077d08b20
Jun 4 23:00:20 atomsrv kernel: [ 5161.108152] Call Trace:
Jun 4 23:00:20 atomsrv kernel: [ 5161.108182] [<ffffffffa0326643>] ? cv_wait_common+0xdc/0x171 [spl]
Jun 4 23:00:20 atomsrv kernel: [ 5161.108194] [<ffffffff81037d81>] ?
You can’t perform that action at this time.