목록분류 전체보기 (17)
컴맹의 CS study
sudo tail /var/log/kern.log c4 dataset loading중에 에러도 없이 자꾸 죽어서 보니까 oom으로 죽는다. Jun 30 02:31:33 machinename kernel: [6134019.359251] Out of memory: Killed process 2649250 (python) total-vm:268110604kB, anon-rss:221888400kB, file-rss:79488kB, shmem-rss:17160kB, UID:1008 pgtables:439024kB oom_score_adj:0
맨날 까먹는 /etc/vim/vimrc 에 last position restore하는부분 uncomment
# check the filesystem type of current(root) disk sudo file -sL /dev/vda # mount additional disk with type ext4 sudo mount -t ext4 /dev/vdb /mnt 위 대로 했을때 wrong fs type, bad option, 어쩌고 하는 에러가 나서 찾아보니 mount를 하기전에 new filesystem을 create해야하는것같다. 참고해서 아래대로 실행후 mount하니 잘됨 # create a new file system sudo mkfs.ext4 /dev/vdb
visual block으로 구간 잡아서 zf: folding, zo: unfolding
when i want to make sure that one thing runs before another, like following pid = fork() if (pid) { // parent: yield to child so it can go sched_yield(); printf("parent\n"); } else { printf("child\n"); } reference https://books.google.co.kr/books?id=4Kb_1sKprCMC&pg=PA171&lpg=PA171&dq=sched_yield+takes+most+of+running+time&source=bl&ots=vamCJ2CXFO&sig=ACfU3U2NOLMVVJCG7_Gz-YuYIYUbwquetA&hl=en&sa=X..
mkdir build-dir cd build-dir cmake .. make
- cuda driver를 install 하면 nvidia driver가 자동으로 설치되기때문에 따로 nvidia driver.run 을 받을필요는 없었는듯 하다 - distribution-specific(?) default(?) driver(nouveau) 를 disable하고 - cuda-10.x-....run 어쩌고 파일을 실행해주면 됐는데 installer 가 자꾸 에러가 나서 설치가 안되어서 찾아보다보니 kernel lockdown 문제였고, 요약하면 kernel module은 trusted key로 sign된 module만 로드할수있는데 runtime에 root권한을 가진 상태로 모듈을 수정할수 있다면 security guarantee가 무너지기때문에 runtime에 못하게 kernel loc..
https://itsfoss.com/no-grub-windows-linux/ Fix Grub Not Showing For Windows 10 Linux Dual Boot - It's FOSS Booting straight into Windows after installing Ubuntu Linux in dual boot? Here's how to fix it and bring the Grub menu back. itsfoss.com 윈도우에서 command prompt를 관리자 권한으로 실행하고 아래 command를 실행 bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi 뭔가 이상하다? 다시 돌려놓으려면 bcdedit /deletevalue {bootmgr} p..