SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Overview of Linux Kernel Development
Unix-Linux System Architecture :
Linux v/s Unix Linux kernel is monolithic. Linux supports the dynamic loading of kernel modules. Linux has symmetrical multiprocessor (SMP) support. Traditional Unix did not. The Linux kernel is preemptive. Traditional Unix are not. Linux ignores some common Unix features that are thought to be poorly designed, such as STREAMS, or standards that are brain dead.
Linux Kernel Versions Linux Kernel Naming Convention Where to find ? http://www.kernel.org
Installing Kernel Source code : How : $ tar xvjf linux-x.y.z.tar.bz2// $ tar xvzflinux-x.y.z.tar.gz Where : /usr/src/linux Patches : $ patch -p1 < ../patch-x.y.z
Kernel Directory Hierarchy :
Building a Kernel : Configuring : Configuring options – prefixed by CONFIG_feature Boolean or Tristate :  	yes, no, or module $ make config Or $ make menuconfig Or $ make xconfig Or $ make gconfig
Installing Kernel : architecture and boot loader dependent. Eg., on an x86 using grub 	 copy arch/i386/boot/bzImage to /boot, 	 edit /boot/grub/grub.conf Installing Modules : % make modules_install In /lib
A Beast of a Different Nature The kernel does not have access to the C library.  The kernel is coded in GNU C.  The kernel lacks memory protection like user-space.  The kernel cannot easily use floating point.  The kernel has a small fixed-size stack.
Process Management Kernel Threads Process Scheduling System Calls   The relationship between applications, the C library, and the kernel with a call to printf().
Interrupts and Interrupt Handlers Interrupts, IRQ,ISR, entry point
Memory Management Memory allocation Pages : Smallest – word	 MMU manages the system's page tables with page-sized granularity Virtual Filesystem (VFS)
Bugs in the Kernel as varied as in user-space applications INCORRECT CODE, SYNCRONISATION Debugging: Seem difficult but quite easy. Unlike large software, have typical issues Time constraints, race conditions
Thank You 

Weitere ähnliche Inhalte

Was ist angesagt?

Presentation for RHCE in linux
Presentation  for  RHCE in linux Presentation  for  RHCE in linux
Presentation for RHCE in linux
Kuldeep Tiwari
 

Was ist angesagt? (20)

Fuse- Filesystem in User space
Fuse- Filesystem in User space Fuse- Filesystem in User space
Fuse- Filesystem in User space
 
Vfs
VfsVfs
Vfs
 
Tech talk Introduction to containers
Tech talk Introduction to containersTech talk Introduction to containers
Tech talk Introduction to containers
 
Darwin OS
Darwin OSDarwin OS
Darwin OS
 
Minix3 fosdem2014
Minix3 fosdem2014Minix3 fosdem2014
Minix3 fosdem2014
 
BSD for Linux Users
BSD for Linux UsersBSD for Linux Users
BSD for Linux Users
 
005 skyeye
005 skyeye005 skyeye
005 skyeye
 
FUSE and beyond: bridging filesystems slides by Emmanuel Dreyfus
FUSE and beyond: bridging filesystems slides by Emmanuel DreyfusFUSE and beyond: bridging filesystems slides by Emmanuel Dreyfus
FUSE and beyond: bridging filesystems slides by Emmanuel Dreyfus
 
Presentation for RHCE in linux
Presentation  for  RHCE in linux Presentation  for  RHCE in linux
Presentation for RHCE in linux
 
LSA2 - 02 Namespaces
LSA2 - 02  NamespacesLSA2 - 02  Namespaces
LSA2 - 02 Namespaces
 
228
228228
228
 
FUSE Filesystems
FUSE FilesystemsFUSE Filesystems
FUSE Filesystems
 
Red hat enterprise linux 7 (rhel 7)
Red hat enterprise linux 7 (rhel 7)Red hat enterprise linux 7 (rhel 7)
Red hat enterprise linux 7 (rhel 7)
 
Posscon2013
Posscon2013Posscon2013
Posscon2013
 
[ArabBSD] Unix Basics
[ArabBSD] Unix Basics[ArabBSD] Unix Basics
[ArabBSD] Unix Basics
 
Setting up iSCSI Providers and Clients in openSUSE
Setting up iSCSI Providers and Clients in openSUSESetting up iSCSI Providers and Clients in openSUSE
Setting up iSCSI Providers and Clients in openSUSE
 
The evolution of linux file system
The evolution of linux file systemThe evolution of linux file system
The evolution of linux file system
 
Wish list from PostgreSQL - Linux Kernel Summit 2009
Wish list from PostgreSQL - Linux Kernel Summit 2009Wish list from PostgreSQL - Linux Kernel Summit 2009
Wish list from PostgreSQL - Linux Kernel Summit 2009
 
Sweden11
Sweden11Sweden11
Sweden11
 
Lightweight Virtualization in Linux
Lightweight Virtualization in LinuxLightweight Virtualization in Linux
Lightweight Virtualization in Linux
 

Andere mochten auch

Sandbox – Online, Offline
Sandbox – Online, OfflineSandbox – Online, Offline
Sandbox – Online, Offline
Pushkar Pashupat
 
Gandhinagar institute of technology optical fiber
Gandhinagar institute of technology optical fiberGandhinagar institute of technology optical fiber
Gandhinagar institute of technology optical fiber
nilnildarji
 

Andere mochten auch (20)

Sandbox – Online, Offline
Sandbox – Online, OfflineSandbox – Online, Offline
Sandbox – Online, Offline
 
Chapter 1: Introduction to Unix / Linux Kernel
Chapter 1: Introduction to Unix / Linux KernelChapter 1: Introduction to Unix / Linux Kernel
Chapter 1: Introduction to Unix / Linux Kernel
 
intro unix/linux 01
intro unix/linux 01intro unix/linux 01
intro unix/linux 01
 
Unix cmc
Unix cmcUnix cmc
Unix cmc
 
3 vy14lvs24
3 vy14lvs243 vy14lvs24
3 vy14lvs24
 
Annamaria D'urzo - I sistemi informatici SITIC SIGIS Output-CN
Annamaria D'urzo - I sistemi informatici SITIC SIGIS Output-CNAnnamaria D'urzo - I sistemi informatici SITIC SIGIS Output-CN
Annamaria D'urzo - I sistemi informatici SITIC SIGIS Output-CN
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unit
 
Présentation Unix/Linux (mise à jour 2016)
Présentation Unix/Linux (mise à jour 2016)Présentation Unix/Linux (mise à jour 2016)
Présentation Unix/Linux (mise à jour 2016)
 
Gandhinagar institute of technology optical fiber
Gandhinagar institute of technology optical fiberGandhinagar institute of technology optical fiber
Gandhinagar institute of technology optical fiber
 
Typecasting in c
Typecasting in cTypecasting in c
Typecasting in c
 
Offshore Software Development Company
Offshore Software Development CompanyOffshore Software Development Company
Offshore Software Development Company
 
Control unit design
Control unit designControl unit design
Control unit design
 
Exception handling & logging in Java - Best Practices (Updated)
Exception handling & logging in Java - Best Practices (Updated)Exception handling & logging in Java - Best Practices (Updated)
Exception handling & logging in Java - Best Practices (Updated)
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
System call
System callSystem call
System call
 
Owasp Mobile Top 10 – 2014
Owasp Mobile Top 10 – 2014Owasp Mobile Top 10 – 2014
Owasp Mobile Top 10 – 2014
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
 
Soft computing Chapter 1
Soft computing Chapter 1Soft computing Chapter 1
Soft computing Chapter 1
 
Unix Process management
Unix Process managementUnix Process management
Unix Process management
 
Ethical Hacking
Ethical HackingEthical Hacking
Ethical Hacking
 

Ähnlich wie Overview of linux kernel development

Kernel compilation
Kernel compilationKernel compilation
Kernel compilation
mcganesh
 
Kernel init
Kernel initKernel init
Kernel init
gowell
 
Kernel maintainance in Linux distributions: Debian
Kernel maintainance in Linux distributions: DebianKernel maintainance in Linux distributions: Debian
Kernel maintainance in Linux distributions: Debian
Anne Nicolas
 
Linux Kernel Image
Linux Kernel ImageLinux Kernel Image
Linux Kernel Image
艾鍗科技
 
Virtualization which isn't: LXC (Linux Containers)
Virtualization which isn't: LXC (Linux Containers)Virtualization which isn't: LXC (Linux Containers)
Virtualization which isn't: LXC (Linux Containers)
Dobrica Pavlinušić
 

Ähnlich wie Overview of linux kernel development (20)

Isolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux ContainersIsolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux Containers
 
Root file system for embedded systems
Root file system for embedded systemsRoot file system for embedded systems
Root file system for embedded systems
 
Introduction to Linux Kernel by Quontra Solutions
Introduction to Linux Kernel by Quontra SolutionsIntroduction to Linux Kernel by Quontra Solutions
Introduction to Linux Kernel by Quontra Solutions
 
Ch1 linux basics
Ch1 linux basicsCh1 linux basics
Ch1 linux basics
 
Kernel compilation
Kernel compilationKernel compilation
Kernel compilation
 
Part 01 Linux Kernel Compilation (Ubuntu)
Part 01 Linux Kernel Compilation (Ubuntu)Part 01 Linux Kernel Compilation (Ubuntu)
Part 01 Linux Kernel Compilation (Ubuntu)
 
Kernel init
Kernel initKernel init
Kernel init
 
Portin g
Portin gPortin g
Portin g
 
LXC
LXCLXC
LXC
 
Kdump and the kernel crash dump analysis
Kdump and the kernel crash dump analysisKdump and the kernel crash dump analysis
Kdump and the kernel crash dump analysis
 
LinuxTraining_3.pptx
LinuxTraining_3.pptxLinuxTraining_3.pptx
LinuxTraining_3.pptx
 
Rasperry pi Part 7
Rasperry pi Part 7Rasperry pi Part 7
Rasperry pi Part 7
 
Linux training
Linux trainingLinux training
Linux training
 
Linux basics
Linux basics Linux basics
Linux basics
 
Linux basics
Linux basics Linux basics
Linux basics
 
Kernel maintainance in Linux distributions: Debian
Kernel maintainance in Linux distributions: DebianKernel maintainance in Linux distributions: Debian
Kernel maintainance in Linux distributions: Debian
 
Basic Linux Internals
Basic Linux InternalsBasic Linux Internals
Basic Linux Internals
 
Linux Kernel Image
Linux Kernel ImageLinux Kernel Image
Linux Kernel Image
 
Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)Recipe of a linux Live CD (archived)
Recipe of a linux Live CD (archived)
 
Virtualization which isn't: LXC (Linux Containers)
Virtualization which isn't: LXC (Linux Containers)Virtualization which isn't: LXC (Linux Containers)
Virtualization which isn't: LXC (Linux Containers)
 

Kürzlich hochgeladen

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 

Overview of linux kernel development

  • 1. Overview of Linux Kernel Development
  • 3. Linux v/s Unix Linux kernel is monolithic. Linux supports the dynamic loading of kernel modules. Linux has symmetrical multiprocessor (SMP) support. Traditional Unix did not. The Linux kernel is preemptive. Traditional Unix are not. Linux ignores some common Unix features that are thought to be poorly designed, such as STREAMS, or standards that are brain dead.
  • 4. Linux Kernel Versions Linux Kernel Naming Convention Where to find ? http://www.kernel.org
  • 5. Installing Kernel Source code : How : $ tar xvjf linux-x.y.z.tar.bz2// $ tar xvzflinux-x.y.z.tar.gz Where : /usr/src/linux Patches : $ patch -p1 < ../patch-x.y.z
  • 7. Building a Kernel : Configuring : Configuring options – prefixed by CONFIG_feature Boolean or Tristate : yes, no, or module $ make config Or $ make menuconfig Or $ make xconfig Or $ make gconfig
  • 8. Installing Kernel : architecture and boot loader dependent. Eg., on an x86 using grub copy arch/i386/boot/bzImage to /boot, edit /boot/grub/grub.conf Installing Modules : % make modules_install In /lib
  • 9. A Beast of a Different Nature The kernel does not have access to the C library. The kernel is coded in GNU C. The kernel lacks memory protection like user-space. The kernel cannot easily use floating point. The kernel has a small fixed-size stack.
  • 10. Process Management Kernel Threads Process Scheduling System Calls   The relationship between applications, the C library, and the kernel with a call to printf().
  • 11. Interrupts and Interrupt Handlers Interrupts, IRQ,ISR, entry point
  • 12. Memory Management Memory allocation Pages : Smallest – word MMU manages the system's page tables with page-sized granularity Virtual Filesystem (VFS)
  • 13. Bugs in the Kernel as varied as in user-space applications INCORRECT CODE, SYNCRONISATION Debugging: Seem difficult but quite easy. Unlike large software, have typical issues Time constraints, race conditions