Chun-Hung Tseng

@henrybear327

Joined on Feb 22, 2017

  • kernel 開發筆記vim 設定 :set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab cindent cc=80 編譯 make defconfig && make -j $(nproc) 檢查./scripts/checkpatch.pl --patch 使用 sparse -> make C=1 LKML 上提交 patch Generate patchGenerate patch git format-patch HEAD~With versioning git format-patch -v3 HEAD^ Apply patch git am [patch filename]
     Like 1 Bookmark
  • 目前使用 infer 有兩個方法 Build from source (建議使用這個) 使用官方 2021 年的 v1.1.0(已經年代久遠了) Build from source 建立一個 Dockerfile FROM ubuntu:22.04
     Like  Bookmark
  • Arm Performance counter stats for 'system wide': 29542917575534 armv8_pmuv3_0/cpu_cycles/ (92.86%) 53291047513921 armv8_pmuv3_0/inst_retired/ (92.86%) 7164507772730 armv8_pmuv3_0/br_pred/ (92.86%) 7078566043555 armv8_pmuv3_0/br_retired/ (92.86%) 206260028351 armv8_pmuv3_0/br_return_retired/ (92.86%) 34081348428 armv8_pmuv3_0/br_mis_pred/ (92.86%) 29682857757 armv8_pmuv3_0/br_mis_pred_retired/ (92.86%)
     Like  Bookmark
  • Raspberry Pi Ubuntu server Steps Official debian build doc Since we are using ubuntu (which has the debian build system), the way to build for Desktop and raspberry pi is the same Install cross compiler (if you want to cross compile) sudo apt install crossbuild-essential-arm64
     Like 1 Bookmark
  • 這篇文是從我研究過程中雜亂的筆記所整理出來,過程中需要安裝的套件或是步驟可能會有錯誤或是缺漏(畢竟前前後後找問題裝了不少東西)。 如有疏漏,請大家不吝指教,謝謝大家! 比較常見可以跑在 Raspberry Pi 4 的 Linux kernel 大致上分成 Mainline Kernel(本文撰寫時 5.14 剛剛推出), Raspbian (5.10, 32-bit), 跟 Ubuntu (5.4, 32/64-bit) 這幾種。其中,Raspbian 目前還是以 32-bit 的 kernel 為主(所有 user space 的應用程式都是 32-bit,雖然你可以把 kernel 換成 64-bit 的)。 由於我自己的實驗所需(對 kernel 進行 patching),下面在 Raspberry Pi 上面進行編譯的段落,是基於 Ubuntu Server for Raspberry Pi 64-bit 版本的 kernel 所撰寫,畢竟我需要的是 64-bit 的環境。 :::info Raspbian 的編譯方式官方文件就已經寫得很清楚了,所以本文著墨的主要是在 Ubuntu Server for Raspberry Pi (64-bit) 版本的 kernel 跟 Mainline Kernel 的部分。
     Like 7 Bookmark
  • Steps SD card Use image writer Ubuntu Setup wifi Raspbian
     Like  Bookmark
  • Steps Get the kernel source code that is used for building the currently running system and build it software-properties-gtk -> tick the source code box You can check /etc/apt/sources.list setup build dependencies
     Like  Bookmark
  • Paper ULE 介紹 TODO 讀完 ULE 介紹跟看完影片,我發現論文的細節跟 ULE 介紹的有一點出入 差異性 從論文中感受到兩者實作之 starvation 問題。 CFS 強調 fairness, 而 ULE 把 thread 分類後,如果你不幸不是在 interactive queue 的話,就有機會真的被 starve 死,這就是根本的設計精神的差別了。
     Like  Bookmark
  • 嗨大家,這是我想到什麼就打什麼的文,大家可以隨意參考一下。很多細節還是請參考學生會的文章,這篇比較像是隨筆類型的東西,根據之前兩年進出日內瓦的一些心得而寫。 有問題也可以直接問,或是想到什麼就補充上來也可以😝 土耳其伊斯坦堡機場轉機 如果是在伊斯坦堡轉機的話再看這段就好。 機場滿大的,免稅店 24 小時都有開。 如果需要借 Trolly,找到機器後用信用卡付押金一歐元即可。借到車子後他會給你一張票,還車時他會退給你 10 土耳其幣(當紀念品🤪)。
     Like 1 Bookmark
  • 旁聽生 學歷 國立中正大學 資訊工程學系 (2014-2018) EPFL Master of Computer Science (2021-) 聯絡資訊 email: henrybear327@gmail.com
     Like 1 Bookmark
  • Step 1 A. Binary Search Implement a straight-forward binary search algorithm. Implement binary search Using the normal approach. #include <bits/stdc++.h> using namespace std;
     Like  Bookmark
  • 1. Two Sum The most classic version. Binary search Time complexity: $O(nlog(n))$, where n is the number of elements in the array Since we are using binary search, the precondition is that the array must be sorted. Search for value x class Solution {
     Like  Bookmark
  • 0/1 有限 無限 322. Coin Change top-down TLE class Solution { public: int coinChange(vector<int>& coins, int amount) { if(amount == 0) {
     Like  Bookmark
  • contributed by < henrybear327 > Quiz 4 Github Problem 1 Implementation Code with comments The main idea of the thread pool contains 2 parts: thread pool and task.
     Like  Bookmark
  • Problem statement / Motivation It all started with my previous bad experience when doing VPN hosting myself. If we host VPN servers on GCP/AWS/DO/Linode, you now have all the devices on local network, but the common problems/downsides are e.g. streaming services like Netflix will block you (so you need to turn off VPN a lot of times...); Google search will often challenge you with recaptcha, etc. So I would like to find a way to workaround it :) Expectation / Solution The VPN servers in the cloud will have bad IPs, but the IP that we are using at home is usually good and not blocked! So if we can somehow redirect all external traffic going out of VPN servers hosted in the cloud to our home IP, we are all set. But hosting VPN server at home, which is usually a floating IP and behind NAT, is hard. So we need some workaround for it!
     Like  Bookmark