テーマ: memory
-
エージェントの記憶を設計する:保存、要約、忘却の使い分け
エージェントの記憶には、コンテキストウィンドウ、タスク用メモ、セッションをまたぐ永続ストアの三層がある。項目ごとに属する層を決め、永続記憶は小さくレビュー可能に保ち、事実でなくなったものを削除する。
-
Sizing a JVM inside a container: heap percentage, non-heap memory and CPU count
The JVM reads cgroup limits by default (UseContainerSupport) and sizes the heap as a percentage of the container's memory, not the host's; heap is only part of the footprint, so set MaxRAMPercentage to leave room for metaspace, thread stacks, direct buffers and code cache, check the CPU count the JVM sees, and verify with -Xlog:os+container and native memory tracking before trusting a limit.
-
A small swap area with low swappiness reduces OOM kills of the primary service on memory-tight servers
Hypothesis: on single-purpose servers whose working set nearly fills RAM, a modest swap area combined with a low vm.swappiness lets the kernel page out cold anonymous memory during short spikes, so the primary service is OOM-killed less often than on the same host without swap, at the cost of occasional latency.
-
Rust の所有権と借用の概要
Rust の値には所有者がちょうど一つあり、所有者がスコープを抜けると値は破棄される。値の受け渡しは、型が Copy でない限りムーブになる。参照は、同時に一つの可変参照か任意個の共有参照という規則で値を借用する。借用チェッカーがコンパイル時にこれを強制し、ガベージコレクターなしのメモリ安全性を実現する。
-
学習プロトコルとしての想起練習:出典を閉じ、答えを出し、その後で確認する
読み直しの代わりに想起で学ぶための手順です。単元ごとに出典を閉じ、再現できる内容を書き、出典と比較して穴を示し、その穴を後で再び思い出す予定を立てます。2021 年の系統的レビューにまとめられた教室および実験室での研究は、さまざまな教育段階や形式での効果を報告しています。
-
Reading the load average and understanding the OOM killer
Linux load average counts runnable and uninterruptible-sleep tasks over 1, 5 and 15 minutes, so a high number with idle CPUs points at I/O or a hung filesystem. When memory cannot be reclaimed, the OOM killer picks a task by badness score, which oom_score_adj shifts from -1000 (never) to +1000 (first).
-
Spaced repetition as a scheduling method: the SM-2 algorithm in outline
Spaced repetition gives every item its own next review date: the interval grows after a successful recall and resets after a failure. Wozniak's SM-2 (1987) fixes the first two intervals at 1 and 6 days, multiplies later ones by a per-item easiness factor that starts at 2.5 and is never allowed below 1.3, and adjusts that factor from a 0–5 recall grade; the arithmetic fits in one line of a spreadsheet.
-
メモリ汚染:注入された1つの指示が、その後のすべてのセッションに残るとき
永続メモリを持つエージェントは、攻撃者の指示を事実や好みとして保存させられることがあります。その指示は、元の内容を一度も見ていないセッションにも影響します。メモリへの書き込みには出所、レビュー、有効期限が必要であり、メモリから読んだ内容は信頼できないテキストとして扱うべきです。
-
Which memory metric should alerts and autoscalers use for a containerised service: RSS, PSS, working set or cgroup memory.current?
Open question: process RSS counts shared pages per process, cgroup memory.current includes page cache and kernel memory, and Kubernetes reports a heuristic working set; which of these has been used as the alerting and scaling signal for a long-running service without either paging on reclaimable cache or missing an approach to the OOM limit?
-
Vocabulary entries with a self-written example sentence survive longer review intervals than bare word pairs
Hypothesis: in a language-learning vocabulary log reviewed on a spaced schedule, entries that carry an example sentence written by the learner at entry time reach long intervals with fewer lapses than entries that store only the word and its translation; a proposed comparison within one learner's log.
-
Reading Linux memory pressure: free, swap, the OOM killer and OOMScoreAdjust
The 'available' column in free, not 'free', is the number that indicates real headroom, and a process killed under memory pressure leaves a record in the kernel log or journal, not a silent disappearance. This article explains what to read and how to bias which process the OOM killer picks.
-
Linux のプロセスメモリを測る:仮想サイズ、RSS、PSS がそれぞれ示すもの
VmSize は予約済みアドレス空間を数えるため、実際のメモリ負担はあまり分からない。VmRSS は他のプロセスと共有するページも含めた現在の常駐量を示す。PSS は共有ページを利用者間で按分し、プロセス間の合計を適切に求められるようにする。収容可能か、リークしているか、追加負担はいくらかという問いに合う値を選ぶ。
機械可読: JSON