<commit_before>#!/bin/zsh

echo "Building"

echo $$ | sudo tee /mnt/cpuset/sn/tasks

SOFTNIC_DIR=/home/apanda/softnic/softnic

for i in {chain-green-thread,chain-multi-core,chain-same-core}/*.cs
do
	 mcs -unsafe+ -checked- $i VirtualFunctions.cs llring.cs E2D2Iface.cs SoftNic.cs ../lookup-test/iplookup.cs
done
echo "Done building"
#PFX=$1
#echo "Prefix $PFX"


base=500000000
end=20000000000
inc=500000000

for bw in `seq $base $inc $end`
do
	for iter in {0..2}
	do
		out="logs/base-$bw-$iter.txt"
		echo "Testing baseline ${bw} Iter $iter"
		sudo SCENARIO=v2s2v $SOFTNIC_DIR/softnic -c 4,5,6,7 -- -l 1 -d 15 -r 4 -t 4 -b $bw | tee "$out" &
		SOFTNIC_PID=$!
		sudo LD_PRELOAD=libintel_dpdk.so /home/apanda/mono-bin/bin/mono --gc=sgen --llvm chain-same-core/BaselineGC1.exe &
		echo "Waiting for $SOFTNIC_PID"
		wait $SOFTNIC_PID
		sudo pkill mono
	done
	for iter in {0..2}
	do
		out="logs/fgc-$bw-$iter.txt"
		echo "Testing fixed ${bw} Iter $iter"
		sudo SCENARIO=v2s2v $SOFTNIC_DIR/softnic -c 4,5,6,7 -- -l 1 -d 15 -r 4 -t 4 -b $bw | tee "$out" &
		SOFTNIC_PID=$!
		sudo LD_PRELOAD=libintel_dpdk.so /home/apanda/mono-bin/bin/mono --gc=sgen --llvm chain-same-core/FixedGC1.exe &
		echo "Waiting for $SOFTNIC_PID"
		wait $SOFTNIC_PID
		sudo pkill mono
	done
	for iter in {0..2}
	do
		out="logs/dgc-$bw-$iter.txt"
		echo "Testing dynamic ${bw} Iter $iter"
		sudo SCENARIO=v2s2v $SOFTNIC_DIR/softnic -c 4,5,6,7 -- -l 1 -d 15 -r 4 -t 4 -b $bw | tee "$out" &
		SOFTNIC_PID=$!
		sudo LD_PRELOAD=libintel_dpdk.so /home/apanda/mono-bin/bin/mono --gc=sgen --llvm chain-same-core/DynamicGC1.exe &
		echo "Waiting for $SOFTNIC_PID"
		wait $SOFTNIC_PID
		sudo pkill mono
	done
done
<commit_msg>Fix gc.sh to use msb<commit_after>#!/bin/zsh

echo "Building"

echo $$ | sudo tee /mnt/cpuset/sn/tasks

SOFTNIC_DIR=/home/apanda/softnic/softnic

msb Build.proj 
echo "Done building"
#PFX=$1
#echo "Prefix $PFX"


base=500000000
end=20000000000
inc=500000000

for bw in `seq $base $inc $end`
do
	for iter in {0..2}
	do
		out="logs/base-$bw-$iter.txt"
		echo "Testing baseline ${bw} Iter $iter"
		sudo SCENARIO=v2s2v $SOFTNIC_DIR/softnic -c 4,5,6,7 -- -l 1 -d 15 -r 4 -t 4 -b $bw | tee "$out" &
		SOFTNIC_PID=$!
		sudo LD_PRELOAD=libintel_dpdk.so /home/apanda/mono-bin/bin/mono --gc=sgen --llvm bin/BaselineGC.exe &
		echo "Waiting for $SOFTNIC_PID"
		wait $SOFTNIC_PID
		sudo pkill mono
	done
	for iter in {0..2}
	do
		out="logs/fgc-$bw-$iter.txt"
		echo "Testing fixed ${bw} Iter $iter"
		sudo SCENARIO=v2s2v $SOFTNIC_DIR/softnic -c 4,5,6,7 -- -l 1 -d 15 -r 4 -t 4 -b $bw | tee "$out" &
		SOFTNIC_PID=$!
		sudo LD_PRELOAD=libintel_dpdk.so /home/apanda/mono-bin/bin/mono --gc=sgen --llvm bin/FixedGC.exe &
		echo "Waiting for $SOFTNIC_PID"
		wait $SOFTNIC_PID
		sudo pkill mono
	done
	for iter in {0..2}
	do
		out="logs/dgc-$bw-$iter.txt"
		echo "Testing dynamic ${bw} Iter $iter"
		sudo SCENARIO=v2s2v $SOFTNIC_DIR/softnic -c 4,5,6,7 -- -l 1 -d 15 -r 4 -t 4 -b $bw | tee "$out" &
		SOFTNIC_PID=$!
		sudo LD_PRELOAD=libintel_dpdk.so /home/apanda/mono-bin/bin/mono --gc=sgen --llvm bin/DynamicGC.exe &
		echo "Waiting for $SOFTNIC_PID"
		wait $SOFTNIC_PID
		sudo pkill mono
	done
done

{'fraction_non_alphanumeric': 0.1528260183138617, 'fraction_numerical': 0.04515314177455005, 'mean_word_length': 3.3516483516483517, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5505410', 'n_tokens_mistral': 1642, 'n_tokens_neox': 1435, 'n_words': 351}