Skip to content

Instantly share code, notes, and snippets.

@zrruziev
zrruziev / NUMA node problem.md
Last active July 7, 2025 20:48
Fixing "successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero" problem

What is NUMA (Non-Uniformed Memory Access)

Non-Uniform Memory Access (NUMA) is one of the computer memory design methods used in multiprocessor systems, and the time to access the memory varies depending on the relative position between the memory and the processor. In the NUMA architecture, when a processor accesses its local memory, it is faster than when it accesses the remote memory. Remote memory refers to memory that is connected to another processor, and local memory refers to memory that is connected to its own processor. In other words, it is a technology to increase memory access efficiency while using multiple processors on one motherboard. When a specific processor runs out of memory, it monopolizes the bus by itself, so other processors have to play. , and designate 'access only here', and call it a NUMA node.

1. Check Nodes

lspci | grep -i nvidia
  
01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 12GB] (rev a1)
@LesFerch
LesFerch / Explorer-Run-as-Administrator.reg
Last active October 30, 2024 07:56
Registry Setting That Prevents Explorer From Being Run as Administrator
Windows Registry Editor Version 5.00
;The registry setting shown below requires Trusted Installer privileges to change.
;If the "RunAs" value is deleted or renamed or the "Interactive User" data is changed to something else,
;such as an empty string, you will then be able to right-click Explorer and "Run as Administrator".
;Of course, you can then create a shortcut to Explorer that has "Run as Administrator" checked.
;Disabling this restriction may have consequences. One concern regards what happens if you are at a
;"Run as Administrator" or "Run as Trusted Installer" Cmd prompt and then kill all Explorer processes
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active October 30, 2025 16:02
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference