SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Downloaden Sie, um offline zu lesen
@oraccha

Lions’ Commentary on UNIX     2011
             2011   10   16
•1

  •2         10:30                            Prezi



  •
         ←
http://prezi.com/zm2fff4l-ia1/data-structure-of-the-unix-v6/
user file
                                                                                       descriptor table                   file table                   inode table
                                                                                       0
                                                                                                              file[100] inode[100]                                                     fd -> inode
                                                                                                                                                   am^/etc/passwd)
                                                                                                                        count      D
                                                                                                                          j        Read




                                                                                       u_ofile[15]                   „
                                                                                                                    k
                                                                                                                        0011111
                                                                                                                                  «J     ,


                   inode -> Disk
4.2                     STRUCTURE OF A REGULAR FILE                           69                                          j       Rd-Wrf


                                                                                                                                                   ^             (local)


                                                                                                                                  f_inode
                                                                      Data
      Inode                                                          Blocks

      direct „
                                                    (buffers[])
                                                                                                                                  1
                                                                                                                    i count
                                                                                                                    1
                                                                                                                                 1
                                                                                                                        i   Write
      direct




                                                                                                          Figure 5.3. Data Structures after Open



                         i_addr[8]                                                 fdl - open("/etc/passwd", OJRDONLY);
                                                                                   fd2 - open ("local", 0_RDWR);
                                                                                                                         28
                                                                                                                                                       Process -> memory
                                                                                                                                                                 INTRODUCTION TO THE KERNEL

      direct ,                                                                     fd3 - open ("/etc/passwd", OJWRONLY);
                                                                                                                                                                                     per process
                                                                              Figure 5.3 shows the relationship between the inode table, file table, and user file
      direct                                                                  descriptor data structures. Bach open returns a file descriptor to the process, and
                                                                              the corresponding entry in the user file descriptor table points to a unique entry in
      direct,


      direct                                                                       programmers to encode only two parameters.
                                                                                                                                                 u_procp
                                                                                   does not check the third parameter unless the second parameter indicates that it must, allowing



                                                                                                                                             proc[50]
               8

      direct,

       single
      indirect                                                                                                                                                  p_addr?
      double
      indirect


                                                                                                                                                                        coremap[100]?
       triple
      indirect




                   Figure 4.6. Direct and Indirect Blocks in Inode
User Program

User level                   trap                      Libraries (libc)


                              System call interface

                                                Process
               File system                                           IPC
                                                control
                                               subsystem
                  Buffer cache                                   Scheduler

          char      block                                         Memory
          Device drivers                                           mng.


Kernel level                        Hardware control

Hardware level
                                    Hardware
                                                                           Bach
User Program

User level                   trap                      Libraries (libc)


                              System call interface
                                          Section 1
                                          (                                )
                                                Process
               File system                                           IPC
                                                control
                                               subsystem
                  Buffer cache                                   Scheduler

          char      block                                         Memory
          Device drivers                                           mng.


Kernel level                        Hardware control

Hardware level
                                    Hardware
                                                                           Bach
User Program
     Section 2
User level                   trap                      Libraries (libc)


                              System call interface

                                                Process
               File system                                           IPC
                                                control
                                               subsystem
                  Buffer cache                                   Scheduler

          char      block                                         Memory
          Device drivers                                           mng.


Kernel level                        Hardware control

Hardware level
                                    Hardware
                                                                           Bach
User Program

User level                   trap                      Libraries (libc)


                              System call interface

                                                Process
               File system                                           IPC
                                                control
                              Section 3        subsystem
                  Buffer cache                                   Scheduler

          char      block                                         Memory
          Device drivers                                           mng.


Kernel level                        Hardware control

Hardware level
                                    Hardware
                                                                           Bach
User Program

User level                   trap                      Libraries (libc)


                              System call interface
                    Section 4
                                                Process
               File system                                           IPC
                                                control
                                               subsystem
                  Buffer cache                                   Scheduler

          char      block                                         Memory
          Device drivers                                           mng.


Kernel level                        Hardware control

Hardware level
                                    Hardware
                                                                           Bach
User Program

User level                   trap                      Libraries (libc)


                              System call interface

                                                Process
               File system                                           IPC
                                                control
   Section 5                                   subsystem
                  Buffer cache                                   Scheduler

          char      block                                         Memory
          Device drivers                                           mng.


Kernel level                        Hardware control

Hardware level
                                    Hardware
                                                                           Bach
162 THE STRUCTURE OF PROCESSES




Figure 6.1. Process State Transition Diagram
3.4

4720
       512   514

Weitere ähnliche Inhalte

Andere mochten auch (8)

Preliminary Experiment of Disaster Recovery based on Interconnect-transparent...
Preliminary Experiment of Disaster Recovery based on Interconnect-transparent...Preliminary Experiment of Disaster Recovery based on Interconnect-transparent...
Preliminary Experiment of Disaster Recovery based on Interconnect-transparent...
 
Toward a practical “HPC Cloud”: Performance tuning of a virtualized HPC cluster
Toward a practical “HPC Cloud”: Performance tuning of a virtualized HPC clusterToward a practical “HPC Cloud”: Performance tuning of a virtualized HPC cluster
Toward a practical “HPC Cloud”: Performance tuning of a virtualized HPC cluster
 
かんたろ15
かんたろ15かんたろ15
かんたろ15
 
OSC2010 Tokyo MeeGo 20100910
OSC2010 Tokyo MeeGo 20100910OSC2010 Tokyo MeeGo 20100910
OSC2010 Tokyo MeeGo 20100910
 
オペレーティングシステム 設計と実装 第3版(20101211)
オペレーティングシステム 設計と実装 第3版(20101211)オペレーティングシステム 設計と実装 第3版(20101211)
オペレーティングシステム 設計と実装 第3版(20101211)
 
A Distributed Application Execution System for an Infrastructure with Dynamic...
A Distributed Application Execution System for an Infrastructure with Dynamic...A Distributed Application Execution System for an Infrastructure with Dynamic...
A Distributed Application Execution System for an Infrastructure with Dynamic...
 
産総研におけるプライベートクラウドへの取り組み
産総研におけるプライベートクラウドへの取り組み産総研におけるプライベートクラウドへの取り組み
産総研におけるプライベートクラウドへの取り組み
 
クラウド環境におけるキャッシュメモリQoS制御の評価
クラウド環境におけるキャッシュメモリQoS制御の評価クラウド環境におけるキャッシュメモリQoS制御の評価
クラウド環境におけるキャッシュメモリQoS制御の評価
 

Mehr von Ryousei Takano

AIST Super Green Cloud: lessons learned from the operation and the performanc...
AIST Super Green Cloud: lessons learned from the operation and the performanc...AIST Super Green Cloud: lessons learned from the operation and the performanc...
AIST Super Green Cloud: lessons learned from the operation and the performanc...
Ryousei Takano
 
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud
Ryousei Takano
 
Iris: Inter-cloud Resource Integration System for Elastic Cloud Data Center
Iris: Inter-cloud Resource Integration System for Elastic Cloud Data CenterIris: Inter-cloud Resource Integration System for Elastic Cloud Data Center
Iris: Inter-cloud Resource Integration System for Elastic Cloud Data Center
Ryousei Takano
 

Mehr von Ryousei Takano (20)

Error Permissive Computing
Error Permissive ComputingError Permissive Computing
Error Permissive Computing
 
Opportunities of ML-based data analytics in ABCI
Opportunities of ML-based data analytics in ABCIOpportunities of ML-based data analytics in ABCI
Opportunities of ML-based data analytics in ABCI
 
ABCI: An Open Innovation Platform for Advancing AI Research and Deployment
ABCI: An Open Innovation Platform for Advancing AI Research and DeploymentABCI: An Open Innovation Platform for Advancing AI Research and Deployment
ABCI: An Open Innovation Platform for Advancing AI Research and Deployment
 
ABCI Data Center
ABCI Data CenterABCI Data Center
ABCI Data Center
 
USENIX NSDI 2016 (Session: Resource Sharing)
USENIX NSDI 2016 (Session: Resource Sharing)USENIX NSDI 2016 (Session: Resource Sharing)
USENIX NSDI 2016 (Session: Resource Sharing)
 
User-space Network Processing
User-space Network ProcessingUser-space Network Processing
User-space Network Processing
 
Flow-centric Computing - A Datacenter Architecture in the Post Moore Era
Flow-centric Computing - A Datacenter Architecture in the Post Moore EraFlow-centric Computing - A Datacenter Architecture in the Post Moore Era
Flow-centric Computing - A Datacenter Architecture in the Post Moore Era
 
A Look Inside Google’s Data Center Networks
A Look Inside Google’s Data Center NetworksA Look Inside Google’s Data Center Networks
A Look Inside Google’s Data Center Networks
 
クラウド時代の半導体メモリー技術
クラウド時代の半導体メモリー技術クラウド時代の半導体メモリー技術
クラウド時代の半導体メモリー技術
 
AIST Super Green Cloud: lessons learned from the operation and the performanc...
AIST Super Green Cloud: lessons learned from the operation and the performanc...AIST Super Green Cloud: lessons learned from the operation and the performanc...
AIST Super Green Cloud: lessons learned from the operation and the performanc...
 
IEEE CloudCom 2014参加報告
IEEE CloudCom 2014参加報告IEEE CloudCom 2014参加報告
IEEE CloudCom 2014参加報告
 
Expectations for optical network from the viewpoint of system software research
Expectations for optical network from the viewpoint of system software researchExpectations for optical network from the viewpoint of system software research
Expectations for optical network from the viewpoint of system software research
 
Exploring the Performance Impact of Virtualization on an HPC Cloud
Exploring the Performance Impact of Virtualization on an HPC CloudExploring the Performance Impact of Virtualization on an HPC Cloud
Exploring the Performance Impact of Virtualization on an HPC Cloud
 
不揮発メモリとOS研究にまつわる何か
不揮発メモリとOS研究にまつわる何か不揮発メモリとOS研究にまつわる何か
不揮発メモリとOS研究にまつわる何か
 
High-resolution Timer-based Packet Pacing Mechanism on the Linux Operating Sy...
High-resolution Timer-based Packet Pacing Mechanism on the Linux Operating Sy...High-resolution Timer-based Packet Pacing Mechanism on the Linux Operating Sy...
High-resolution Timer-based Packet Pacing Mechanism on the Linux Operating Sy...
 
クラウドの垣根を超えた高性能計算に向けて~AIST Super Green Cloudでの試み~
クラウドの垣根を超えた高性能計算に向けて~AIST Super Green Cloudでの試み~クラウドの垣根を超えた高性能計算に向けて~AIST Super Green Cloudでの試み~
クラウドの垣根を超えた高性能計算に向けて~AIST Super Green Cloudでの試み~
 
From Rack scale computers to Warehouse scale computers
From Rack scale computers to Warehouse scale computersFrom Rack scale computers to Warehouse scale computers
From Rack scale computers to Warehouse scale computers
 
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud
高性能かつスケールアウト可能なHPCクラウド AIST Super Green Cloud
 
Iris: Inter-cloud Resource Integration System for Elastic Cloud Data Center
Iris: Inter-cloud Resource Integration System for Elastic Cloud Data CenterIris: Inter-cloud Resource Integration System for Elastic Cloud Data Center
Iris: Inter-cloud Resource Integration System for Elastic Cloud Data Center
 
IEEE/ACM SC2013報告
IEEE/ACM SC2013報告IEEE/ACM SC2013報告
IEEE/ACM SC2013報告
 

Kürzlich hochgeladen

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Lions本読書会合宿成果発表

  • 1. @oraccha Lions’ Commentary on UNIX 2011 2011 10 16
  • 2. •1 •2 10:30 Prezi • ← http://prezi.com/zm2fff4l-ia1/data-structure-of-the-unix-v6/
  • 3. user file descriptor table file table inode table 0 file[100] inode[100] fd -> inode am^/etc/passwd) count D j Read u_ofile[15] „ k 0011111 «J , inode -> Disk 4.2 STRUCTURE OF A REGULAR FILE 69 j Rd-Wrf ^ (local) f_inode Data Inode Blocks direct „ (buffers[]) 1 i count 1 1 i Write direct Figure 5.3. Data Structures after Open i_addr[8] fdl - open("/etc/passwd", OJRDONLY); fd2 - open ("local", 0_RDWR); 28 Process -> memory INTRODUCTION TO THE KERNEL direct , fd3 - open ("/etc/passwd", OJWRONLY); per process Figure 5.3 shows the relationship between the inode table, file table, and user file direct descriptor data structures. Bach open returns a file descriptor to the process, and the corresponding entry in the user file descriptor table points to a unique entry in direct, direct programmers to encode only two parameters. u_procp does not check the third parameter unless the second parameter indicates that it must, allowing proc[50] 8 direct, single indirect p_addr? double indirect coremap[100]? triple indirect Figure 4.6. Direct and Indirect Blocks in Inode
  • 4. User Program User level trap Libraries (libc) System call interface Process File system IPC control subsystem Buffer cache Scheduler char block Memory Device drivers mng. Kernel level Hardware control Hardware level Hardware Bach
  • 5. User Program User level trap Libraries (libc) System call interface Section 1 ( ) Process File system IPC control subsystem Buffer cache Scheduler char block Memory Device drivers mng. Kernel level Hardware control Hardware level Hardware Bach
  • 6. User Program Section 2 User level trap Libraries (libc) System call interface Process File system IPC control subsystem Buffer cache Scheduler char block Memory Device drivers mng. Kernel level Hardware control Hardware level Hardware Bach
  • 7. User Program User level trap Libraries (libc) System call interface Process File system IPC control Section 3 subsystem Buffer cache Scheduler char block Memory Device drivers mng. Kernel level Hardware control Hardware level Hardware Bach
  • 8. User Program User level trap Libraries (libc) System call interface Section 4 Process File system IPC control subsystem Buffer cache Scheduler char block Memory Device drivers mng. Kernel level Hardware control Hardware level Hardware Bach
  • 9. User Program User level trap Libraries (libc) System call interface Process File system IPC control Section 5 subsystem Buffer cache Scheduler char block Memory Device drivers mng. Kernel level Hardware control Hardware level Hardware Bach
  • 10. 162 THE STRUCTURE OF PROCESSES Figure 6.1. Process State Transition Diagram
  • 11. 3.4 4720 512 514