Linux: Guides and Practical Know-how | Page 21 | mironsoft Blog
Linux
-
Jan 21, 2025
A cron job that fails silently leaves no error message on a screen anyone reads. This guide explains how MAILTO actually works, how to evaluate exit codes in cron scripts, how healthcheck pings act as a dead man switch to catch missing executions, and how all of this grows into a reliable alerting chain for cron jobs.
-
Jan 21, 2025
Huge pages reduce the number of page table entries the CPU has to manage for a large InnoDB buffer pool, lowering the rate of expensive translation lookaside buffer misses. Anyone who confuses Transparent Huge Pages with classic huge pages risks exactly the latency spikes they were trying to avoid.
-
Jan 15, 2025
A single second of clock drift is enough to break TLS handshakes, corrupt log correlation, and confuse database replication. NTP synchronizes system clocks across a network, and chrony is the modern reference implementation for that on Linux. This article shows how NTP works, how to configure and monitor chrony, and how to secure synchronization against manipulation.
-
Jan 12, 2025
ulimit controls how many files, processes, and how much virtual memory a process may use, through a clear interplay of soft and hard limits. Knowing the typical cause of too-many-open-files errors in deployment scripts means setting limits deliberately, either scoped to a script's runtime or permanently via systemd, instead of discovering the failure in production.
-
Jan 12, 2025
Anyone who only knows container resource limits as a CLI flag like Docker --memory or Kubernetes resources.limits rarely understands what actually happens underneath. Both mechanisms are just thin wrappers around the cgroups v2 controllers cpu, memory, and io, whose direct handling through systemd offers considerably more control than any container tool ever exposes on the surface.
-
Jan 11, 2025
A disk that suddenly fills up stalls deployments and databases, often without warning. df instantly tells you which filesystem is affected, du -sh sorted by size pinpoints the exact culprit, and with the right toolkit you can reliably clean up logs, caches, and old releases before the server goes down.
-
Jan 11, 2025
Alongside the well known virtual filesystems /proc and /sys, there is a third, far less documented kernel interface called debugfs, purpose built for debug information without any API stability guarantee. Knowing where debugfs is mounted and what lives there surfaces information that /proc and /sys simply do not provide.
-
Jan 9, 2025
File Integrity Monitoring with AIDE detects unauthorized changes to critical system and configuration files before they become an undetected security incident. Setting up baseline, rules and automated checks correctly delivers a reliable early warning system that simultaneously satisfies central compliance requirements.
-
Jan 3, 2025
Anyone keeping PHP workers and queue consumers alive with nothing more than nohup or a screen session risks silent outages after every server reboot, deployment, or crash. A properly written systemd unit file with a clear restart policy, a dedicated service user, and automatic journald integration makes PHP background processes resilient, observable, and production-ready, without needing extra tools like Supervisor or Monit.