Skip to content

Instantly share code, notes, and snippets.

Thread 2 (Thread 0x7fe7b05ff6c0 (LWP 1076966) "vshEventLoop"):
#0 0x00007fe7b239ffb2 in __syscall_cancel_arch () at /lib64/libc.so.6
#1 0x00007fe7b23941ec in __internal_syscall_cancel () at /lib64/libc.so.6
#2 0x00007fe7b2394234 in __syscall_cancel () at /lib64/libc.so.6
#3 0x00007fe7b240ea66 in ppoll () at /lib64/libc.so.6
#4 0x00007fe7b2596360 in g_main_context_iterate_unlocked.isra () at /lib64/libglib-2.0.so.0
#5 0x00007fe7b2596423 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#6 0x00007fe7b2863a24 in virEventGLibRunOnce () at /lib64/libvirt.so.0
#7 0x000055d673423825 in vshEventLoop ()
#8 0x00007fe7b28c426d in virThreadHelper () at /lib64/libvirt.so.0
Today we announced "GitLab Act 2," which is just a fancy way of saying
we’re pivoting to AI because that’s where the hype is.
We’re gutting the company to move faster, which means we’re firing a lot
of people and hoping "AI agents" can do the work of the humans we just got
rid of. We’re taking the money we saved from those salaries to hire more
developers, but in much smaller, more stressed-out groups. We’ve got a big
roadmap to show off in London on June 10th, mostly to prove we haven't
completely lost the plot.
Let's see how bad QWEN3 is at a coding task ...
> please write me an nbdkit plugin in C which will serve the poem "the 12 days of christmas" in a disk image
Here is a complete C plugin for `nbdkit` that serves "The 12 Days of Christmas" as a disk image.
### Overview
* **Disk Size:** The plugin presents a virtual 1 MB block device.
* **Content:** The poem is embedded at the beginning of the disk image.
* **Padding:** Any data requested beyond the length of the poem is returned as null bytes (simulating a sparse disk).
struct canary {} canary;
#define check_expr_0(t, canary, ...)
#define check_expr_1(t, arg, canary, ...)
#define check_expr_2(t, arg0, arg1, canary, ...)
#define check_expr_3(t, arg0, arg1, arg2, canary, ...)
#define expr(t, ...) \
__extension__({ \
if (__builtin_constant_p (t)) { \
@rwmjones
rwmjones / gist:2e8f768f42bef00663a9de807cf39ee7
Last active October 17, 2023 17:57
tcg: Group pages into "super-pages" for jumps and invalidation
From 24547b9cf3c10b2e14c54ffadd462e58d7a3e8ce Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 17 Oct 2023 16:15:55 +0100
Subject: [PATCH] tcg: Group pages into "super-pages" for jumps and
invalidation
---
accel/tcg/tb-maint.c | 95 ++++++++++++++++++++++++++----------------
accel/tcg/translator.c | 7 +++-
2 files changed, 64 insertions(+), 38 deletions(-)
level=debug msg="CRC version: 2.7.1+8b30b973\n"
level=debug msg="OpenShift version: 4.11.0\n"
level=debug msg="Podman version: 4.1.1\n"
level=debug msg="Running 'crc start'"
level=debug msg="Total memory of system is 16378507264 bytes"
level=debug msg="No new version available. The latest version is 2.7.1"
level=debug msg="Checking file: /home/rjones/.crc/machines/crc/.crc-exist"
level=debug msg="Checking if systemd-resolved.service is running"
level=debug msg="Running 'systemctl status systemd-resolved.service'"
level=debug msg="systemd-resolved.service is already running"
level=debug msg="CRC version: 2.7.1+8b30b973\n"
level=debug msg="OpenShift version: 4.11.0\n"
level=debug msg="Podman version: 4.1.1\n"
level=debug msg="Running 'crc start'"
level=debug msg="Total memory of system is 16378507264 bytes"
level=debug msg="No new version available. The latest version is 2.7.1"
level=debug msg="Checking file: /home/rjones/.crc/machines/crc/.crc-exist"
level=debug msg="Checking if systemd-resolved.service is running"
level=debug msg="Running 'systemctl status systemd-resolved.service'"
level=debug msg="systemd-resolved.service is already running"
level=debug msg="CRC version: 2.7.1+a8e9854\n"
level=debug msg="OpenShift version: 4.11.0\n"
level=debug msg="Podman version: 4.1.1\n"
level=debug msg="Running 'crc setup'"
level=info msg="Using bundle path /home/rjones/.crc/cache/crc_libvirt_4.11.0_amd64.crcbundle"
level=debug msg="Checking if systemd-resolved.service is running"
level=debug msg="Running 'systemctl status systemd-resolved.service'"
level=debug msg="systemd-resolved.service is already running"
level=info msg="Checking if running as non-root"
level=info msg="Checking if running inside WSL2"
level=debug msg="CRC version: 2.6.0+d606e64\n"
level=debug msg="OpenShift version: 4.10.22\n"
level=debug msg="Podman version: 4.1.0\n"
level=debug msg="Running 'crc start'"
level=debug msg="Total memory of system is 16378507264 bytes"
level=debug msg="No new version available. The latest version is 2.6.0"
level=debug msg="Checking file: /home/rjones/.crc/machines/crc/.crc-exist"
level=debug msg="Checking if systemd-resolved.service is running"
level=debug msg="Running 'systemctl status systemd-resolved.service'"
level=debug msg="systemd-resolved.service is already running"
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1 82852 iterations per second for 256-bit key
PBKDF2-sha256 122956 iterations per second for 256-bit key
PBKDF2-sha512 111836 iterations per second for 256-bit key
PBKDF2-ripemd160 90269 iterations per second for 256-bit key
PBKDF2-whirlpool 31447 iterations per second for 256-bit key
argon2i 4 iterations, 110288 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id 4 iterations, 111368 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
# Algorithm | Key | Encryption | Decryption
aes-cbc 128b 14.2 MiB/s 19.0 MiB/s