kernel overview

Download Kernel overview

Post on 16-Jul-2015

524 views

Category:

Software

0 download

Embed Size (px)

TRANSCRIPT

  • Kernel OverviewKai Sasaki(@Lewuathe)

  • Linux Kernel Unix Like

    OSS

    3.19(20152)

  • Debian(Ubuntu)

    Fedora(RHEL, CentOS)

    RHEL 7

  • 1.

    2.()

    3.()

    4.()

    5.()

    6.()

    7.

  • O(1): (~2.6.23)

    CFS: CPU

  • Linux

    TSS(Time Sharing System)

    CPU

  • Linux0-99

    TSS0

    1-99

  • O(1)TSS

    CPU

    CPU

  • CFS(Completely Fair Scheduler)vruntime

    vruntimeCPU

    14

    9 14

    8 12 27

    3 13

    15

    17

  • HDD

  • LinuxVFS

    proc, sysfs, cgroupfs

  • 23

  • file_operations

    inode_operations

    address_space_operations

    VFS ext4

    ext4_file_operations

    ext4_file_inode_operations

    ext4_dir_inode_operations

    ext4_da_aops

  • UFS Base ext2

    ext3, ext4, XFS

    nilfs2

    Copy on Write Btrfs

  • Linux4

  • (TCP/IP)

    (, NAT etc)

  • netfilterNATiptables

    3.13nftablesnft(libnftnl)

  • ()

  • 2

  • CPU

    2.6.24

    cgroup

    namespace

  • cgroup

  • namespace

    namespace PID IDUTS

    MOUNT Network

    IPC UID ID, ID

  • cgroup namespace

    LXC or Docker

  • $ sudo su # yum groupinstall Development Tools # yum groupinstall Additional Development # yum install asciidoc perl-ExtUtils-Embed xmlto zlib-devel \ newt-devel net-tools bc design pcutils-devel wget rpm-build gcc \ hmaccalc pesign

    $ wget http://vault.centos.org/7.0.1406/updates/Source/SPackages/ kernel-3.10.0-123.8.1.el7.src.rpm $ rpm -ivh kernel-3.10.0-123.8.1.el7.src.rpm

    $ cd ~/rpmbuild/SPECS $ rpmbuild --nodeps -bp --target=x86_64 kernel.spec

    $ sudo su # rpm -ivh force ~/rpmbuild/RPMS/x86_64/ kernel-3.10.0-123.8.1.e17.local.x86_64.rpm

Recommended

View more >