Table of Contents

Class CellProcessStartOptions

Namespace
KernLab.Cell
Assembly
KernLab.Cell.dll

进程启动选项(C203——dotnet KernLab.Cell.Runtime.dll --pack … --startup … --parent-pid …)。

public sealed class CellProcessStartOptions
Inheritance
CellProcessStartOptions
Inherited Members

Constructors

CellProcessStartOptions()

public CellProcessStartOptions()

Properties

Carrier

载体(--carrier;缺省 tcp)。

public string Carrier { get; init; }

Property Value

string

CgroupRoot

cgroup v2 根(Linux 执法用;null=/sys/fs/cgroup)。

public string? CgroupRoot { get; init; }

Property Value

string

FileName

可执行(缺省 dotnet)。

public string FileName { get; init; }

Property Value

string

InstanceLabel

实例标签(§3.2——握手校验串;缺省 spec 文本)。

public string? InstanceLabel { get; init; }

Property Value

string

Mode

装载模式(--mode;缺省 dynamic)。

public CellRuntimeLoadMode Mode { get; init; }

Property Value

CellRuntimeLoadMode

Packs

pack dll 列表(--pack)。

public IReadOnlyList<string> Packs { get; init; }

Property Value

IReadOnlyList<string>

ParentPid

父进程 PID(零孤儿 §6.1——容器内 1s 轮询看门狗,父死以退出码 0 自杀)。 spawn 侧显式声明(显式优于隐式——不自动取 ProcessId): 宿主进程崩溃(非 drain)=容器孤儿(持资源、端口/段名残留),生产形态宿主必填; 缺省 null=不启用(与 CLI 缺省一致)。CLI/嵌入壳同语义走 --parent-pid(单一实现 CellOrphanWatch)。

public int? ParentPid { get; init; }

Property Value

int?

ResourceLimits

资源档(§5.2——翻译为 cgroup v2/JobObject,执法者是 OS)。

public CellResourceDeclaration? ResourceLimits { get; init; }

Property Value

CellResourceDeclaration

RuntimeDllPath

运行时 dll 路径(KernLab.Cell.Runtime.dll 的落点)。

public required string RuntimeDllPath { get; init; }

Property Value

string

ShmRingCapacityBytes

shm 单环容量(Carrier="shm";缺省 1MB,2 的幂)。

public int? ShmRingCapacityBytes { get; init; }

Property Value

int?

ShmSegmentName

shm 段名(Carrier="shm"——spawn 侧创建后回填;管线据此 Attach 同进程实例)。

public string? ShmSegmentName { get; }

Property Value

string

ShmWaitStrategy

shm 读侧等待策略(Carrier="shm";缺省 hybrid——Tier §7 三档,双端各选,busy-spin=低时延档)。

public ShmRingWaitStrategy? ShmWaitStrategy { get; init; }

Property Value

ShmRingWaitStrategy?

SocketDirectory

UDS socket 落点目录(--socket-dir)。

public string? SocketDirectory { get; init; }

Property Value

string

StartupTypeName

启动类型全名(--startup)。

public required string StartupTypeName { get; init; }

Property Value

string

WorkingDirectory

工作目录(pack/依赖解析的落点——AssemblyDependencyResolver 按 pack.dll 同目录找 .deps.json)。

public string? WorkingDirectory { get; init; }

Property Value

string