Os PPT
Os PPT
Os PPT
OPERATING
SYSTEM
Presented By –
Nidhi Madnani – A026
Netra Mahadik – A027
Krishna Palan – A040
INTRODUCTION
• Linux is a modern, free operating system
based on UNIX standards.
• It was first developed as a small but self-
contained kernel in 1991 by Linus Torvalds,
with the major design goal of UNIX
compatibility.
• The core Linux operating system kernel is
entirely original, but it can run much existing
free UNIX software.
• It has been designed to run efficiently and
reliably on common PC hardware, but also
runs on a variety of other platforms
• It can be used from wristwatches to
supercomputers. It is everywhere in our
phones, laptops, PCs, cars, and even in
refrigerators.
• The Linux kernel is distributed under the
GNU General Public License (GPL).
OVERVIEW OF
LINUX
ARCHITECTURE
THE SHELL
• BUDDY ALGORITHM
• SLAB ALLOCATOR
• Page cache stores entire pages of file contents for local and
network file I/O.
SLAB
ALLOCATION
STRATEGY
A slab is used for allocating memory for
kernel data structures and is made up of
one or more physically contiguous
pages.
A cache consists of one or more slabs.
There is a single cache for each unique
kernel data structure – a cache for the
data structure representing process
descriptors, a cache for file objects, a
cache for semaphores and so forth.
SLAB – ALLOCATION
ALGORITHM
• The slab allocation algorithm uses cache to store kernel
objects. When a cache is created, a number of objects are
allocated to the cache.
• The number of objects in the cache depends on the size of
the associated
• For example, a 12-KB slab (made up of three contiguous 4-KB
pages) could store six 2-KB objects.
• In LINUX, a slab may be in one of three possible states:
Full
Empty
Partial
VIRTUAL
MEMORY
Virtual memory system maintains the address space visible to each process.
It creates pages of virtual memory on demand, and manages the loading of these pages from disk;
Or swapping back out to disk as required.
The VM manager maintains two separate views of a process’s address space, logical view and physical view.
VM REGIONS
AND
LIFETIME Lifetime of a Virtual Address space :
• The kernel creates a new virtual
• Linux implements several types of address space
virtual memory. Most memory 1. When a process runs a new program
regions either by a file or by nothing. with the exec() system call.
2. Upon creation of a new process by
• A region backed by nothing is the the fork() system call.
simplest type of virtual memory
region. Such a region represents
demand-zero memory: when a
process tries to read a page in such a
region, it is simply given back a page
of memory filled with zeros.
LINUX FILE SYSTEM
• Structured collection of files on a disk drive or a partition.
• Manages the file name, file size, creation date, and much more
information about a file.
Ext
• Stands for Extended File System
• Developed for MINIX OS
• Older version, so no longer used
Ext2
• Maximum file size: 2TB
• Filename size: 255 characters
• Supports file compression
TYPES OF LINUX FILE SYSTEM
Ext3
• Maximum file size: 2TB
• Filename size: 255 characters
• Supports backward compatibility
Ext4
• Faster file system among all Ext file systems
• Compatible for SSD
• Default file system in Linux
TYPES OF LINUX FILE SYSTEM
JFS
• Stands for Journaled File System
• Developed by IBM
• Alternative to Ext4 file system
• Can be used when CPU power is limited
ReiserFS
• Alternative to Ext3 file system
• Dynamically supports file extension
• Has some drawbacks in performance
ACCESS RIGHTS
chmod Command
• Stands for change mode
• Used to change the access permissions of files and directories
The second group of three characters (5-7) represents the permissions for
the group to which the file belongs.
Example: -rwxr-xr-- represents that the group has read (r) and execute (x)
permission, but no write permission.
The last group of three characters (8-10) represents the permissions for
everyone else.
Example: -rwxr-xr-- represents that there is read (r) only permission.
SYMBOLIC
MODE
Ways To Use
chmod
Command
ABSOLUTE
MODE
SYMBOLIC MODE
In symbolic mode, you can add, delete, or specify the permission set you
want by using the following operators.