Professional Documents
Culture Documents
management in
Linux
Operating Systems
Instructor: Vagif Salimov
Student: Muhaddisa Narimanova
Group: BBA-041
What is Linux?
Here, we will assume that the MMU exists and the CPU can
convert any virtual address into the physical address.
Huge Pages Virtual Memory Primer
The translation of addresses requires various memory In a computer system, physical memory is a restricted
accesses. These memory accesses are very slow as resource. The physical memory isn't contiguous
compared to the speed of the CPU. To ignore spending necessarily. It may be accessible as a group of
precious cycles of the processor on the translation of the different ranges of addresses. Besides, distinct
address, CPUs manage the cache of these types of architectures of CPU and implementations of similar
translations known as Translation Lookaside Buffer (TLB). architecture have distinct perspectives of how these
types of ranges are specified . It will make dealing
with physical memory directly quite difficult and to
ignore this complexity a mechanism virtual memory
was specified . The virtual memory separates the
physical memory details through the application
software . It permits to keep of only required details
inside the physical memory. It gives a mechanism for
controlled data sharing and protection between
processes.
Zones Page Cache
Linux combines memory pages into some zones The common case to get data into memory is to read it
according to the possible usage. Let's say, through files as the physical memory is unstable.The
ZONE_HIGHMEM will include memory that isn't data will be put in the page cache to ignore expensive
mapped permanently into the address space of the access of disk on the subsequent reads whenever any file
kernel, ZONE_DMA will include memory that could be is read . Similarly, the data will be positioned inside the
used by various devices for DMA, and page cache and gets into the backing storage device
ZONE_NORMAL will include addressed pages whenever any file is written.
normally.
Nodes
Several multi-processor machines can be defined
as the NUMA - Non-Uniform Memory Access
systems. The memory is organized into banks that
include distinct access latency relying on the
Anonymous
"distance" through the processor in these types of
systems. All the banks are known as a node and
for all nodes, Linux creates a subsystem of
Memory
independent memory management. A single node
contains its zones set, list of used and free pages,
and several statistics counters.
It is feasible that the kernel would As the system executes, various tasks According to the usage of the page, it
not be able to reclaim sufficient allocate the free up the memory is treated by Linux memory
memory and the loaded machine space and it becomes partitioned. management differently. The pages
memory would be exhausted to However, it is possible to restrict that could be freed either due to they
proceed to implement. scattered physical pages with virtual cache the details that existed
memory. Memory compaction elsewhere on a hard disk or due to
defines the partitioning problems. they could be again swapped out to a
hard disk, are known as reclaimable.
CMA Debugfs Interface
The goal of this file is to give a short overview of A TLB can be defined as the virtual-to-physical
hugetlbpage support inside the Linux kernel. This translation cache. It is typically a very scarce resource
type of support is created on the top of more than over a processor . Various operating systems try to
one support of the page size that is given by most create the best use of a restricted number of TLB
of the latest architectures. resources.
run
It will set to 0 for stopping ksmd daemon from
executing but continue mergers pages,