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 update_mirrors.sh
#!/usr/bin/env bash
local_storage="/home/pf/work/tmp/mirrors"
mirrors="\
ck;http://ck.kolivas.org;patches/ \
bfq;http://algo.ing.unimo.it;people/paolo/disk_sched/patches/ \
"
for mirror in $mirrors
View bfq-3.10-v6-to-3.10-v7.patch
diff --git a/block/Kconfig.iosched b/block/Kconfig.iosched
index 695e064..0ee5f0f 100644
--- a/block/Kconfig.iosched
+++ b/block/Kconfig.iosched
@@ -48,7 +48,7 @@ config IOSCHED_BFQ
It aims at distributing the bandwidth as desired, independently of
the disk parameters and with any workload. It also tries to
guarantee low latency to interactive and soft real-time
- applications. If compiled built-in (saying Y here), BFQ can
+ applications. If compiled built-in (saying Y here), BFQ can
View -
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.13.1-pf 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"
View 0001-ck-3.12-fix-BFS-compiling-with-CONFIG_SMP-n.patch
From 803d997f52253f5a50f71ef4fc00d3d87a55e5d4 Mon Sep 17 00:00:00 2001
From: Oleksandr Natalenko <oleksandr@natalenko.name>
Date: Thu, 12 Dec 2013 16:58:39 +0200
Subject: [PATCH 1/2] ck-3.12: fix BFS compiling with CONFIG_SMP=n
---
kernel/sched/bfs.c | 5 -----
kernel/sched/bfs_sched.h | 8 ++++++++
2 files changed, 8 insertions(+), 5 deletions(-)
View bfs-kvm-stuck.txt
[ 92.328648] BUG: soft lockup - CPU#2 stuck for 22s! [qemu-system-x86:3434]
[ 92.328653] Modules linked in: tun ctr ccm fuse rfcomm bnep uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media
sch_fq_codel xt_conntrack iptable_filter xt_TCPMSS xt_tcpudp iptable_mangle ipt_MASQUERADE bridge iptable_nat stp nf_conntrack_ipv4 llc
nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables nls_cp437 vfat fat x86_pkg_temp_thermal intel_powerclamp crct10dif_pclmul
crct10dif_common crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 rts5139(C) lrw gf128mul dell_wmi ath3k btusb
sparse_keymap glue_helper alx bluetooth arc4 ath9k ath9k_common ath9k_hw ath mac80211 cfg80211 ablk_helper wmi cryptd iTCO_wdt
iTCO_vendor_support dell_laptop psmouse(O) serio_raw rfkill dcdbas microcode mdio evdev snd_hda_codec_hdmi i2c_i801 lpc_ich mfd_core
snd_hda_codec_cirrus
[ 92.328717] snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_timer snd soundcore tcp_yeah tcp_v
View -
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.13.1-pf 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"
View LORLocalDate.user.js
// ==UserScript==
// @name LORLocalDate
// @description Converts Moscow time to local time
// @namespace http://www.linux.org.ru/*
// @namespace https://www.linux.org.ru/*
// @include http://www.linux.org.ru/*
// @include https://www.linux.org.ru/*
// @author Oleksandr Natalenko aka post-factum
// @license Creative Commons Attribution 3.0 Unported
// @version 0.0.4
View 0001-ck-3.12-fix-BFS-compiling-with-CONFIG_SMP-n.patch
From 65caaf18dbf2374adc7cb6c78043c704961704d5 Mon Sep 17 00:00:00 2001
From: Oleksandr Natalenko <oleksandr@natalenko.name>
Date: Thu, 12 Dec 2013 16:58:39 +0200
Subject: [PATCH 1/3] ck-3.12: fix BFS compiling with CONFIG_SMP=n
---
kernel/sched/bfs.c | 5 -----
kernel/sched/bfs_sched.h | 8 ++++++++
2 files changed, 8 insertions(+), 5 deletions(-)
View 0002-ck-3.12-force-disabling-BOOTPARAM_HOTPLUG_CPU0-with-.patch
From e4ae645b04e0371de3f7a4a3c6adc3f65b9bd76c Mon Sep 17 00:00:00 2001
From: Oleksandr Natalenko <oleksandr@natalenko.name>
Date: Sun, 24 Nov 2013 11:31:46 +0200
Subject: [PATCH 2/3] ck-3.12: force disabling BOOTPARAM_HOTPLUG_CPU0 with BFS
enabled
---
arch/x86/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
View 0003-kvm-replace-cond_resched-with-schedule.patch
From 7ea760628522b0c37703c2ea9aab65b6514de065 Mon Sep 17 00:00:00 2001
From: Oleksandr Natalenko <oleksandr@natalenko.name>
Date: Sat, 8 Mar 2014 01:36:22 +0200
Subject: [PATCH 3/3] kvm: replace cond_resched() with schedule()
This commit tries to fix qemu CPU soft-lock while using
>=2 vCPU per guest with BFS enabled. The trick is stolen
from here:
https://bugzilla.redhat.com/show_bug.cgi?id=1038929#c5
---
You can’t perform that action at this time.