Open in app

Sign In

Write

Sign In

Brian Pan
Brian Pan

22 Followers

Home

About

Jan 10, 2022

[Kernel] CGroups

Cgroups # check cgroup version grep cgroup /proc/filesystems # installation sudo apt install cgroup-tools # copy conf sudo cp /usr/share/doc/cgroup-tools/examples/cgred.conf /etc/ Configuration Metric explanation # tunable list of cpu ls -l /sys/fs/cgroup/cpuacct/ # list current cgroups for cpu ls /sys/fs/cgroup/cpu,cpuacct # /etc/cgconfig.conf group app1{ cpu {…

Operating Systems

3 min read

Operating Systems

3 min read


Dec 21, 2021

[Kernel] Interrupt — Top Half

Linux interrupt management - layers of interrupt management: Hardware: Hardware <-> General Interrupt Controller Process Arch Management: CPU interrupt Interrupt Controller Mangement: IRQ Interrupt # mapping - General Interrupt Controller workflow 1. When GIC detects an interrupt, mark the status of it into pending 2. Distributor Unit will assign the interrupt to target CPU 3. For each CPU…

Kernel

5 min read

Kernel

5 min read


Dec 25, 2020

[Network] Juniper router Part 1

Common commands # compare changes show | compare # show specific block show | find protocols # save config to file 'common' save common # load config from file 'common' load override/merge common # commit changes commit ? # show options commit check # check correctness of the config commit confirmed # automatically…

Network

4 min read

Network

4 min read


Nov 27, 2020

[Rust] Type system

Deref & -> get reference of the var * -> deref an address Without the Deref trait, the compiler can only dereference & references. …

Rust

4 min read

Rust

4 min read


Nov 3, 2020

[Kernel] Kprobe

Usage of Kprobe KProbes is a debugging mechanism for the Linux kernel which can also be used for monitoring events inside a production system. Fetch layout FETCHARGS : Arguments. Each probe can have up to 128 args. %REG : Fetch register REG @ADDR : Fetch memory at ADDR (ADDR should be in kernel) …

Linux Kernel

3 min read

Linux Kernel

3 min read


Aug 6, 2019

IPVS Using IPIP Tunnel

General Setup In this introduction, we use Virtualbox as our VM environment. Here are the three servers we need: LVS server : 2CPU core, 2G Ram, Host network vboxnet 2, vboxnet 3 Service server : 1CPU core, 1G Ram, Host network vboxnet 2, vboxnet 3 Test server: 1CPU core, 1G Ram, Host…

Computer Networking

2 min read

IPVS Using IPIP Tunnel
IPVS Using IPIP Tunnel
Computer Networking

2 min read


May 18, 2018

Network Static Router Configuration

Cisco Router # help ? # enable the privileged exec enable # exit from the privileged exec disable # modify system wide configuration, should enter global configuration mode configure terminal # change interface interface FastEthernet0/0 # enable ip forwarding ip routing # disable ip forwarding no ip routing # enable or disable…

Tech

2 min read

Network Static Router Configuration
Network Static Router Configuration
Tech

2 min read


May 16, 2018

Operating System Protection

How does OS do the protection mechanism? From Segment Descriptor side When OS loading the segment descriptor to the segment register it will check the type in segment descriptor table CS register can only load the descriptors with Executable flag DS(data segment register) permits the descriptors with Readable flag SS can load the descriptors with Writable flag …

Programming

5 min read

Operating System Protection
Operating System Protection
Programming

5 min read


Apr 29, 2018

[Linux] Network commands

Watch # Incoming Network connection watch ss -tp #-t Turn off the header showing the interval, command #-p Make watch attempt to run command every interval seconds # etc: watch the content of a directory change watch -d ls -l watch -d 'ls -l | fgrep brian' Netstat # Get…

Networking

4 min read

[Linux] Network commands
[Linux] Network commands
Networking

4 min read


Apr 28, 2018

[Xv6] Memory Management

How does a linear address come from? Linear Address = Segment_Base + Effective Address Segment Base is from Segment Descriptor Now we talk about how to generate Segment Base Address The process to get Segment Base Address Segment Selector to find the index in Segment Descriptor idx = segment_selector >> 3 TI (Table Indicator) : A zero indicates the GDT; a one indicates the…

Programming

3 min read

[Xv6] Memory Management
[Xv6] Memory Management
Programming

3 min read

Brian Pan

Brian Pan

22 Followers

Site Reliability Engineer in Greater LA

Following
  • Carlos Arguelles

    Carlos Arguelles

  • Pinterest Engineering

    Pinterest Engineering

  • Eileen Pangu

    Eileen Pangu

  • Rajat Kateja, After Hours Academic

    Rajat Kateja, After Hours Academic

  • Ahmad Faiyaz

    Ahmad Faiyaz

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech