echo 1 > /proc/sys/vm/drop_cachesecho 2 > /proc/sys/vm/drop_cachesecho 3 > /proc/sys/vm/drop_caches drop_caches 1 : Page cache해제drop_caches 2 : inode, dentry cache 해제drop_caches 3 : Page cache, inode cache, dentry cache 해제캐시 삭제 시 시스템이 잠시 멈출 수 있음. 캐시메모리 반환 설정설정 값 확인 :cat /proc/sys/vm/vfs_cache_pressure설정하기 :echo 10000 > /proc/sys/vm/vfs_cache_pressure 혹은vm.vfs_cache_pressure = 10000영구적으로 설정 :/etc/sysctl.conf 파일에 vm.vfs_cache_pressure = 10000 추가 추가적으로 공부할 것https://wiki.kldp.org/Translations/html/The_Linux_Kernel-KLDP/tlk3.html
date : 071417352008 >> 월일 >> 시간 >> 년도
PHP 버전 : 4.3.10 LIBS="-lpthread" LDFLAGS="-lpthread" CFLAGS="-O3 -funroll-loops -mcpu=i686 -march=i686 -fomit-frame-pointer" CXXFLAGS="-O3 -funroll-loops -mcpu=i686 -march=i686 -fomit-frame-pointer" ./configure --with-apxs=/usr/local/apache/bin/apxs (이곳 경로는 아파치 설치 경로를 참고할 것) --with-config-file-path=/usr/local --enable-module=so --enable-trans-sid --enable-track-vars --with-zlib-dir=/usr/lib --with-zlib --enable-ftp --enable-calendar --enable-exif --with-mcrypt --with-mysql --disable-debug --enable-inline-optimization --enable-mailparse --with-gd=/usr/local/gd
CommandFirefoxInternet ExplorerOperaBackShift+Scroll downShift+Scroll downShift+Scroll downClose TabMiddle-click on Tab 1Feature Not AvailableShift+Left-clickDecrease Text SizeCtrl+Scroll upCtrl+Scroll upCtrl+Scroll upForwardShift+Scroll upShift+Scroll upShift+Scroll upIncrease Text SizeCtrl+Scroll downCtrl+Scroll downCtrl+Scroll downNew TabDouble-Click on Tab BarFeature Not AvailableDouble-Click on Tab BarOpen in Background TabCtrl+Left-click 2 Middle-clickFeature Not AvailableCtrl+Shift+Left-click Middle-clickOpen in Foreground TabCtrl+Shift+Left-click 2 Shift+Middle-click 2Shift+Left-clickO
arp 명령어는 Address Resolution Protocol의 약자로써, arp cache에 있는 IP 어드레스에 대한 HW 어드레스(대게 MAC 어드레스란 표현을 많이 사용한다)를 돌려주는 명령어이다. 이 HW 어드레스는 6 바이트로 구성되어지는데, 처음 3 바이트는 제조 벤더에 대한 교유 번호이고, 나머지 3개는 제품 일련 번호라고 한다. 결국 이 6개의 바이트는 전세계에서 유일무이한 번호가 되는데, 논리적인 IP어드레를 물리적이고 고유한 컴퓨터에 맵핑시키기 위해서는 아주 중요한 존재이다. 명령어 형식 : arp [OPTION] 옵션 -e : arp 캐쉬에 있는 HW어드레스를 리눅스 스타일로 표히 -s host HW어드레스 : arp 캐쉬에 새로운 HW어드레스를 저장 -d : arp 캐쉬에 HW어드레스를 삭제 실행 예 [root@linux root]# arp -e Address HWtype HWaddress Flags Mask Iface 192.168.10.1 ether 00:0E:E8:04:45:77 C eth0 192.168.10.21 ether 00:E0:91:04
top 실행시 나타나는 필드에 대한 설명 PID : 프로세스 ID USER : USER PRI : 우선 순위 NI : NICE 값 SIZE : 실제 사용 메모리 RSS : 물리적 메모리(할당된 메모리, 실제 사용하는 메모리와 다소 차이가 있음) SHARE : 공유 메모리 크기 STAT : 프로세스 상태 %CPU : CPU사용 비율 %MEM : MEMORY사용 비율 TIME : CPU이용시간 CPU : 모름 COMMAND : 수행되는 명령어 실제 내용 PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND 1 root 15 0 472 472 424 S 0.0 0.0 0:04 0 init [3] 2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd 3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd 4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 kso
현재 랜카드 전송속도 구하기 sar -n DEV 2 3 2초간 총 3번 조사하고, 평균값 마지막 출력하기 참고 http://perso.wanadoo.fr/sebastien.godard/use_sar.html
############################# # 하드추가와 파티션 나누기 # 2005. 5. 11 이황배 # kosthb@gmail.com ############################# [root@112s /]# fdisk /dev/sdc ==> 세번째 하드 추가/파티션나누기 The number of cylinders for this disk is set to 4462. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p ==> 하드 상태를 본다 "p" 엔터 isk /dev/sdc: 255 heads, 63 sectors, 4462 cylinders Unit