Simple Linux stress test

How to verify the overhead of having AV on your server

#!/bin/bash
i=1
mkdir stest-dir 2>/dev/null
for f in $(find /usr/lib64 -type f | head -4096); do
/bin/stat $f > /dev/null &
/bin/cat $f > "stest-dir/filecopy_$i" &
done
rm -rf stest-dir

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Jakub Jóźwicki
Jakub Jóźwicki

No responses yet

Write a response