Linux: Guides and Practical Know-how | Page 17 | mironsoft Blog
Linux
-
Apr 19, 2025
Classic Linux AIO via libaio generates a separate system call with full context switch overhead for every I/O operation. io_uring replaces this model with two ring buffers shared between kernel and userspace, drastically cutting the number of required system calls, an advantage that becomes especially noticeable in I/O heavy database and search index workloads with high concurrency.
-
Apr 17, 2025
When a production system starts behaving unexpectedly, the quality of your diagnostic toolset decides whether the outage lasts minutes or hours. ps, top, ss, lsof and journalctl together provide a complete picture, provided you know the right flags and combine them into targeted Bash helpers.
-
Apr 15, 2025
Anyone running Magento stores across several application servers knows the problem: an error shows up somewhere between the load balancer, Nginx, PHP-FPM and the database server, and the relevant lines are scattered across three or four different machines. rsyslog solves this by forwarding logs from multiple servers over the network to one central server, consolidating them there and making them available for analysis in a single place, optionally encrypted and with delivery guarantees.
-
Apr 13, 2025
Anyone who spends many hours in the terminal every day feels every small friction immediately: slow prompts, missing autocompletion, unreadable colors, or long commands typed over and over again. Thoughtful terminal customization with a suitable shell, an informative prompt, sensible aliases and a well configured terminal emulator does not save seconds, it saves hours spread across a working week.
-
Apr 10, 2025
Jumbo Frames raise the maximum Ethernet frame size from 1500 to up to 9000 bytes, lowering the percentage of header overhead per transferred megabyte. For the internal connection between a web server and a MySQL database, or for backup and replication traffic, this can noticeably save CPU cycles, provided the MTU is set consistently on every device along the path.
-
Apr 9, 2025
A homegrown CLI tool only truly feels finished once the Tab key suggests subcommands, options and arguments, just like git or docker do. The Bash builtin complete together with compgen makes that possible without any external dependencies, from a simple word list up to suggestions loaded dynamically from a database or an API.
-
Apr 3, 2025
SSH hangs, monitoring no longer reports any values, and the team is unsure whether an immediate hardware reset is the right move. This runbook delivers a clear escalation order for an unresponsive server: from a quick network check, through out-of-band access and Magic SysRq, to a controlled reset as the absolute last resort.
-
Mar 30, 2025
LXC provides true system containers with a full userspace, its own init system and several parallel services, while Docker packages a single application process. For admins looking for a lightweight alternative to virtual machines, the LXD workflow, from installation through networking and storage to snapshots, offers a practical foundation for production environments where a fully-fledged operating system is needed rather than a single process.
-
Mar 29, 2025
Linux capabilities split the traditional root privilege into more than forty individual bits, so a process gets exactly one right, for example binding a privileged port, without inheriting everything else that comes with root. That is the difference between a least privilege design and a server that instantly loses full root access whenever a single compromised service goes wrong.
-
Mar 29, 2025
When a hundred servers start the same backup job at exactly 00:00, the shared database or the shared storage backend collapses under the load spike, even though each individual job would be harmless on its own. Deliberate scheduling jitter spreads out such start times randomly across a time window and prevents exactly this thundering herd effect. This article shows how jitter is applied in cron and systemd timers.