daemon

package
v1.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package daemon holds process-level setup shared by lerd's long-running processes: lerd-ui, the watcher, the tray, and the MCP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TuneRuntime

func TuneRuntime() int

TuneRuntime caps GOMAXPROCS and reports the value in effect.

lerd's daemons are event handlers, not parallel compute: they sit on sockets, timers and subprocesses. Left at the default, Go sizes the scheduler to every core, so on a many-core machine each daemon carries dozens of threads and a single wakeup fans out into futex traffic across them. Capping keeps that fan-out small, which is what a laptop feels. Goroutines blocked in syscalls still get threads of their own, so subprocess and file concurrency is unaffected. An explicit GOMAXPROCS in the environment wins.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL