Skip to content

Instantly share code, notes, and snippets.

Andres Freund anarazel

Block or report user

Report or block anarazel

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
@anarazel
anarazel / kernel.log
Created Feb 12, 2020
kernel log of boot on nv117 mobile w/ drm.debug=0x16 debug=outp=trace
View kernel.log
This file has been truncated, but you can view the full file.
Feb 12 14:05:48 alap5 kernel: e820: reserve RAM buffer [mem 0xafd10000-0xafffffff]
Feb 12 14:05:48 alap5 kernel: e820: reserve RAM buffer [mem 0xb8800000-0xbbffffff]
Feb 12 14:05:48 alap5 kernel: e820: reserve RAM buffer [mem 0x841000000-0x843ffffff]
Feb 12 14:05:48 alap5 kernel: Bluetooth: Core ver 2.22
Feb 12 14:05:48 alap5 kernel: NET: Registered protocol family 31
Feb 12 14:05:48 alap5 kernel: Bluetooth: HCI device and connection manager initialized
Feb 12 14:05:48 alap5 kernel: Bluetooth: HCI socket layer initialized
Feb 12 14:05:48 alap5 kernel: Bluetooth: L2CAP socket layer initialized
Feb 12 14:05:48 alap5 kernel: Bluetooth: SCO socket layer initialized
View dmesg.log
Feb 06 13:50:36 alap5 kernel: microcode: microcode updated early to revision 0xca, date = 2019-10-03
Feb 06 13:50:36 alap5 kernel: Linux version 5.5.0-andres-09828-g4c6ef1517061-dirty (andres@alap5) (gcc version 9.2.1 20200203 (Debian 9.2.1-28)) #26 SMP Thu Feb 6 13:36:12 PST 2020
Feb 06 13:50:36 alap5 kernel: Command line: BOOT_IMAGE=/vmlinuz-5.5.0-andres-09828-g4c6ef1517061-dirty root=/dev/mapper/alap5-root ro apparmor=0 rd.luks.options=discard systemd.show_status=1 i915.fastboot=1 i915.modeset=1 psmouse.synaptics_intertouch=1
Feb 06 13:50:36 alap5 kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Feb 06 13:50:36 alap5 kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Feb 06 13:50:36 alap5 kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Feb 06 13:50:36 alap5 kernel: x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
Feb 06 13:50:36 alap5 kernel: x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
Feb 06 13:50:36 alap5 kernel: x86/fpu:
View dmesg.log
Feb 06 11:17:09 alap5 kernel: microcode: microcode updated early to revision 0xca, date = 2019-10-03
Feb 06 11:17:09 alap5 kernel: Linux version 5.5.0-andres-09561-gf8ef83909441-dirty (andres@alap5) (gcc version 9.2.1 20200203 (Debian 9.2.1-28)) #24 SMP Wed Feb 5 16:21:56 PST 2020
Feb 06 11:17:09 alap5 kernel: Command line: BOOT_IMAGE=/vmlinuz-5.5.0-andres-09561-gf8ef83909441-dirty root=/dev/mapper/alap5-root ro apparmor=0 rd.luks.options=discard systemd.show_status=1 i915.fastboot=1 i915.modeset=1 psmouse.synaptics_intertouch=1
Feb 06 11:17:09 alap5 kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Feb 06 11:17:09 alap5 kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Feb 06 11:17:09 alap5 kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Feb 06 11:17:09 alap5 kernel: x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
Feb 06 11:17:09 alap5 kernel: x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
Feb 06 11:17:09 alap5 kernel: x86/fpu:
View Xorg.1.log
[ 2465.619] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[ 2465.619] _XSERVTransMakeAllCOTSServerListeners: server already running
[ 2465.620] (--) Log file renamed from "/var/log/Xorg.pid-18392.log" to "/var/log/Xorg.1.log"
[ 2465.620]
X.Org X Server 1.20.7
X Protocol Version 11, Revision 0
[ 2465.620] Build Operating System: Linux 4.19.0-6-amd64 x86_64 Debian
[ 2465.620] Current Operating System: Linux alap5 5.5.0-andres-06886-g050b83aa3110-dirty #21 SMP Mon Feb 3 03:26:24 PST 2020 x86_64
[ 2465.620] Kernel command line: BOOT_IMAGE=/vmlinuz-5.5.0-andres-06886-g050b83aa3110-dirty root=/dev/mapper/alap5-root ro apparmor=0 rd.luks.options=discard systemd.show_status=1 i915.fastboot=1 i915.modeset=1 psmouse.synaptics_intertouch=1
[ 2465.620] Build Date: 05 February 2020 04:27:36PM
View nouveau_tu117.log
ACPI Warning: \_SB.PCI0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requ>
ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI>
pci 0000:01:00.0: optimus capabilities: enabled, status dynamic power, hda bios codec su>
VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.PEG0.PEGP handle
nouveau: detected PR support, will not use DSM
nouveau 0000:01:00.0: enabling device (0002 -> 0003)
nouveau 0000:01:00.0: NVIDIA TU117 (167000a1)
nouveau 0000:01:00.0: bios: version 90.17.31.00.26
nouveau 0000:01:00.0: fb: 4096 MiB GDDR5
nouveau 0000:01:00.0: fb: VPR locked, but no scrubber binary!
View nodeinfo_data.c
This file has been truncated, but you can view the full file.
#include "postgres.h"
#include "nodes/primnodes.h"
#include "nodes/pathnodes.h"
#include "nodes/plannodes.h"
#include "nodes/execnodes.h"
#include "nodes/memnodes.h"
#include "nodes/value.h"
#include "nodes/pg_list.h"
View gist:5e8a3338fae1a1e07f69c3af99375efb
WIP: Add support for copying node tree into single allocation.
As an example as to why one would want that, here's a
MemoryContextStats for the same query being added to the
plancache. The query is just a randomly selected one among the queries
issued by \d+.
PREPARE foo AS SELECT c.relchecks, c.relkind, c.relhasindex, c.relhasrules, c.relhastriggers, c.relrowsecurity, c.relforcerowsecurity, false AS relhasoids>
EXECUTE foo ;
View gist:40d6fe41b352300dd1b65a12f21fadc8
400 /* release the buffer space */
401 pfree(file->files);
0x00000000007d88a8 <+56>: mov 0x8(%r12),%rdi
0x00000000007d88ad <+61>: callq 0x9734f0 <pfree>
402 pfree(file);
0x00000000007d88b2 <+66>: pop %rbx
0x00000000007d88b3 <+67>: mov %r12,%rdi
0x00000000007d88b6 <+70>: pop %r12
0x00000000007d88b8 <+72>: pop %rbp
View gist:db07a87828af0dd7c26c45edb577655a
Jun 21 10:59:43 alap4 kernel: rcu: INFO: rcu_sched self-detected stall on CPU
Jun 21 10:59:43 alap4 kernel: rcu: 4-....: (59999 ticks this GP) idle=4fa/1/0x4000000000000002 softirq=11208655/11208655 fqs=14983
Jun 21 10:59:43 alap4 kernel: (t=60000 jiffies g=24107409 q=5523)
Jun 21 10:59:43 alap4 kernel: NMI backtrace for cpu 4
Jun 21 10:59:43 alap4 kernel: CPU: 4 PID: 2448 Comm: Web Content Tainted: G U W O 5.2.0-rc5-andres-00177-g29f785ff76b6 #94
Jun 21 10:59:43 alap4 kernel: Hardware name: LENOVO 20FWCTO1WW/20FWCTO1WW, BIOS R07ET88W (2.28 ) 01/18/2019
Jun 21 10:59:43 alap4 kernel: Call Trace:
Jun 21 10:59:43 alap4 kernel: <IRQ>
Jun 21 10:59:43 alap4 kernel: dump_stack+0x67/0x90
Jun 21 10:59:43 alap4 kernel: nmi_cpu_backtrace.cold.0+0x13/0x50
View gist:a37a228211c433663a5d22bcac30bb5b
setup
{
CREATE OR REPLACE FUNCTION blurt_and_lock(text) RETURNS text IMMUTABLE LANGUAGE plpgsql AS $$
BEGIN
RAISE NOTICE 'called for %', $1;
IF pg_try_advisory_xact_lock(current_setting('spec.session')::int, 1) THEN
RAISE NOTICE 'blocking 2';
PERFORM pg_advisory_xact_lock(current_setting('spec.session')::int, 2);
ELSE
You can’t perform that action at this time.