Computer basic

Computer 5 parts

  • CPU
  • Input
  • Output
  • Memory
  • External storage device.

    CPU

  • RISC: Reduced Instruction Set Computing, Each instruction is simple and efficient, but need multiple instructions when need to do a complex task.
    • SPARC series of Sun: mainly used in large workstation of academic field, and servers in financial field.
    • Power Architecture(Include PowerPC) of IBM: Sony's PS3 used this type cpu.
    • ARM: Our phone, PDA, switch and router devices ...
  • CISC: Complex instruction set computing. Each instrunction can do multiple simple tasks, so the instructions are many and complex.
    • CPU based on x86, x86_64 of AMD , Intel.

      Unit of computer

  • 1Byte = 8bit
  • B,K , M, G, T, P
  • 1GB file size = 1024 * 1024 * 1024 B
  • 1GHz = 1000 * 1000 * 1000 Hz, Hz means how many time in one second.
  • In network transmission, 8Mbit/8 is a transmission speed, it's actually 1MB/s in file size.
  • Hard disk uses decimal system , so if a hard disk is 500G, it actually is 500 * 1000 * 1000 B which approximately equal to 466GB.

    Interface devices

    Motherboard

  • North bridge : link CPU, memory,video card.
  • South bridge: hard disk, USB, network card.

    CPU

  • External Frequency : the transmission/computing speed between CPU and external components.
  • Multiplication Frequency : accelerate work speed in CPU internal.
  • CPU Frequency = External Frequency * Multiplication Frequency
  • North bridge bus is called System Bus, it's channel of memory. North bridge bus is I/O bus, it's channel of hard disk, USB,network disk, etc.
  • word size: the data quantity which CPU can handle once time.
  • Bus width: number of bits per transmission by north birdge bus.

    Memory

  • DRAM : Dynamic Random Access Memory
  • DDR SDRAM: Double data rate
  • Dual channel design: two same memories can provide more wide width.
  • CPU has a L2 Cache which is SRAM(Static Random Access Memory)
  • BIOS is a program which is hosted on ROM.

    Vidwo card

  • Video card is also called VGA(Video graphics array). It also has its memory and cpu(called GPU).
  • Vidwo card impacts screen resolution and color depth.
  • Specifications: PCI -> AGP-> PCI-Express

    Hard disk

  • Desktop usually use 3.5 inches hard disk, notebook use 2.5 inches.
  • Components:
    • Sector: each sector's physical size is 512bytes.
    • Track: A circular which is composed of sectors.
    • Cylinder: the same tracks of all the discs composes a cylinder. Cylinder is the minimum unit when we make partition disk.
  • Hard disk size = header * cylinders per header * sectors per cylinder * capacity per sector.
  • IDE Interface: each cable can connect two IDE device. The maximum transmission speed is 133MB
  • SATA Interface: each SATA cable can only connect one SATA device. Usually its transmission speed is 300 MB per second.
  • SCSI Interface: usually used in workstaion or larger computer. Its controller contains a cpu so its running speed is fast and its CPU consumption is low.
  • Hard disk has a buffer memory which used to cache frequently used data.
  • The speed usually is 7200 and 5400.

    Mainboard

  • North bridge is in charge of CPU/RAM/VGA
  • South bridge is in charge of PCI and I/O device.
  • I/O address and IRQ: IRQ is used to connect I/O address and CPU.
  • CMOS and BIOS: CMOS is used to record mainboard's data like system time, CPU voltage and frequency, I/O address and IRQ etc. BIOS is a program which run when boot.
  • Interface devices:
    • PS/2 interface: like mouse and keyboard.
    • USB interface.
    • Audio input/output and microphone, these are some circular hubs.
    • RJ-45 interface: like cable interface.
    • other legacy interface: nine serial interface(com1) which is used to connect to mouse, 25 parallel port(LPT1) which is used to connect printer.
  • Power: Usually have two specifications.20 pin and 24 pin.
    • Energy conversion rate: output power / input power.

      data presentation

      ### Binary

      Linux birth

      POSIX Specification

      Public Operating System Interface ,Both Linux and UNIX follow POSIX , so they can share lots of softwares POSIX define the interfaces standard between kernel and applications.

      Version

      2.6.18-e15 2 primary version, 6 secondary version, 18 release version, e15 modification version.
      2.5.xx : Odd number version, developing version, not stable.
      2.6.xx Even number version, stable .

      Linux distributions

  • RPM installation: Red Hat, Fedora, Suse. dpkg installation: Debian, Ubuntu, B2D.

    Copyright

  • Shareware: has expire date. After the date,you need pay for it if you want to continue use it.

    Device in linux

    Hardware's name in linux

  • IDE hard disk: /dev/hd[a-d]
  • SCSI/SATA/USB disk: /dev/sd[a-p]
  • soft driver: /dev/fd[0-1]
  • mouse: USB mouse: /dev/usb/mouse[0-15] PS2 mouse: /dev/psaux
  • printer: 25 pin: /dev/lp[0-2] , USB: /dev/usb/lp[0-15]
  • CD ROM/DVD ROM: /dev/cdrom
  • Tape drive: IDE: /dev/ht0 , SCSI: /dev/st0

    Disk partition

    IDE interface device:

  • Usually a computer has two IDE interface, each interface can connect two IDE device.
  • IDE1 (primary): /dev/hda (master), /dev/hdb (slave)
  • IDE2 (secondary): /dev/hdc (master), /dev/hdd (slave)
  • SATA disk's name is decided by the order detected by the kernel.

    Disk composition

  • Sector: each sector is 512 bytes.
  • The first sector of disk is most important, it contains 2 data:
    • MBR(Master Boot Record): 446 bytes, boot loader program is intalled here.
    • partition table: 64 bytes, contains all the partitions of the disk.
  • Partition table
    • Cylinder is the minimum unit of disk partition and file system.
    • 64 bytes is separated into 4 partitions: Primary and Extended partitions.
    • /dev/hda1 --- /dev/hda4 is retained for primary and extended partitions.
    • Extended partition can not be formatted. And can only have one ,this is OS limitted.
    • Logic disk is splitted from extended partition, IDE disk have 59 logic partitions at most (5-63), SATA disk has 11 logic partitions at most (5 - 15).
  • BIOS is the first program to run when start computer, it will find the appropriate disk and to start the boot loader in MBR. The boot loader then load the kernel .
  • Boot loader
    • Boot menus: multi boot functions.
    • load kernel.
    • Transfer to other boot loader.
    • Every partition has one boot sector and can have boot loader, so we can support multi boot system.

      How to choose disk partition (most important)

  • directory tree: all are files in linux, and they are managed via a tree structure. The most important directory is root directory: /.
  • mount: map partition to a specific directory, once you enter the dir, you can read the partition's data, so the dir is also called "mount point".
    Root dir must be mounted by a partition.
  • Usual partition: /boot, / , swap, /usr, /var, /home .

Eric Linux - 1 Basic concepts of linux的更多相关文章

  1. Linux系统启动那些事—基于Linux 3.10内核【转】

    转自:https://blog.csdn.net/shichaog/article/details/40218763 Linux系统启动那些事—基于Linux 3.10内核 csdn 我的空间的下载地 ...

  2. Linux 发展史与vm安装linux centos 6.9

    操作系统 是一个人与计算机硬件的中介. Linux操作系统 开源代码的.自由传播的类Unix操作系系统软件: 多用户.多任务.多线程.多CPU的操作系统. 服务器端.嵌入式开发.个人pc桌面,服务器领 ...

  3. Linux云计算-01_介绍以及Linux操作系统安装

    1 学习目的 兴趣爱好 技能提升 找到满意的工作 2 什么是云计算 云计算(cloud computing)是分布式计算的一种,指的是通过网络"云"将巨大的数据计算处理程序分解成无 ...

  4. 14门Linux课程,打通你Linux的任督二脉!

    Linux有很多优点:安全.自主.开源--,也正是这些优点使得很多人都在学Linux. 虽说网上有大把的Linux课程资源,但是对很多小白来说网上的课程资源比较零散并不适合新手学习. 正因为此,总结了 ...

  5. Linux实战教学笔记08:Linux 文件的属性(上半部分)

    第八节 Linux 文件的属性(上半部分) 标签(空格分隔):Linux实战教学笔记 第1章 Linux中的文件 1.1 文件属性概述(ls -lhi) linux里一切皆文件 Linux系统中的文件 ...

  6. Linux网卡配置及学习linux的注意事项

    一.网卡配置 1.ifconfig网卡信息,配置IP ifconfig eth0 192.168.2.102 2.修改网卡配置(连接不了可能是IP给占用了) 进入编辑界面命令:vi /etc/sysc ...

  7. 【解决方法】安装Win7和linux双系统后,linux报错“无法分配所提交的分区 not enough free space on disks”问题,以及win7无法启动“BootMGR image is corrupt....”问题

    近日,在笔记本上重装了Win7 企业版(64位)后,想装个linux双系统,于是开始安装 centOS 6.2(光盘安装) 硬盘分了一个主分区(c盘),一个扩展分区(3个逻辑分区:d,e,f盘),然后 ...

  8. 嵌入式linux驱动开发之给linux系统添加温度传感器模块

    忙了几天,终于可以让ds18b20在自己的开发板的linux系统上跑了!虽然ds18b20不是什么新鲜玩意,但是想想知己可以给linux系统添加模块了还是有点小鸡冻呢! 虽然说现在硬件的资源非常丰富而 ...

  9. (转)Linux下安装rar fou linux

    在Linux下安装rar fou linux rar for linux 软件下载地址:http://www.rarsoft.com/download.htm 到目前为止最新的版本为4.10 beta ...

随机推荐

  1. Swift API设计原则

    注: 本文摘自 Swift API设计指南 一.基本原则 通俗易懂的API是设计者最重要的目标.实体.变量.函数等都具有一次申明.重复使用的性质,所以一个好的API设计,应该能够使用少量的解读和示例就 ...

  2. navigator 页面链接

    页面链接. 属性名 类型 默认值 说明 url String   应用内的跳转链接 redirect Boolean false 是否关闭当前页面 hover-class String navigat ...

  3. 【21.21%】【codeforces round 382D】Taxes

    time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard o ...

  4. Excel、记事本数据导入到数据库

    将手机号批量导入数据库.思路:先将要导入的文件传上项目里,然后读取文件的每行数据并插入数据库,操作完后再将上传的文件删除 文件示例: Excel: 记事本:   前台代码: <div class ...

  5. git 修改仓库地址

    公司服务器地址换了 , 原来的git代码地址也跟着需要变 , git remote rm origin 执行该操作 , 删除原来的git地址 git remote -v 查看一下有没有删除成功 , ( ...

  6. QWidget之Alien与Native小记(果然是DirectUI的方式,QWidget居然提供了nativeParentWidget函数,而且可以动态设置native父窗口)good

    在QWidget 之paint部分杂记提到了从Qt4.4开始,Alien Widget被引入.那么...这是什么东西呢,我们在使用中又可能会感受到什么东西? 用例子来说话似乎比用源码来说话来得容易,所 ...

  7. matlab Tricks(二十七)—— 可变输入参数输出参数的适配

    matlab 内置的对 varargin/varargout(nargin/nargout)的支持,使得 matlab 的输入参数和输出参数,有了更为灵活的传递和使用: 比如对于 matlab 原生支 ...

  8. ValueStack和OGNL达到Struts2形式的数据存储原理

    (1)最近学习struts相框,我们在快乐struts强大.为了便于使用转发,但不了解详细的内部数据存储: (2)网上找了很多关于struts数据存储的原理,但我还没有找到一个具体的解释,本书上找到了 ...

  9. WPF C#之读取并修改App.config文件

    原文:WPF C#之读取并修改App.config文件 简单介绍App.config App.config文件一般是存放数据库连接字符串的.  下面来简单介绍一下App.config文件的修改和更新. ...

  10. VS2015静态编译libcurl(C++ curl封装类)

    一.最新libcurl静态编译教程(curl-7.51版/curl-7.52版) 1.安装perl,在官网下载,安装好以后,测试perl -v是否成功 2.编译openssl(已编译好的下载地址) p ...