操作系统入门知识

How sched_setaffinity works inside of Linux Kernel 1 2 3 4 5 6 7 8 9 10 11 YSCALL_DEFINE3(sched_setaffinity, pid_t, pid, unsigned int, len, unsigned long __user *, user_mask_ptr) -- sched_setaffinity(pid_t pid, const struct cpumask *in_mask) --- __set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask, bool check) ---- stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) ----- migration_cpu_stop(void *data) ------ __migrate_task(struct rq *rq, struct task_struct *p, int dest_cpu) ------- move_queued_task(struct rq *rq,

k8s入门

协调者ZooKeeper 一、这个技术出现的背景、初衷和要达到什么样的目标或是要解决什么样的问题 二、这个技术的优势和劣势分别是什么 三、这个技术

vldb-2021-labs

文章地址 http://localhost:1313/post/tidb/2022/tidb_01/ https://github.com/watchpoints/mylabs 实验1 make lab1P0

源码解读第一天:raft 与Paxos

Raft 学习记录 todo task01:搭建tikv环境 task01:搭建tikv环境(容器版本,和源码版本) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 在Cen

Tidb入门1

TinyKV 是PingCAP公司推出的一套开源分布式KV存储实战课程:https://github.com/tidb-incubator/tinykv