#!/bin/sh # flush memory with use-twice page cache reads # lru_lock coverage # 2060819456 activate_page # 154664490 ____pagevec_lru_add # 131308246 move_active_pages_to_lru # 65654100 shrink_active_list # 65510367 shrink_inactive_list # zone->lock coverage # 33637385 free_pcppages_bulk # 33650227 rmqueue_bulk . ./hw_vars for i in `seq 1 $nr_task` do create_sparse_file $SPARSE_FILE-$i $((ROTATE_BYTES / nr_task)) timeout --foreground -s INT ${runtime:-600} dd bs=4k if=$SPARSE_FILE-$i of=/dev/null > $TMPFS_MNT/dd-output-1-$i 2>&1 & timeout --foreground -s INT ${runtime:-600} dd bs=4k if=$SPARSE_FILE-$i of=/dev/null > $TMPFS_MNT/dd-output-2-$i 2>&1 & done wait sleep 1 for file in $TMPFS_MNT/dd-output-* do [ -s "$file" ] || { echo "dd output file empty: $file" >&2 } cat $file rm $file done rm `seq -f $SPARSE_FILE-%g 1 $nr_task`