Skip to main content

linux-kernel-systemd-internals

Provides patterns for Linux kernel architecture, the systemd init subsystem, and advanced server administration based on systemd for Linux SysAdmins (David Both) and Understanding Linux Kernel Development. Covers unit management (.service, .socket, .timer, .mount), cgroups v2, journald, namespaces, kernel networking (Netfilter, eBPF, sockets), and sysctl performance tuning.

소스 정보

저장소
dandgabr/Coacus
최근 소스 활동
2026년 9월 28일 14:03
감지된 SKILL.md 언어
영어
스타
4
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
5 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
linux-kernel-systemd-internals
description
Provides patterns for Linux kernel architecture, the systemd init subsystem, and advanced server administration based on systemd for Linux SysAdmins (David Both) and Understanding Linux Kernel Development. Covers unit management (.service, .socket, .timer, .mount), cgroups v2, journald, namespaces, kernel networking (Netfilter, eBPF, sockets), and sysctl performance tuning.
# Linux Kernel, systemd, and Advanced System Administration This skill establishes the standards and practices for Linux operating-system engineering, service management through **systemd**, resource control with **cgroups v2**, and network/kernel tuning documented by **David Both**, **Lincoln Boucher**, and **Christian Benvenuti**. --- ## 🐧 1. systemd Architecture and Unit Types ``` ┌─────────────────────────────────────────────────────────────┐ │ systemd (PID 1) │ ├──────────────┬──────────────┬──────────────┬────────────────┤ │ .service │ .socket │ .timer │ .mount │ │ (Daemons and │ (Network │ (Precise │ (Mount │ │ Processes) │ Activation) │ Scheduling) │ Points) │ └──────────────┴──────────────┴──────────────┴────────────────┘ ``` ### Anatomy of a Secure Service (`/etc/systemd/system/myapp.service`) ```ini [Unit] Description=High-Availability Microservice Platform After=network.target postgresql.service Requires=postgresql.service [Service] Type=notify ExecStart=/usr/local/bin/myapp --config /etc/myapp/config.yaml ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=5s # Hardening and Security Isolation User=appuser Group=appgroup NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true PrivateDevices=true ProtectKernelModules=true ProtectKernelTunables=true ProtectControlGroups=true RestrictRealtime=true MemoryMax=2G CPUQuota=200% [Install] WantedBy=multi-user.target ``` --- ## ⚙️ 2. Kernel Performance Tuning (`/etc/sysctl.d/99-custom.conf`) | Sysctl Parameter | Recommended Value | Purpose | | :--- | :--- | :--- | | `net.core.somaxconn` | `65535` | Increases the size of the pending-connection queue for the TCP listener. | | `net.ipv4.tcp_max_syn_backlog` | `65535` | Protects against traffic spikes and SYN floods. | | `net.ipv4.ip_local_port_range` | `1024 65535` | Expands the ephemeral port range for outbound connections. | | `vm.swappiness` | `10` | Avoids aggressive swap use, preserving RAM for cache. | | `fs.file-max` | `2097152` | Global limit of open file descriptors. |
GitHub에서 보기