Skip to content

Instantly share code, notes, and snippets.

Oleksandr Natalenko pfactum

Block or report user

Report or block pfactum

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ethtool
» sudo ethtool -k enp3s0 | grep -v fixed
Features for enp3s0:
rx-checksumming: on
tx-checksumming: off
tx-checksum-ipv4: off
tx-checksum-ipv6: off
scatter-gather: on
tx-scatter-gather: on
tcp-segmentation-offload: off
tx-tcp-segmentation: off
View sysctl.conf
/etc/sysctl.d » cat *
net.ipv4.ip_nonlocal_bind = 1
net.ipv6.ip_nonlocal_bind = 1
net.ipv4.ip_local_port_range = 1026 59999
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
net.ipv6.route.max_size = 16384
net.ipv4.ip_dynaddr = 1
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_congestion_control = bbr
#!/usr/bin/env bash
# Examples:
# bufferbloat start eth0 20 20
# bufferbloat stop eth0
self="$(basename $(/usr/bin/realpath ${0}))"
# Maintainer: Oleksandr Natalenko <>
View sigsegv.log
Core was generated by `/usr/bin/nft flush ruleset ; include "/etc/nftables.conf"'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f6b151d33a4 in input_descriptor_dup (indesc=0x0) at erec.c:52
52 erec.c: No such file or directory.
(gdb) bt
#0 0x00007f6b151d33a4 in input_descriptor_dup (indesc=0x0) at erec.c:52
#1 0x00007f6b151d349a in erec_add_location (erec=0x55a2617c8720, loc=<optimized out>) at erec.c:69
#2 0x00007f6b151d3559 in erec_vcreate (type=type@entry=EREC_ERROR, loc=0x55a2722c24b0,
fmt=0x7f6b151eb77c "Could not process rule: %s", ap=ap@entry=0x7ffd9d79b540) at erec.c:94
#3 0x00007f6b151c53fe in netlink_io_error (ctx=ctx@entry=0x7ffd9d79b680, loc=<optimized out>, loc@entry=0x55a2722c24b0,
View trace.log
kernel: ^[[0;1;39mINFO: task systemd-udevd:138 blocked for more than 120 seconds.
kernel: ^[[0;1;39m Not tainted 4.16.0-pf3 #1
kernel: ^[[0;1;39m"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kernel: systemd-udevd D 0 138 1 0x80000000
kernel: ^[[0;1;39m^[[0;1;39mCall Trace:
kernel: ^[[0;1;39m^[[0;1;39m ? __schedule+0x353/0x1160
kernel: ^[[0;1;39m^[[0;1;39m ? kobject_uevent_env+0x117/0x620
kernel: ^[[0;1;39m^[[0;1;39m ? preempt_count_add+0x68/0xa0
kernel: ^[[0;1;39m^[[0;1;39m schedule+0x32/0xc0
kernel: ^[[0;1;39m^[[0;1;39m async_synchronize_cookie_domain+0x91/0x140
View ioctl.txt
[root@archlinux ~]# strace -e ioctl smartctl -a /dev/sda >/dev/null
ioctl(1, TCGETS, 0x7ffcb6e45f00) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(3, SG_IO, {interface_id='S', dxfer_direction=SG_DXFER_FROM_DEV, cmd_len=6, cmdp="\x12\x00\x00\x00\x24\x00", mx_sb_len=32, iovec_count=0, dxfer_len=36, timeout=60000, flags=0, dxferp="\x00\x00\x05\x02\x5b\x00\x00\x02\x41\x54\x41\x20\x20\x20\x20\x20\x51\x45\x4d\x55\x20\x48\x41\x52\x44\x44\x49\x53\x4b\x20\x20\x20"..., status=0, masked_status=0, msg_status=0, sb_len_wr=0, sbp="", host_status=0, driver_status=0, resid=0, duration=0, info=0}) = 0
ioctl(3, SG_IO, {interface_id='S', dxfer_direction=SG_DXFER_FROM_DEV, cmd_len=16, cmdp="\x85\x08\x0e\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\xec\x00", mx_sb_len=32, iovec_count=0, dxfer_len=512, timeout=60000, flags=0, dxferp="\x40\x00\xff\x3f\x00\x00\x10\x00\x00\x7e\x00\x02\x3f\x00\x00\x00\x00\x00\x00\x00\x4d\x51\x30\x30\x30\x30\x20\x31\x20\x20\x20\x20"..., status=0, masked_status=0, msg_status=0, sb_len_wr=0, s
View .XCompose
<Multi_key> <a> <a> : "́" U0301 # COMBINING ACUTE
<Multi_key> <Cyrillic_ef> <Cyrillic_ef> : "́" U0301 #
<Multi_key> <c> <c> : "̌" U030C # COMBINING CARON
<Multi_key> <o> <o> : "̊" U030A # COMBINING RING
<Multi_key> <s> <s> : "̕" U0315 # COMBINING SOFT MARK
<Multi_key> <q> <q> : "̀" U0300 # COMBINING GRAVE
View gist:818471a87a79d44bee654d4c3721cc52
898ddc6d129d bfq-iosched: don't call bfqg_and_blkg_put for !CONFIG_BFQ_GROUP_IOSCHED
059415785a07 block, bfq: release oom-queue ref to root group on exit
323c99e1e85c block, bfq: put async queues for root bfq groups too
777b1dae3a7b block, bfq: limit sectors served with interactive weight raising
49dcd4d6b746 block, bfq: limit tags for writes and async I/O
e5e621ff5493 block, bfq: increase threshold to deem I/O as random
f9797d97613f block, bfq: remove superfluous check in queue-merging setup
af308193b75e block, bfq: let a queue be merged only shortly after starting I/O
804b39ee84be block, bfq: check low_latency flag in bfq_bfqq_save_state()
ab3fb55379ef block, bfq: add missing rq_pos_tree update on rq removal
View 0001-pds-4.15-fix-delayacct_blkio_end-usage.patch
From 91ac7cd4d9c24c0f4fb1fad3c01d9527cb6aa36d Mon Sep 17 00:00:00 2001
From: Oleksandr Natalenko <>
Date: Thu, 18 Jan 2018 20:13:34 +0100
Subject: [PATCH] pds-4.15: fix delayacct_blkio_end() usage
Signed-off-by: Oleksandr Natalenko <>
kernel/sched/pds.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
You can’t perform that action at this time.