SlideShare uma empresa Scribd logo
1 de 25
2 – Operating Systems



Marian Marinov     Borislav Varadinov
CEO of 1H Ltd.   System Administrator
mm@1h.com             bobi [ at ] itp.bg
What is Operating System?
➢ To manages hardware resources.

➢ To provides common services for
the application developers.

➢To acts as an intermediary
between the user(s) and the
computer system. From a user’s
point of view, the operating system
is there to execute programs.
➢Non-interrupted execution

➢Interrupted execution
Arduino example
Arduino example
Kernel architecture

     l space
Kerne

            e
  User spac
Monolithic kernels
Micro kernels
Hybrid kernels
Kernel architectures
Kernel software
➢   CPU Handling
➢   Memory Manager
➢   Interrupt handler
➢   Device drivers
➢   File systems
➢   Network
➢   CPU Scheduler
➢   I/O Scheduler
➢   Network Scheduler
➢   Security mechanisms
Multi-platform
➢   27 CPU Architectures
➢   x86 / x86_64
➢   RISC / PA-RISC
➢   SPARC
➢   ARM
➢   24 x86 CPU types
➢   486/586/K5...
➢   Athlon/Opteron
➢   Cyrix
➢   AMD Elan
➢   Winchip
➢   Intel Pentium*, Atom, Core*
Memory Manager (MM)

➢ Does the physical memory allocation
➢ Implements Physical Address Extension
(PAE)

➢   Linux specific allocation
➢   SLAB – per cpu and per node queues
➢   SLUB – faster and default
➢   SLOB – fragmentation
➢   Memory compaction
➢   Huge pages
Interrupt Manager




➢This code is a simple
 dispatcher of events
Device drivers....
File Systems
➢ The Virtual File System(VFS) layer is the
'One ring to rule them all' system in terms of
file systems.
➢ It is responsible for the main file system
cache
➢ Devices
                   Network           Et
                                  W he
                                W i F i rn
                              G iM         et
➢ Drivers                    A PR ax
                              m S
                               at /H
➢ Protocols                      eu S
                                   r R DP
                                      ad A
                                        io

                   ARP
                     IP
                       MP
                    IC P
                      UD
     SC                TCP
   DC TP
 RD CP




                                   Tu AN es
B. S




                                     VL idg
  A.




                                     nn s
                                          s
    T.M




                                       el
                                      Br
        .A
          .N
               .
Types of Operating Systems

➢   Single/Multi-platform
➢   Single/Multi-processing
➢   Single/Multi-tasking
➢   Cooperative
➢   Preemptive
➢   Single/Multi-threading
➢   Single/Multi-user
➢   Real-time
Thread scheduling
➢ Windows

➢ Linux
  - Completely Fair Scheduler (CSF)
  - Niceness
          CPU Core 0       CPU Core 1

          Level 00
           Level 0         Level -19
                            Level 00
            Level 0
          PIDLevelTICKS
                             Level 0
           PID TICKS       PIDLevelTICKS
                            PID TICKS
            PID    TICKS     PID    TICKS
          21426 185TICKS
             PID 185
           21426           31512 132TICKS
                              PID
            21426 185       21426 185
          64723 200185
             21426           21426 185
           64723 200       34231 94 185
                              21426
                            64723 200
            64723 200        64723 200
             64723 200        64723 200
I/O scheduling

➢Linux I/O schedulers
➢ Completely Fair Queuing - per-process
queues and then allocates time slices for
each of the queues to access the disk
➢ Anticipatory - "anticipating" synchronous
read, good for video streaming
➢ Deadline - imposing a deadline on all I/O
operations to prevent starvation of requests
➢ Noop - simple FIFO queue and implements
request merging
Network scheduling
➢ Windows

➢ Linux
➢ Traffic queuing with
 different 23 different QoS
 mechanisms
➢ INGRESS and
 EGRESS queuing
Hardware




http://academy.telerik.com/student-courses/software-technologies/os-windows-linux/
Free Trainings @ Telerik Academy

   C# Programming @ Telerik Academy
       csharpfundamentals.telerik.com
 Telerik Software Academy

       academy.telerik.com
 Telerik Academy @ Facebook

       facebook.com/TelerikAcademy
 Telerik Software Academy Forums

       forums.academy.telerik.com

Mais conteúdo relacionado

Mais procurados

DefCon 2012 - Sub-1 GHz Radio Frequency Security
DefCon 2012 - Sub-1 GHz Radio Frequency SecurityDefCon 2012 - Sub-1 GHz Radio Frequency Security
DefCon 2012 - Sub-1 GHz Radio Frequency SecurityMichael Smith
 
Robotix Tutorial 9
Robotix Tutorial 9Robotix Tutorial 9
Robotix Tutorial 9ankuredkie
 
ACRN vMeet-Up EU 2021 - debug ACRN hypervisor
ACRN vMeet-Up EU 2021 - debug ACRN hypervisorACRN vMeet-Up EU 2021 - debug ACRN hypervisor
ACRN vMeet-Up EU 2021 - debug ACRN hypervisorProject ACRN
 
BKK16-410 SoC Idling & CPU Cluster PM
BKK16-410 SoC Idling & CPU Cluster PMBKK16-410 SoC Idling & CPU Cluster PM
BKK16-410 SoC Idling & CPU Cluster PMLinaro
 
Asus notebook training_actre_l3-2
Asus notebook training_actre_l3-2Asus notebook training_actre_l3-2
Asus notebook training_actre_l3-2Iman Teguh Pribadi
 
Ls catalog thiet bi tu dong gm e_0908_dienhathe.vn
Ls catalog thiet bi tu dong gm e_0908_dienhathe.vnLs catalog thiet bi tu dong gm e_0908_dienhathe.vn
Ls catalog thiet bi tu dong gm e_0908_dienhathe.vnDien Ha The
 
Cyclone III FPGA Overview Part2
Cyclone III FPGA Overview Part2Cyclone III FPGA Overview Part2
Cyclone III FPGA Overview Part2Premier Farnell
 
Getting to Know the R8C/2A, 2B Group MCUs
Getting to Know the R8C/2A, 2B Group MCUs Getting to Know the R8C/2A, 2B Group MCUs
Getting to Know the R8C/2A, 2B Group MCUs Premier Farnell
 
Input Output Interfaces
Input Output InterfacesInput Output Interfaces
Input Output InterfacesDarling Jemima
 
Cyclone II FPGA Overview
Cyclone II FPGA OverviewCyclone II FPGA Overview
Cyclone II FPGA OverviewPremier Farnell
 
Kernel Recipes 2015 - The Dronecode Project – A step in open source drones
Kernel Recipes 2015 - The Dronecode Project – A step in open source dronesKernel Recipes 2015 - The Dronecode Project – A step in open source drones
Kernel Recipes 2015 - The Dronecode Project – A step in open source dronesAnne Nicolas
 
Nvidia tegra K1 Presentation
Nvidia tegra K1 PresentationNvidia tegra K1 Presentation
Nvidia tegra K1 PresentationANURAG SEKHSARIA
 
Introduction to Vortex86DX2 Motion-Control Evaluation Board
Introduction to Vortex86DX2 Motion-Control Evaluation BoardIntroduction to Vortex86DX2 Motion-Control Evaluation Board
Introduction to Vortex86DX2 Motion-Control Evaluation Boardroboard
 
Optimizing the Design and Implementation of KVM/ARM - SFO17-403
Optimizing the Design and Implementation of KVM/ARM - SFO17-403Optimizing the Design and Implementation of KVM/ARM - SFO17-403
Optimizing the Design and Implementation of KVM/ARM - SFO17-403Linaro
 
17 october embedded seminar
17 october embedded seminar17 october embedded seminar
17 october embedded seminarAmir Sherman
 
Quanta ze7 r1b_schematics
Quanta ze7 r1b_schematicsQuanta ze7 r1b_schematics
Quanta ze7 r1b_schematicsDATACORP
 

Mais procurados (20)

DefCon 2012 - Sub-1 GHz Radio Frequency Security
DefCon 2012 - Sub-1 GHz Radio Frequency SecurityDefCon 2012 - Sub-1 GHz Radio Frequency Security
DefCon 2012 - Sub-1 GHz Radio Frequency Security
 
Meta88full
Meta88fullMeta88full
Meta88full
 
Robotix Tutorial 9
Robotix Tutorial 9Robotix Tutorial 9
Robotix Tutorial 9
 
ACRN vMeet-Up EU 2021 - debug ACRN hypervisor
ACRN vMeet-Up EU 2021 - debug ACRN hypervisorACRN vMeet-Up EU 2021 - debug ACRN hypervisor
ACRN vMeet-Up EU 2021 - debug ACRN hypervisor
 
BKK16-410 SoC Idling & CPU Cluster PM
BKK16-410 SoC Idling & CPU Cluster PMBKK16-410 SoC Idling & CPU Cluster PM
BKK16-410 SoC Idling & CPU Cluster PM
 
Pic16 c7x
Pic16 c7xPic16 c7x
Pic16 c7x
 
Asus notebook training_actre_l3-2
Asus notebook training_actre_l3-2Asus notebook training_actre_l3-2
Asus notebook training_actre_l3-2
 
Ls catalog thiet bi tu dong gm e_0908_dienhathe.vn
Ls catalog thiet bi tu dong gm e_0908_dienhathe.vnLs catalog thiet bi tu dong gm e_0908_dienhathe.vn
Ls catalog thiet bi tu dong gm e_0908_dienhathe.vn
 
Cyclone III FPGA Overview Part2
Cyclone III FPGA Overview Part2Cyclone III FPGA Overview Part2
Cyclone III FPGA Overview Part2
 
Getting to Know the R8C/2A, 2B Group MCUs
Getting to Know the R8C/2A, 2B Group MCUs Getting to Know the R8C/2A, 2B Group MCUs
Getting to Know the R8C/2A, 2B Group MCUs
 
Input Output Interfaces
Input Output InterfacesInput Output Interfaces
Input Output Interfaces
 
Cyclone II FPGA Overview
Cyclone II FPGA OverviewCyclone II FPGA Overview
Cyclone II FPGA Overview
 
Sukh
SukhSukh
Sukh
 
chip level repairing
chip level repairingchip level repairing
chip level repairing
 
Kernel Recipes 2015 - The Dronecode Project – A step in open source drones
Kernel Recipes 2015 - The Dronecode Project – A step in open source dronesKernel Recipes 2015 - The Dronecode Project – A step in open source drones
Kernel Recipes 2015 - The Dronecode Project – A step in open source drones
 
Nvidia tegra K1 Presentation
Nvidia tegra K1 PresentationNvidia tegra K1 Presentation
Nvidia tegra K1 Presentation
 
Introduction to Vortex86DX2 Motion-Control Evaluation Board
Introduction to Vortex86DX2 Motion-Control Evaluation BoardIntroduction to Vortex86DX2 Motion-Control Evaluation Board
Introduction to Vortex86DX2 Motion-Control Evaluation Board
 
Optimizing the Design and Implementation of KVM/ARM - SFO17-403
Optimizing the Design and Implementation of KVM/ARM - SFO17-403Optimizing the Design and Implementation of KVM/ARM - SFO17-403
Optimizing the Design and Implementation of KVM/ARM - SFO17-403
 
17 october embedded seminar
17 october embedded seminar17 october embedded seminar
17 october embedded seminar
 
Quanta ze7 r1b_schematics
Quanta ze7 r1b_schematicsQuanta ze7 r1b_schematics
Quanta ze7 r1b_schematics
 

Semelhante a 2. operating systems

Os Madsen Block
Os Madsen BlockOs Madsen Block
Os Madsen Blockoscon2007
 
Add sale davinci
Add sale davinciAdd sale davinci
Add sale davinciAkash Sahoo
 
DEF CON 27 - ALI ISLAM and DAN REGALADO WEAPONIZING HYPERVISORS
DEF CON 27 - ALI ISLAM and DAN REGALADO WEAPONIZING HYPERVISORSDEF CON 27 - ALI ISLAM and DAN REGALADO WEAPONIZING HYPERVISORS
DEF CON 27 - ALI ISLAM and DAN REGALADO WEAPONIZING HYPERVISORSFelipe Prado
 
CampusSDN2017 - Jawdat: SDN Technology Evolvement
CampusSDN2017 - Jawdat: SDN Technology EvolvementCampusSDN2017 - Jawdat: SDN Technology Evolvement
CampusSDN2017 - Jawdat: SDN Technology EvolvementJawdatTI
 
Evergreen Sysadmin Survival Skills
Evergreen Sysadmin Survival SkillsEvergreen Sysadmin Survival Skills
Evergreen Sysadmin Survival SkillsEvergreen ILS
 
Snabbflow: A Scalable IPFIX exporter
Snabbflow: A Scalable IPFIX exporterSnabbflow: A Scalable IPFIX exporter
Snabbflow: A Scalable IPFIX exporterIgalia
 
linux monitoring and performance tunning
linux monitoring and performance tunning linux monitoring and performance tunning
linux monitoring and performance tunning iman darabi
 
Demystifying Visual Studio 2012 Performance Tools
Demystifying Visual Studio 2012 Performance ToolsDemystifying Visual Studio 2012 Performance Tools
Demystifying Visual Studio 2012 Performance ToolsMartin Kulov
 
RINA overview and ongoing research in EC-funded projects, ISO SC6 WG7
RINA overview and ongoing research in EC-funded projects, ISO SC6 WG7RINA overview and ongoing research in EC-funded projects, ISO SC6 WG7
RINA overview and ongoing research in EC-funded projects, ISO SC6 WG7Eleni Trouva
 
The Potential Impact of Software Defined Networking SDN on Security
The Potential Impact of Software Defined Networking SDN on SecurityThe Potential Impact of Software Defined Networking SDN on Security
The Potential Impact of Software Defined Networking SDN on SecurityBrent Salisbury
 
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick44CON
 
Introduction to DPDK
Introduction to DPDKIntroduction to DPDK
Introduction to DPDKKernel TLV
 
OpenStack and OpenFlow Demos
OpenStack and OpenFlow DemosOpenStack and OpenFlow Demos
OpenStack and OpenFlow DemosBrent Salisbury
 
Analyzing OS X Systems Performance with the USE Method
Analyzing OS X Systems Performance with the USE MethodAnalyzing OS X Systems Performance with the USE Method
Analyzing OS X Systems Performance with the USE MethodBrendan Gregg
 
Software Defined Data Centers - June 2012
Software Defined Data Centers - June 2012Software Defined Data Centers - June 2012
Software Defined Data Centers - June 2012Brent Salisbury
 

Semelhante a 2. operating systems (20)

Os Madsen Block
Os Madsen BlockOs Madsen Block
Os Madsen Block
 
1. hardware basics
1. hardware basics1. hardware basics
1. hardware basics
 
Add sale davinci
Add sale davinciAdd sale davinci
Add sale davinci
 
DEF CON 27 - ALI ISLAM and DAN REGALADO WEAPONIZING HYPERVISORS
DEF CON 27 - ALI ISLAM and DAN REGALADO WEAPONIZING HYPERVISORSDEF CON 27 - ALI ISLAM and DAN REGALADO WEAPONIZING HYPERVISORS
DEF CON 27 - ALI ISLAM and DAN REGALADO WEAPONIZING HYPERVISORS
 
CampusSDN2017 - Jawdat: SDN Technology Evolvement
CampusSDN2017 - Jawdat: SDN Technology EvolvementCampusSDN2017 - Jawdat: SDN Technology Evolvement
CampusSDN2017 - Jawdat: SDN Technology Evolvement
 
Evergreen Sysadmin Survival Skills
Evergreen Sysadmin Survival SkillsEvergreen Sysadmin Survival Skills
Evergreen Sysadmin Survival Skills
 
Optimizing Linux Servers
Optimizing Linux ServersOptimizing Linux Servers
Optimizing Linux Servers
 
Snabbflow: A Scalable IPFIX exporter
Snabbflow: A Scalable IPFIX exporterSnabbflow: A Scalable IPFIX exporter
Snabbflow: A Scalable IPFIX exporter
 
linux monitoring and performance tunning
linux monitoring and performance tunning linux monitoring and performance tunning
linux monitoring and performance tunning
 
Que
QueQue
Que
 
Demystifying Visual Studio 2012 Performance Tools
Demystifying Visual Studio 2012 Performance ToolsDemystifying Visual Studio 2012 Performance Tools
Demystifying Visual Studio 2012 Performance Tools
 
5120224.ppt
5120224.ppt5120224.ppt
5120224.ppt
 
RINA overview and ongoing research in EC-funded projects, ISO SC6 WG7
RINA overview and ongoing research in EC-funded projects, ISO SC6 WG7RINA overview and ongoing research in EC-funded projects, ISO SC6 WG7
RINA overview and ongoing research in EC-funded projects, ISO SC6 WG7
 
The Potential Impact of Software Defined Networking SDN on Security
The Potential Impact of Software Defined Networking SDN on SecurityThe Potential Impact of Software Defined Networking SDN on Security
The Potential Impact of Software Defined Networking SDN on Security
 
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
 
Introduction to DPDK
Introduction to DPDKIntroduction to DPDK
Introduction to DPDK
 
OpenStack and OpenFlow Demos
OpenStack and OpenFlow DemosOpenStack and OpenFlow Demos
OpenStack and OpenFlow Demos
 
No[1][1]
No[1][1]No[1][1]
No[1][1]
 
Analyzing OS X Systems Performance with the USE Method
Analyzing OS X Systems Performance with the USE MethodAnalyzing OS X Systems Performance with the USE Method
Analyzing OS X Systems Performance with the USE Method
 
Software Defined Data Centers - June 2012
Software Defined Data Centers - June 2012Software Defined Data Centers - June 2012
Software Defined Data Centers - June 2012
 

Mais de Marian Marinov

How to implement PassKeys in your application
How to implement PassKeys in your applicationHow to implement PassKeys in your application
How to implement PassKeys in your applicationMarian Marinov
 
Dev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingDev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingMarian Marinov
 
Basic presentation of cryptography mechanisms
Basic presentation of cryptography mechanismsBasic presentation of cryptography mechanisms
Basic presentation of cryptography mechanismsMarian Marinov
 
Microservices: Benefits, drawbacks and are they for me?
Microservices: Benefits, drawbacks and are they for me?Microservices: Benefits, drawbacks and are they for me?
Microservices: Benefits, drawbacks and are they for me?Marian Marinov
 
Introduction and replication to DragonflyDB
Introduction and replication to DragonflyDBIntroduction and replication to DragonflyDB
Introduction and replication to DragonflyDBMarian Marinov
 
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQMessage Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQMarian Marinov
 
How to successfully migrate to DevOps .pdf
How to successfully migrate to DevOps .pdfHow to successfully migrate to DevOps .pdf
How to successfully migrate to DevOps .pdfMarian Marinov
 
How to survive in the work from home era
How to survive in the work from home eraHow to survive in the work from home era
How to survive in the work from home eraMarian Marinov
 
Improve your storage with bcachefs
Improve your storage with bcachefsImprove your storage with bcachefs
Improve your storage with bcachefsMarian Marinov
 
Control your service resources with systemd
 Control your service resources with systemd  Control your service resources with systemd
Control your service resources with systemd Marian Marinov
 
Comparison of-foss-distributed-storage
Comparison of-foss-distributed-storageComparison of-foss-distributed-storage
Comparison of-foss-distributed-storageMarian Marinov
 
Защо и как да обогатяваме знанията си?
Защо и как да обогатяваме знанията си?Защо и как да обогатяваме знанията си?
Защо и как да обогатяваме знанията си?Marian Marinov
 
Securing your MySQL server
Securing your MySQL serverSecuring your MySQL server
Securing your MySQL serverMarian Marinov
 
DoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDKDoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDKMarian Marinov
 
Challenges with high density networks
Challenges with high density networksChallenges with high density networks
Challenges with high density networksMarian Marinov
 
SiteGround building automation
SiteGround building automationSiteGround building automation
SiteGround building automationMarian Marinov
 
Preventing cpu side channel attacks with kernel tracking
Preventing cpu side channel attacks with kernel trackingPreventing cpu side channel attacks with kernel tracking
Preventing cpu side channel attacks with kernel trackingMarian Marinov
 
Managing a lot of servers
Managing a lot of serversManaging a lot of servers
Managing a lot of serversMarian Marinov
 

Mais de Marian Marinov (20)

How to implement PassKeys in your application
How to implement PassKeys in your applicationHow to implement PassKeys in your application
How to implement PassKeys in your application
 
Dev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & LoggingDev.bg DevOps March 2024 Monitoring & Logging
Dev.bg DevOps March 2024 Monitoring & Logging
 
Basic presentation of cryptography mechanisms
Basic presentation of cryptography mechanismsBasic presentation of cryptography mechanisms
Basic presentation of cryptography mechanisms
 
Microservices: Benefits, drawbacks and are they for me?
Microservices: Benefits, drawbacks and are they for me?Microservices: Benefits, drawbacks and are they for me?
Microservices: Benefits, drawbacks and are they for me?
 
Introduction and replication to DragonflyDB
Introduction and replication to DragonflyDBIntroduction and replication to DragonflyDB
Introduction and replication to DragonflyDB
 
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQMessage Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
Message Queuing - Gearman, Mosquitto, Kafka and RabbitMQ
 
How to successfully migrate to DevOps .pdf
How to successfully migrate to DevOps .pdfHow to successfully migrate to DevOps .pdf
How to successfully migrate to DevOps .pdf
 
How to survive in the work from home era
How to survive in the work from home eraHow to survive in the work from home era
How to survive in the work from home era
 
Managing sysadmins
Managing sysadminsManaging sysadmins
Managing sysadmins
 
Improve your storage with bcachefs
Improve your storage with bcachefsImprove your storage with bcachefs
Improve your storage with bcachefs
 
Control your service resources with systemd
 Control your service resources with systemd  Control your service resources with systemd
Control your service resources with systemd
 
Comparison of-foss-distributed-storage
Comparison of-foss-distributed-storageComparison of-foss-distributed-storage
Comparison of-foss-distributed-storage
 
Защо и как да обогатяваме знанията си?
Защо и как да обогатяваме знанията си?Защо и как да обогатяваме знанията си?
Защо и как да обогатяваме знанията си?
 
Securing your MySQL server
Securing your MySQL serverSecuring your MySQL server
Securing your MySQL server
 
Sysadmin vs. dev ops
Sysadmin vs. dev opsSysadmin vs. dev ops
Sysadmin vs. dev ops
 
DoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDKDoS and DDoS mitigations with eBPF, XDP and DPDK
DoS and DDoS mitigations with eBPF, XDP and DPDK
 
Challenges with high density networks
Challenges with high density networksChallenges with high density networks
Challenges with high density networks
 
SiteGround building automation
SiteGround building automationSiteGround building automation
SiteGround building automation
 
Preventing cpu side channel attacks with kernel tracking
Preventing cpu side channel attacks with kernel trackingPreventing cpu side channel attacks with kernel tracking
Preventing cpu side channel attacks with kernel tracking
 
Managing a lot of servers
Managing a lot of serversManaging a lot of servers
Managing a lot of servers
 

2. operating systems

  • 1. 2 – Operating Systems Marian Marinov Borislav Varadinov CEO of 1H Ltd. System Administrator mm@1h.com bobi [ at ] itp.bg
  • 2.
  • 3.
  • 4. What is Operating System? ➢ To manages hardware resources. ➢ To provides common services for the application developers. ➢To acts as an intermediary between the user(s) and the computer system. From a user’s point of view, the operating system is there to execute programs.
  • 8. Kernel architecture l space Kerne e User spac
  • 13. Kernel software ➢ CPU Handling ➢ Memory Manager ➢ Interrupt handler ➢ Device drivers ➢ File systems ➢ Network ➢ CPU Scheduler ➢ I/O Scheduler ➢ Network Scheduler ➢ Security mechanisms
  • 14. Multi-platform ➢ 27 CPU Architectures ➢ x86 / x86_64 ➢ RISC / PA-RISC ➢ SPARC ➢ ARM ➢ 24 x86 CPU types ➢ 486/586/K5... ➢ Athlon/Opteron ➢ Cyrix ➢ AMD Elan ➢ Winchip ➢ Intel Pentium*, Atom, Core*
  • 15. Memory Manager (MM) ➢ Does the physical memory allocation ➢ Implements Physical Address Extension (PAE) ➢ Linux specific allocation ➢ SLAB – per cpu and per node queues ➢ SLUB – faster and default ➢ SLOB – fragmentation ➢ Memory compaction ➢ Huge pages
  • 16. Interrupt Manager ➢This code is a simple dispatcher of events
  • 18. File Systems ➢ The Virtual File System(VFS) layer is the 'One ring to rule them all' system in terms of file systems. ➢ It is responsible for the main file system cache
  • 19. ➢ Devices Network Et W he W i F i rn G iM et ➢ Drivers A PR ax m S at /H ➢ Protocols eu S r R DP ad A io ARP IP MP IC P UD SC TCP DC TP RD CP Tu AN es B. S VL idg A. nn s s T.M el Br .A .N .
  • 20. Types of Operating Systems ➢ Single/Multi-platform ➢ Single/Multi-processing ➢ Single/Multi-tasking ➢ Cooperative ➢ Preemptive ➢ Single/Multi-threading ➢ Single/Multi-user ➢ Real-time
  • 21. Thread scheduling ➢ Windows ➢ Linux - Completely Fair Scheduler (CSF) - Niceness CPU Core 0 CPU Core 1 Level 00 Level 0 Level -19 Level 00 Level 0 PIDLevelTICKS Level 0 PID TICKS PIDLevelTICKS PID TICKS PID TICKS PID TICKS 21426 185TICKS PID 185 21426 31512 132TICKS PID 21426 185 21426 185 64723 200185 21426 21426 185 64723 200 34231 94 185 21426 64723 200 64723 200 64723 200 64723 200 64723 200
  • 22. I/O scheduling ➢Linux I/O schedulers ➢ Completely Fair Queuing - per-process queues and then allocates time slices for each of the queues to access the disk ➢ Anticipatory - "anticipating" synchronous read, good for video streaming ➢ Deadline - imposing a deadline on all I/O operations to prevent starvation of requests ➢ Noop - simple FIFO queue and implements request merging
  • 23. Network scheduling ➢ Windows ➢ Linux ➢ Traffic queuing with different 23 different QoS mechanisms ➢ INGRESS and EGRESS queuing
  • 25. Free Trainings @ Telerik Academy  C# Programming @ Telerik Academy  csharpfundamentals.telerik.com  Telerik Software Academy  academy.telerik.com  Telerik Academy @ Facebook  facebook.com/TelerikAcademy  Telerik Software Academy Forums  forums.academy.telerik.com

Notas do Editor

  1. SLAB – Simple List of allocated blocks SLUB – Unqueued slab allocator SLOB – simple list of blocks Normal page - 4k Huge page - 4MB
  2. It was introduced to the Linux Kernel in the 2.2 series It provides abstraction layer above the actual file system code