Faizan Shaikhfaizanshaikh.hashnode.dev·7 hours agoUnlocking System Efficiency: Understanding /proc/sys/vm/drop_cachesUnlocking System Efficiency: Understanding /proc/sys/vm/drop_caches In the world of Linux system administration, performance optimization is both an art and a science. While monitoring tools like htop help visualize resource usage, what if you encoun...Linux
Dhruvi Shahdhruvishah.hashnode.dev·7 hours ago“with” in Python: The Secret to Cleaner Resource Management✨If you've ever found yourself juggling file handles, database connections, or network sockets in Python, you know how easy it is to forget to close them properly. with is with you for situation just like this 😉 What is the with Statement? The with ...Python
Ansh Balanlinuxfordevops.hashnode.dev·Dec 18, 2024Part 5: Memory Commands, While Loop, and Vim CommandIn this section, we will explore memory management commands, while loops, the Vim text editor, and more. We’ll also create a shell script that ties everything together to monitor disk space. Important Memory Commands 1. free Command The free command ...Devops
Akshay Siwalakshay-siwal.hashnode.dev·Dec 17, 2024Tech Interview SeriesWhat Happens When You malloc 2 GB but Don’t Use It? malloc reserves virtual memory, not physical memory: When you call malloc(2GB), the operating system reserves 2 GB of address space for your process in the virtual memory. No physical RAM is allo...technology
Aakashi Jaiswalaakashi.hashnode.dev·Dec 15, 2024FeaturedDemystifying Memory Management: From Deadlocks to Page Replacement PoliciesA deadlock occurs when two or more processes are stuck waiting for each other to release resources, causing them all to stop functioning. Imagine two people trying to cross a narrow bridge from opposite sides; if they both refuse to back up for the o...31 likes·56 readsBanker's Algorithm
Shashi Shekharpointers.hashnode.dev·Dec 13, 2024Dynamic Memory AllocationDynamic memory allocation allows you to allocate memory at runtime, which provides flexibility when dealing with variable-sized data structures (like arrays or linked lists) that may not be known at compile time. 2. Memory Management Functions in C m...C
Dristanta Silwaldristantasilwal.hashnode.dev·Dec 8, 2024Unpacking Memory Locations for VariablesIn the world of programming, memory is more than just a storage medium; it’s a dynamic playground where variables interact with data. But how do variables know where to "live" and how long they should exist? Let’s embark on a journey to uncover the f...memory-management
Zouhair Grirzouhairgr-blog.hashnode.dev·Nov 27, 2024Understanding Memory Layout: A Comprehensive Guideat the first we need to know what the section of memory The code segment (also known as the text segment) is a section of a program's memory that contains the executable instructions. The code segment is typically read-only to prevent accidental mo...1 likememory-management
Shivam Dubeygo-tutorial.hashnode.dev·Nov 23, 2024A Beginner's Guide to Pointers in GoWhen working with Go, understanding memory management and pointers can help you write more efficient and optimized code. In this article, we’ll explain pointers, their role in memory management, and how to use them effectively. What Are Pointers? A ...Go Language
Shivam Dubeygo-tutorial.hashnode.dev·Nov 22, 2024Memory Management in Go: A Beginner’s GuideMemory management is a crucial concept in programming, and Go makes it simpler with its automatic garbage collector and efficient memory allocation mechanisms. This article explains how memory is allocated, its lifetime, and the difference between th...memory management in go