본문 바로가기

[YCSB] except subprocess.CalledProcessError, err: YCSB에서 redis를 사용해서 실험을 돌리려는데 다음과 같은 에러가 발생했다. ./bin/ycsb load redis -s -P workloads/workloada -p "redis.host=127.0.0.1" -p "redis.port=6379" File "./bin/ycsb", line 223 except subprocess.CalledProcessError, err: ^ SyntaxError: invalid syntax YCSB에서는 파이썬 2.7버전을 사용하는데 파이썬 버전이 3.x버전이면 이런 오류가 발생하는듯 하다. 수정 방법은 기본 파이썬 버전을 2.7로 변경해주면 된다. sudo update-alternatives --install /usr/bin/python python /usr/bi..
.config에 새로운 option 추가 커널 컴파일 .config파일에 나만의 옵션을 추가하려면 다음과 같은 2가지 파일을 수정해줘야한다. 1) Kconfig 파일 config MY_SETTING bool “This is the menuconfig label” default y help help for your new option 2) (위에 Kconfig 파일과 같은 디렉토리의) Makefile obj-$(CONFIG_MY_SETTING) += yournewcode.o Reference: https://stackoverflow.com/questions/36646428/introduce-a-new-configuration-parameter-in-linux-kernel-make-menuconfig Introduce a new configurat..
apt-get update 실패 / InReleaseTemporary failure resolving apt-get update를 하려는데 다음과 같은 에러가 뜨면서 실행되지 않았다. Err:1 http://archive.ubuntu.com/ubuntu focal InReleaseTemporary failure resolving 'archive.ubuntu.com' 해결방법은 다음과 같다. 1) sudo vim /etc/network/interfaces 2) iface eth0 inet dhcp 를 파일 안에 적고 저장 3) dhclient 라고 커맨드 창에 입력 4) ping 8.8.8.8을 통해 테스트 및 apt-get update 다시 실행
ERROR: modpost: "kallsyms_lookup_name" ... undefined! kernel module compile 시 다음과 같은 에러가 발생했다. ERROR: modpost: "kallsyms_lookup_name" ... undefined! 커널에서 해당 함수를 찾아서 함수가 종료한 후 마지막에 EXPORT_SYMBOL(kallsyms_lookup_name); 를 추가해주면 된다.
Error: initrd is too big 커널 컴파일을 하고 부팅을 하는데 다음과 같은 에러가 뜨면서 부팅이 안됐다. Error: initrd is too big 수정방법은 다음과 같다. 1) 리부팅을 하되 shift 또는 esc를 눌러서 Ubuntu 부팅 설정화면으로 접속한다. 2) 새롭게 컴파일한 커널이 아닌 다른 커널을 통해서 부팅을 한다. 3) vi /etc/initramfs-tools/initramfs.conf 4) MODULES=most를 MODULES=dep로 바꿔준다 5) sudo update-intramfs -u -k all 6) reboot
[PM] 관련 명령 정리 * NUMA node 별로 pm 모듈을 확인하고 싶을 때 ndctl list -R --numa-node=0 * 한 소켓에 붙은 PM들을 모듈별로 따로 잡고 싶을 때 ipmctl create -goal PersistentMemoryType=AppDirectNotInterleaved * 한 소켓에 붙은 PM들은 그냥 하나로 보고싶을 때 ipmctl create -goal PersistentMemoryType=AppDirectInterleaved
ERROR: launchpadlib 1.10.6 requires testresources, which is not installed. ERROR: launchpadlib 1.10.6 requires testresources, which is not installed. Python3: sudo apt install python3-testresources Python2: sudo apt install python-testresources
SCP: Connection Closed $ scp -P [port] [보낼파일] xxx@[ip addr]:~ ex) scp -P 22 test.txt abc@11.22.33.44 위의 명령을 통해 scp를 수행했는데 아래와 같은 에러가 떴다. subsystem request failed on channel 0 scp: Connection closed -O 옵션을 추가해주면 문제가 해결된다. $ scp -O -P 22 test.txt abc@11.22.33.44