GSoC: Add SMT/HT awareness to DragonFlyBSD scheduler

Mihai Carabas mihai.carabas at gmail.com
Thu Jun 21 00:36:09 PDT 2012


--e89a8f6430e0b647f304c2f69158
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I made a bash script [1] which runs the openssl speed test and prints to
stdout the results (time to sign). In order to be able to run this you have
to have bash and the kernel [2] from my repo compiled (branch
smt_usched_bsd4). In order to see some results, you will need an intel with
HT and at least 2 cores.(Note: if you have luck you could have the same
results with the ht_enable as without it).

The first parameter is the number of times you want to run the tests (each
test run for 20seconds - the test bellow took about 200 seconds) and the
second the number of cores (if you have HT this should be to number of cpus
/ 2).
The script will run *number_of_cores* simultaneous processes and each of
them must run on a different core with ht_enable=1. Each process will have
its own column.

Ex:

root at dbsd_64:~# ./openssl_bench.sh
Usage: ./openssl_bench.sh number_of_tests number_of_cores


Here is a test run on a Corei3(dual core with HT). The number of tests is 5.

root at dbsd_64:~# ./openssl_bench.sh 5 2
###### STARTING openssl speed rsa512 with kern.usched_bsd4.ht_enable=0
######
no_smt11        no_smt12
----------------------------------
0.000105s       0.000106s
0.000060s       0.000060s
0.000060s       0.000059s
0.000060s       0.000059s
0.000060s       0.000060s
----------------------------------


###### STARTING openssl speed rsa512 with kern.usched_bsd4.ht_enable=1
######
smt11           smt12
----------------------------------
0.000059s       0.000059s
0.000060s       0.000060s
0.000060s       0.000059s
0.000060s       0.000060s
0.000060s       0.000060s
----------------------------------

Thanks,
Mihai Carabas

[1] http://leaf.dragonflybsd.org/~mihaic/openssl_bench.sh
[2] https://github.com/mihaicarabas/dragonfly

--e89a8f6430e0b647f304c2f69158
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<div><br></div><div>I made a bash script [1] which runs the openssl s=
peed test and prints to stdout the results (time to sign). In order to be a=
ble to run this you have to have bash and the kernel [2] from my repo compi=
led (branch smt_usched_bsd4). In order to see some results, you will need a=
n intel with HT and at least 2 cores.(Note: if you have luck you could have=
 the same results with the ht_enable as without it).</div>
<div><br></div><div>The first parameter is the number of times you want to =
run the tests (each test run for 20seconds - the test bellow took about 200=
 seconds) and the second the number of cores (if you have HT this should be=
 to number of cpus / 2).</div>
<div>The script will run <i>number_of_cores</i> simultaneous processes and =
each of them must run on a different core with ht_enable=3D1. Each process =
will have its own column.</div><div><br></div><div>Ex:</div><div><br></div>
<div><div>root at dbsd_64:~# ./openssl_bench.sh</div><div>Usage: ./openssl_ben=
ch.sh number_of_tests number_of_cores</div><div><br></div><div><br></div><d=
iv>Here is a test run on a Corei3(dual core with HT). The number of tests i=
s 5.</div>
<div><br></div><div><div>root at dbsd_64:~# ./openssl_bench.sh 5 2</div><div>#=
##### STARTING openssl speed rsa512 with kern.usched_bsd4.ht_enable=3D0 ###=
###</div><div>no_smt11 =A0 =A0 =A0 =A0no_smt12</div><div>------------------=
----------------</div>
<div>0.000105s =A0 =A0 =A0 0.000106s</div><div>0.000060s =A0 =A0 =A0 0.0000=
60s</div><div>0.000060s =A0 =A0 =A0 0.000059s</div><div>0.000060s =A0 =A0 =
=A0 0.000059s</div><div>0.000060s =A0 =A0 =A0 0.000060s</div><div>---------=
-------------------------</div>
<div><br></div><div><br></div><div>###### STARTING openssl speed rsa512 wit=
h kern.usched_bsd4.ht_enable=3D1 ######</div><div>smt11 =A0 =A0 =A0 =A0 =A0=
 smt12</div><div>----------------------------------</div><div>0.000059s =A0=
 =A0 =A0 0.000059s</div>
<div>0.000060s =A0 =A0 =A0 0.000060s</div><div>0.000060s =A0 =A0 =A0 0.0000=
59s</div><div>0.000060s =A0 =A0 =A0 0.000060s</div><div>0.000060s =A0 =A0 =
=A0 0.000060s</div><div>----------------------------------</div></div></div=
><div><br></div><div>
Thanks,</div><div>Mihai Carabas</div><div><br></div><div>[1]=A0<a href=3D"h=
ttp://leaf.dragonflybsd.org/~mihaic/openssl_bench.sh">http://leaf.dragonfly=
bsd.org/~mihaic/openssl_bench.sh</a></div><div>[2]=A0<a href=3D"https://git=
hub.com/mihaicarabas/dragonfly">https://github.com/mihaicarabas/dragonfly</=
a></div>

--e89a8f6430e0b647f304c2f69158--





More information about the Kernel mailing list