#!/bin/bash mkdir /dev/hugepages 2>/dev/null rm -f /dev/hugepages/tdir/* mkdir /dev/hugepages/tdir while : do i=0 while [ $i -lt 2 ] do touch /dev/hugepages/tdir/nf$i i=`expr $i + 1` done i=0 while [ $i -lt 1000 ] do ./hfill2 1000 2& i=`expr $i + 1` done rm -f /dev/hugepages/tdir/* sleep 1 pkill hfill2 done