検証: shpoolのdaemonが1セッションで20MB太る理由を実測で追う

00:00:42 ・ source: https://zenn.dev/mskbhd/articles/lab-721-shpool

Transcript

hostenToday we examine why shpool daemon memory grows to 20MB per session.
guestjashpoolというセッション維持ツールのdaemonメモリが、1セッションで約20MBまで膨れ上がる理由を調査した話です。
hostenThe root cause is a fixed 1024-column buffer for terminal restore, regardless of actual terminal width.
guestja原因は、実際の端末幅に関わらず復元用バッファが1024列固定に設定されていることでした。
hostenBy adjusting vt100_output_spool_width to match your actual terminal width, you can reduce memory by 75 percent.
guestjavt100_output_spool_widthを実際の端末幅に合わせることで、メモリ使用量を4分の1まで削減できます。