I used the stress command to stress the CPU of the Linux server(CentOS). Following is the command used.
sudo stress --cpu 4 --timeout 3600
Also I want to do the stress test for the Server memory using such a bash command. The answer here is not supported with bash commands. I am aware of the tools that can be used to stress the memory as stated here. But I want to write a bash script to do stressing.
Does memory stressing affect for virtual memory or only physical memory?