mmap a special file, like /dev/zero
(or use MAP_ANONYMOUS) as PROT_NONE
, later use mprotect to commit.
More Related Contents:
- Peak memory usage of a linux/unix process [closed]
- Is there any API for determining the physical address from virtual address in Linux?
- Are some allocators lazy?
- Retrieve CPU usage and memory usage of a single process on Linux?
- How to Free Inode Usage?
- How is Stack memory allocated when using ‘push’ or ‘sub’ x86 instructions?
- A way to determine a process’s “real” memory usage, i.e. private dirty RSS?
- In Linux, how to tell how much memory processes are using?
- limiting memory usage in R under linux
- How to access(if possible) kernel space from user space?
- Do Kernel pages get swapped out?
- Memory limit to a 32-bit process running on a 64-bit Linux OS
- Direct Memory Access in Linux
- How to convert DOS/Windows newline (CRLF) to Unix newline (LF) in a Bash script
- What’s the best way to send a signal to all members of a process group?
- How to print a number in assembly NASM?
- Exploring Docker container’s file system
- What’s the difference between nohup and ampersand
- Quickly create a large file on a Linux system
- Linux static linking is dead?
- Run bash script as daemon
- Number of executed Instructions different for Hello World program Nasm Assembly and C
- Git and hard links
- Running a self-contained ASP.NET Core application on Ubuntu
- What is the difference between double-ampersand (&&) and semicolon (;) in Linux Bash?
- ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known [closed]
- How do I script a “yes” response for installing programs?
- How do you filter out all unique lines in a file?
- Forking vs Threading
- How can I get position of cursor in terminal?