빨간글씨만 따라하면 됨. ^^
[ystest ~ # ] uname -a
FreeBSD ystest.ystest.co.kr 10.3-RELEASE-p7 FreeBSD 10.3-RELEASE-p7 #0: Thu Aug 11 18:38:15 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERys amd64
[ystest ~ # ] top
last pid: 49787; load averages: 0.20, 0.19, 0.14 up 166+16:55:11 09:22:47
44 processes: 1 running, 43 sleeping
CPU 0: % user, % nyse, % system, % interrupt, % idle
CPU 1: % user, % nyse, % system, % interrupt, % idle
CPU 2: % user, % nyse, % system, % interrupt, % idle
CPU 3: % user, % nyse, % system, % interrupt, % idle
CPU 4: % user, % nyse, % system, % interrupt, % idle
CPU 5: % user, % nyse, % system, % interrupt, % idle
CPU 6: % user, % nyse, % system, % interrupt, % idle
CPU 7: % user, % nyse, % system, % interrupt, % idle
Mem: 17M Active, 978M Inact, 14G Wired, 40M Cache, 1646M Buf, 289M Free
ARC: 10G Total, 3465M MFU, 5828K MRU, 16K Anon, 225M Header, 6427M Other
Swap: 764M Total, 566M Used, 198M Free, 74% Inuse
[ystest ~ # ] swapinfo
Devyse 1K-blocks Used Avail Capacity
/dev/ada0p3 782336 579924 202412 74%
[ystest ~ # ] df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 14G 5.1G 7.4G 41% /
devfs 1.0K 1.0K 0B 100% /dev
ys 3.5T 2.4T 1.1T 70% /ys
[ystest ~ # ] swapctl -l
Devyse: 1024-blocks Used:
/dev/ada0p3 782336 579924
[ystest ~ # ] swapctl -s
Total: 782336 579924
[ystest ~ # ] swapctl -s -h
Total: 764M 566M
[ystest ~ # ] df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ada0p2 14216508 5363336 7715852 41% /
devfs 1 1 0 100% /dev
ys 3766982544 2629394295 1137588249 70% /ys
[ystest ~ # ] dd if=/dev/zero of=/swap0 bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes transferred in 29.446623 secs (36464006 bytes/sec)
[ystest ~ # ] chmod 0600 /swap0
[ystest ~ # ] vi /etc/fstab
# Devyse Mountpoint FStype Options Dump Pass#
/dev/ada0p2 / ufs rw 1 1
/dev/ada0p3 none swap sw 0 0
md99 none swap sw,file=/swap0,late 0 0
[ystest ~ # ] swapon -aL
swapon: adding /dev/md99 as swap devyse
[ystest ~ # ] df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 14G 6.1G 6.4G 49% /
devfs 1.0K 1.0K 0B 100% /dev
ys 3.5T 2.4T 1.1T 70% /ys
[ystest ~ # ] swapctl -l
Devyse: 1024-blocks Used:
/dev/ada0p3 782336 579924
/dev/md99 1048576 0
[ystest ~ # ] top
last pid: 50439; load averages: 0.18, 0.12, 0.09 up 166+17:11:59 09:39:35
49 processes: 1 running, 48 sleeping
CPU 0: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
CPU 1: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
CPU 2: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
CPU 3: 0.0% user, 0.0% nice, 0.4% system, 0.0% interrupt, 99.6% idle
CPU 4: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
CPU 5: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
CPU 6: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
CPU 7: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
Mem: 21M Active, 1159M Inact, 14G Wired, 12M Cache, 1646M Buf, 318M Free
ARC: 9621M Total, 3308M MFU, 6292K MRU, 16K Anon, 224M Header, 6083M Other
Swap: 1788M Total, 566M Used, 1221M Free, 31% Inuse
'FreeBSD' 카테고리의 다른 글
[FreeBSD]swap 흔적 지우기, swap on/off (0) | 2017.03.09 |
---|---|
[V2P] vsphere 가상서버 -> 물리서버로 이전하는 방법(Vmware Workstation 이용) (0) | 2017.03.09 |
freebsd 서버(파티션)이전 (0) | 2014.11.07 |
V2P/P2V 시 파티션 크기조절 (0) | 2014.09.12 |
FreeBSD 10.0, MariaDB 10.0 컴파일 (0) | 2014.08.05 |
댓글