跳转至

CS162

已放弃。学校的unix v6++我都学不明白,更没空学这个了。

Sources

The newest course record found on Youtube is around 2021.

Homework 0

Setup

Docker Workspace Setup, with password-avoid-entry

git clone https://github.com/Berkeley-CS162/cs162-workspace
cd cs162-workspace
docker compose up -d
# Generate a new SSH key pair if you don't have one
ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa_4096 -N ""
# id_rsa_4096.pub should be replaced with your own public key
ssh-copy-id -p 16222 -i ~/.ssh/id_rsa_4096.pub workspace@127.0.0.1

Add this block to ~/.ssh/config:

Host cs162-workspace
  HostName 127.0.0.1
  Port 16222
  User workspace
  IdentityFile ~/.ssh/id_ed25519

Github auto-grader setup

需要Student ID,所以暂时跳过。

Workspace Configuration

国内需要首先export http_proxy=http://host.docker.internal:7897 && export https_proxy=http://host.docker.internal:7897host.docker.internal是由容器内部自动解析为宿主机的IP地址,7897是你的代理端口,注意代理软件需要开启允许局域网访问),配置科学上网。

Auto-grader

目前应该是无法使用官方测试框架,只能本地测试。

Lecture 1: What is an Operating System?

OS roles

  • Referee:
    • Manages protection, isolation, and sharing of resources
    • Makes developer's life easier
  • Illusionist:
    • Provides an abstract interface to the hardware, who thinks that it is the only program and has all the resources
  • Glue:
    • Programs connected to each other with network sockets, shared memory, etc.

Moore's Law (is ended)

There is a huge gap between memory demands and single-chip memory capacity.

Models grow 340x every 18 months(GPT1 -> BERT -> GPT-2 -> GPT-3 -> ...), but GPU only grows 1.7x every 18 months.