Tagged articles
11 articles
Page 1 of 1
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 13, 2021 · Backend Development

How to Prevent Orphan Processes When Running Commands in Go

This article explains why Go programs that spawn child processes can leave orphaned processes after a kill, and demonstrates two robust solutions: creating a new process group with syscall.Kill and using Linux prctl (via CGO or RawSyscall) to ensure child processes terminate when the parent exits.

orphan processesprctlprocess groups
0 likes · 11 min read
How to Prevent Orphan Processes When Running Commands in Go
Liangxu Linux
Liangxu Linux
Sep 2, 2020 · Fundamentals

Why System Calls Are So Expensive: From INT 0x80 to vDSO

This article explains how Linux system calls work, compares their overhead to regular function calls, and details the three implementation methods—software interrupts, fast syscall instructions, and the virtual dynamic shared object (vDSO)—including their performance trade‑offs and practical usage.

INT 0x80Linuxkernel performance
0 likes · 16 min read
Why System Calls Are So Expensive: From INT 0x80 to vDSO
ITPUB
ITPUB
Jun 7, 2020 · Fundamentals

Why Do System Calls Cost So Much? Exploring Linux’s Three Execution Methods

This article explains how Linux implements system calls via software interrupts, fast syscall/sysenter instructions, and the virtual dynamic shared object (vDSO), comparing their performance to regular function calls and showing concrete code examples and step‑by‑step execution details.

AssemblyLinuxsyscall
0 likes · 15 min read
Why Do System Calls Cost So Much? Exploring Linux’s Three Execution Methods
Didi Tech
Didi Tech
Apr 18, 2019 · Fundamentals

Understanding Go's Syscall Mechanism and Runtime Interaction

Go’s syscall mechanism uses assembly‑implemented entry functions like Syscall and Syscall6 to invoke the kernel, while the runtime’s entersyscall and exitsyscall hooks notify the scheduler, allowing P resources to be released during blocking calls and handling privileged low‑level syscalls separately.

GoSchedulerconcurrency
0 likes · 17 min read
Understanding Go's Syscall Mechanism and Runtime Interaction