TailScale install(ft. proxmox)
# Virtualation/Docker2024. 4. 22. 15:21TailScale install(ft. proxmox)

proxmox접속LXC 이미지 다운로드 및 생성root@pve:~# pveam download local centos-9-stream-default_20221109_amd64.tar.xz root@pve:~# pct create 999 local:vztmpl/centos-9-stream-default_20221109_amd64.tar.xz --description ct999 --hostname ct999 --memory 512 --rootfs local-lvm:8 --cores 1 --net0 name=eth0,bridge=vmbr0,ip=dhcp --unprivileged 1 --password 12345 --features nesting=1 LXC접속 tailscale설치[root@ct999 ~]# ..

리눅스 시스템 캐시 메모리 초기화
# Operation System/Linux2022. 12. 14. 07:40리눅스 시스템 캐시 메모리 초기화

캐시메모리 설정 확인 To free pagecache: (페이지케쉬 클리어) # echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes: (트리와 아이노드 클리어) # echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes: (1번과 2번 모두 클리어) # echo 3 > /proc/sys/vm/drop_caches Cached 메모리 사용정도를 지정하는 방법 vfs_cache_pressure 커널파라미터를 이용해서 디렉토리와 inode 오브젝트에 대한 캐시로 사용된 메모리를 반환하는 경향의 정도를 지정하는 항목으로 기본값은 100으로 되어있습니다. 해당값을 0으로 설정하게 ..

리눅스 시스템 스왑 메모리 확인
# Operation System/Linux2022. 12. 8. 08:03리눅스 시스템 스왑 메모리 확인

스왑메모리 체크 방법 3가지 [darksharavim]free -h total used free shared buff/cache available Mem: 15G 7.4G 4.3G 219M 3.8G 7.5G Swap: 5.0G 1.0G 4.0G 1. /proc/[pid]/smaps [darksharavim]cat /proc/29771/smaps | more 00400000-01028000 r-xp 00000000 fd:00 105860612 /apps/php7/sbin/php-fpm (deleted) Size: 12448 kB Rss: 0 kB Pss: 0 kB Shared_Clean: 0 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Re..

리눅스 시스템 free command
# Operation System/Linux2022. 12. 8. 07:59리눅스 시스템 free command

centos7x 해당버전예서 보여지는 used에는 buff/cache 값이 따로 나누어져있습니다. 그러기에 실제로 사용하고 있는 메모리양을 구하기 위해서는 used + buff/cache 값이 됩니다. [darksharavim]free -h total used free shared buff/cache available Mem: 15G 7.5G 4.2G 235M 3.8G 7.5G Swap: 5.0G 1.0G 4.0G 메모리 사용량 ((used + [buff/cache]) x 100% ) / total 구 분 설 명 total 현 시스템에 설치되어있는 전체 메모리 크기. used 현재 사용 중인 메모리 크기를 나타낸다. ([total] - [free] - [buffer/cache]) free 시스템에서 사용..

리눅스 시스템 모니터링 sar
# Operation System/Linux2022. 11. 24. 08:40리눅스 시스템 모니터링 sar

설치 yum -y install sysstat 사용법 Usage: sar [ options... ] [ [ ] ] 주요 옵션 종 류 설 명 -A 모든 정보 출력 -f 파일정보를 읽어들여서 출력 -u CPU통계. 디폴트 옵션 -n 네트워크 통계 -o 출력결과를 바이너리 데이터로 저장 -q 프로세스 통계. load average정보가 나옴. -r 메모리 통계 -W 스왑 통계

image