2022/10 5

[linux] libc 와 glibc 와 libstdc++ 와 gcc의 관계 정리

개념 정리 libc 최초의 libc, 이것이 원래의 고대 표준 라이브러리 구현체입니다. 현재는 libc는 "표준 C 라이브러리"를 말하는 대 명사처럼 사용 됩니다. glibc glibc는 GNU에서 만든 libc 입니다. glibc는 리눅스 시스템에서 가장 저수준의 API이며 거의 모든 runtime library가 glibc에 의존합니다. 예를 들면 c코드에서 fopen 함수를 사용하면 시스템에서 sys_open이 트리거 되고 중간 처리를 해주는 것이 glibc입니다. glibc 자체는 시스템 호출을 캡슐화하는 것 말고도 문자열, malloc, linuxthread, locale, signal등과 같은 상위 레벨 응용 프로그램에 필요한 기능을 제공합니다 libc++ libc++는 Clang 프로젝트에서..

[kubernetes] cheat sheet

특정 node 스케쥴링 막기 - kubectl cordon은 지정된 노드에 더이상 포드들이 스케쥴링되서 실행되지 않도록 합니다 1) 설정 #kubectl cordon "node이름" # kubectl get nodes NAME STATUS ROLES AGE VERSION master Ready,SchedulingDisabled control-plane 21h v1.25.2 worker Ready 5h49m v1.25.3 2) 해제 #kubectl uncordon "node이름" 특정 node의 pod를 다르 node로 옮기기 #kubectl drain docker-for-desktop --ignore-daemonsets=true --ignore-daemonsets=true 은 daemonsets이 있어도..

Cloud/k8s 2022.10.14

[AWS-DOP-CO1] CodeCommit

정의 AWS상에서의 git repository 입니다. 특징 1. private git repositories 2. size 제한 없음 3. fully managed, highly available 4. code는 AWS 계정에 종속 적입니다. 5. CodeBuild / jenkin와 연동 할 수 있다. Commit에서 할 수 있는 것들 1. codecommit push 계정 생성 IAM -> user -> 계정 -> Security Credentials -> HTTPS Git credentials for AWS CodeCommit 생성 2. codecommit에 push 하는 방법 HTTPS Git credentials for AWS CodeCommit 생성한 ID/PW를 사용 합니다. 3. merge..