728x90
반응형
SMALL
stress 테스트
# stress --help `stress' imposes certain types of compute stress on your system Usage: stress [OPTION [ARG]] ... -?, --help show this help statement --version show version statement -v, --verbose be verbose -q, --quiet be quiet -n, --dry-run show what would have been done -t, --timeout N timeout after N seconds --backoff N wait factor of N microseconds before work starts -c, --cpu N spawn N workers spinning on sqrt() -i, --io N spawn N workers spinning on sync() -m, --vm N spawn N workers spinning on malloc()/free() --vm-bytes B malloc B bytes per vm worker (default is 256MB) --vm-stride B touch a byte every B bytes (default is 4096) --vm-hang N sleep N secs before free (default none, 0 is inf) --vm-keep redirty memory instead of freeing and reallocating -d, --hdd N spawn N workers spinning on write()/unlink() --hdd-bytes B write B bytes per hdd worker (default is 1GB) Example: stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s Note: Numbers may be suffixed with s,m,h,d,y (time) or B,K,M,G (size). |
- CPU
# yum install epel-release
# yum install stress
# stress -c 코어
# stress -c 4 -v --timeout 1m 4코어를 1분간 부하주기
- Memory
# stress --vm [프로세스 수] --vm-bytes [메모리크기]
# stress --vm 3 --vm-bytes 1024m
# stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s
728x90
반응형
LIST
'Linux&Ubuntu > 서버' 카테고리의 다른 글
centos7 DKIM 설정 (1) | 2024.02.01 |
---|---|
rocky9 시간동기화 (0) | 2024.01.23 |
파일잠금 방법 chattr & lsattr (1) | 2023.11.13 |
Linux route 라우트 (0) | 2023.08.07 |
linux 서버 온도 확인 (0) | 2022.09.23 |