Swap4 728x90 Mac Mini로 로컬 AI 완성하기: Swap, Ollama, Metal 최적화 가이드 맥미니에서 LLM이 어려운 이유LLM 리소스 특성모델필요 메모리qwen:7B약 4~8GBgemma:7B약 4~8GBqwen:14B10~16GBllama3:8B6~10GB👉 문제맥미니 8GB / 16GB → 부족macOS 메모리 흐름RAM 사용Memory CompressionSwap 사용👉 LLM은메모리 압축 효과 낮음swap 사용 시 속도 매우 느림Swap 관점 전략전략 1: swap “활용”이 아니라 “버티기 용도”👉 목표swap = fallbackRAM = 실제 실행전략 2: swap 모니터링 필수vm_stat 1sysctl vm.swapusage전략 3: swap 발생 시 판단 기준상태대응swap 정상swap 증가 지속모델 과도swap + CPU 100%다운그레이드 필요LLM 운영 구조 설계?.. 2026. 4. 12. Linux/Ubuntu 운영체제 가상 메모리 스왑(Swap) 파일 생성 관리 Ubuntu에서 스왑 파일을 생성하고 관리하는 과정은 다음과 같은 단계로 나눌 수 있습니다.1. 스왑 파일 생성스왑 파일을 생성하려면 dd 명령어를 사용하여 파일을 생성합니다. 예를 들어, 1GB 크기의 스왑 파일을 생성하려면 다음과 같은 명령어를 사용합니다.sudo dd if=/dev/zero of=/swapfile bs=1M count=1024또는sudo fallocate -l 1G /swapfile이 명령어는 /swapfile이라는 이름의 1GB 스왑 파일을 생성합니다.2. 스왑 파일에 적절한 권한 설정생성된 스왑 파일은 루트 사용자만 읽고 쓸 수 있도록 권한을 설정해야 합니다.sudo chmod 600 /swapfile3. 스왑 파일을 스왑 영역으로 설정mkswap 명령어를 사용하여 스왑 파일을 .. 2024. 10. 30. Detecting Malware With Memory Forensics 출처 : http://www.deer-run.com/~hal/ 2013. 12. 9. Dstat: Versatile resource statistics tool Screenshot 1 [dag@moria ~]$ dstat --help Usage: dstat [-afv] [options..] [delay [count]] Versatile tool for generating system resource statistics Dstat options: -c, --cpu enable cpu stats -C 0,3,total include cpu0, cpu3 and total -d, --disk enable disk stats -D total,hda include hda and total -g, --page enable page stats -i, --int enable interrupt stats -I 5,eth2 include int5 and interrupt used .. 2009. 10. 20. 이전 1 다음 728x90 728x90