Tagged articles
procfs
28 articles · Page 1 of 1
This guide explains how to read and analyze the most common /proc files that expose kernel memory statistics—such as zoneinfo, pagetypeinfo, meminfo, buddyinfo, slabinfo, vmstat, and related files—highlighting key fields and what they reveal about memory pressure, fragmentation, and possible leaks.
Linuxkernelmemory management
0 likes · 14 min read

The article explains that occasional recovery of rm ‑rf deletions is possible, but no single command guarantees full restoration; it outlines the Linux kernel behavior, immediate containment steps, how to examine backups, snapshots, open file descriptors, block‑level imaging, filesystem‑specific tools, verification, and post‑recovery best practices for production environments.
FilesystemLinuxbackup
0 likes · 36 min read

This article explains the core philosophy of Linux’s “everything is a file” design, walks through the kernel’s VFS layer, inode, dentry, superblock, logical blocks, and specific file systems, and provides hands‑on examples—including procfs initialization and read/write code—to help readers master Linux kernel file system internals.
InodeLinuxVFS
0 likes · 45 min read

This comprehensive guide explores the Linux kernel file system architecture, covering fundamental concepts such as inodes, dentries, superblocks, logical blocks, the VFS layer, common on‑disk filesystems, mounting procedures, and a deep dive into the proc virtual filesystem with code examples and practical usage tips.
InodeVFSfile-system
0 likes · 39 min read

This guide explains Linux's virtual‑physical memory model, shows how to inspect system and process memory via /proc files, demonstrates a 100 MiB allocation test, and provides a step‑by‑step workflow—including ps sorting and Valgrind usage—to locate and fix memory leaks.
LinuxMemory LeakSystem Monitoring
0 likes · 16 min read

This article explains the principles of GPU kernel virtualization by analyzing the cgpu project's source code, detailing kernel interception of device operations, the driver’s file_operations, module initialization and cleanup, procfs interfaces, scheduling logic, and compilation steps on Ubuntu 22.04.
GPU virtualizationKernel ModuleLinux kernel
0 likes · 5 min read

This article explains the exact meaning of the “buffers” and “cached” fields shown by the Linux free command, detailing how they are derived from /proc/meminfo, the kernel source calculations, swap cache interactions, and provides verification experiments with code examples.
BuffersLinuxMemory
0 likes · 11 min read

This guide compiles a comprehensive set of Linux command‑line utilities—including shell quoting rules, environment handling, text processing, process management, system monitoring, networking, and /proc filesystem exploration—to help sysadmins diagnose, locate, and resolve a wide range of system issues efficiently.
Linuxperformanceprocfs
0 likes · 17 min read

The article explains how the Linux free utility calculates the “buffers” and “cached” fields, detailing their definitions, the kernel source functions that produce them, the role of block‑device page cache versus ordinary file cache, and how to verify the numbers with simple commands.
BuffersLinuxcached
0 likes · 10 min read

This article explains how Linux reports memory usage, clarifies the meaning of free, buffers, cache, and available fields, details /proc/meminfo entries, distinguishes page‑cache, buffer‑pages, shared memory, and shows how process‑level tools like smaps and top present memory statistics.
memory-managementpage-cacheprocfs
0 likes · 14 min read

This article explains how Linux reports memory usage, covering the free command output, the evolution of buffer and page caches, detailed /proc/meminfo fields, shared memory accounting, kernel memory statistics, huge pages, and per‑process metrics such as smaps and top.
LinuxPage CacheSystem Monitoring
0 likes · 14 min read

This guide lists twelve Linux tools and commands—including /proc/meminfo, atop, free, GNOME System Monitor, htop, KDE System Monitor, memstat, nmon, ps, smem, top, and vmstat—that let you view and analyze RAM consumption in real time, with usage examples and screenshots.
Linuxmemory monitoringprocfs
0 likes · 6 min read

This comprehensive guide explores Linux kernel debugging essentials, covering pseudo filesystems like procfs, sysfs, debugfs, relayfs, and advanced tracing tools such as ftrace, kprobe, systemtap, perf, KGTP, and LTTng, with practical commands and reference links.
FtraceLinux kernelSystemTap
0 likes · 25 min read

This article provides a comprehensive overview of the Linux kernel, explaining its core components, memory and process management, device drivers, system calls, and security, while detailing essential commands such as uname, lsmod, modinfo, modprobe, depmod, insmod, rmmod, sysctl, and guiding readers through kernel compilation and configuration using /proc and /sys.
LinuxModulescompilation
0 likes · 22 min read

Linux load average, a key performance metric, is computed by periodically aggregating per‑CPU runnable and uninterruptible task counts into a global instantaneous load, then applying an exponential weighted moving average to produce 1‑, 5‑, and 15‑minute averages, which are exposed to user space via the /proc/loadavg pseudo‑file.
EWMALinuxLoad Average
0 likes · 18 min read

This article explains the definitions of Linux buffers and cache, how the free command reports them, and demonstrates through experiments that buffers can cache both reads and writes while cache primarily handles page caching for file reads and writes.
BufferCacheLinux
0 likes · 6 min read

This article explains the inner workings of the Linux netstat command, walks through reading /proc/net/tcp and related files, demonstrates how to map sockets to processes, and provides a complete Go implementation of a lightweight netstat utility with code examples and detailed parsing logic.
GoLinuxSocket
0 likes · 12 min read

This guide shows Linux users how to retrieve detailed CPU information—including model, frequency, physical and logical core counts, and hyper‑threading status—by querying /proc/cpuinfo with simple command‑line filters.
CPUHyper-ThreadingLinux
0 likes · 4 min read

This article walks through a real‑world Linux kernel bug investigation, showing how to detect a frozen process, use tools like ps, strace, pstack, and the /proc filesystem to trace system calls, identify the blocking kernel function, and pinpoint the root cause.
LinuxNFSdebugging
0 likes · 10 min read


ITPUBMar 1, 2021 · Operations
This step‑by‑step guide shows how to locate a Linux process frozen in uninterruptible sleep by using tools such as top, ps, WCHAN, /proc files, strace, pstack, and kernel stack traces to pinpoint the offending system call and its root cause.
debuggingprocessprocfs
0 likes · 10 min read

Learn a quick, unconventional method to conceal a Linux process from userspace by simply altering its PID with a one‑line SystemTap script, demonstrating how modifying kernel task structures can make the process invisible in procfs and evade standard detection tools.
LinuxSystemTapprocess hiding
0 likes · 3 min read

This article demonstrates how to recover mistakenly deleted InnoDB .ibd files by locating the open file handle through Linux procfs, locking database traffic, copying the hidden file, and restoring it to a running MySQL instance.
InnoDBLinuxMySQL
0 likes · 3 min read


ITPUBSep 10, 2020 · Fundamentals
The article explains why Linux’s free command reports far higher used memory than the RSS values shown by ps aux, by breaking down buffers, cache, slab allocations, page tables and shared libraries, and provides shell scripts to calculate each component.
LinuxMemoryRSS
0 likes · 10 min read

This article explains the distinction between Linux Buffers and Cache, how they appear in the free command, their representation in /proc/meminfo, and demonstrates practical experiments using vmstat and dd to observe their behavior during read and write operations, concluding with clear usage guidelines.
BuffersCacheLinux
0 likes · 9 min read

The article examines Android cold‑start performance by comparing three process‑creation timestamps—Application <init>, Process.getStartElapsedRealTime, and /proc/self/stat starttime—detailing their origins, extraction methods, conversion formulas, and practical guidance on which to use for accurate startup measurement.
AndroidProcess TimingProcess.getStartElapsedRealTime
0 likes · 11 min read


ITPUBSep 15, 2017 · Fundamentals
This article explains Linux's two‑level memory model, lazy physical allocation, the glibc malloc implementation, chunk metadata, large‑vs‑small allocations, memory holes, debugging hooks, leak detection with mtrace, and practical ways to measure a process's memory usage via /proc.
debuggingglibcmalloc
0 likes · 15 min read

This article explains how to create Python scripts that monitor Linux server CPU, load, memory, and network usage by reading data from the /proc virtual filesystem, providing step‑by‑step code examples and illustrating each script’s output with screenshots.
LinuxPythonmonitoring
0 likes · 11 min read

This guide lists thirteen Linux commands and tools—including /proc/cpuinfo, cpufreq-info, cpuid, dmidecode, hardinfo, i7z, likwid, lscpu, lshw, lstopo, numactl, and x86info— that reveal comprehensive CPU hardware information such as vendor, model, frequencies, cores, caches, and topology.
CPULinuxcommands
0 likes · 7 min read
