I want to stress memory for certain time duration. I am checking memory usage with vmstat -s
and using tail /dev/zero
command but tail /dev/zero
times out in about 60s and it fills out memory randomly. I want to have available free memory 5% for 180 seconds.
Home
/
user-533127
beginner_user's questions
Currently I am using below command
stress -c 2 -i 1 -m 1
Question: with above command, cpu utilization goes till 100%. Is there anyway I can limit it to only 80%?
I'd like to see if "/tmp" dir contains hidden dir and dir named "test"
Currently ls -la /tmp contains below
.
..
test
I'd like to check if /tmp doesn't contain anything else besides above using shell script?
My process name is test
. If I use
ps -ef | grep test
I see that process is running. Now I want to check this every 10 mins for one hour and print success if it's running successfully for one hour. What is the best way to do so?