July 7, 2016 at 12:54 pm
To test out a bug fix, I need to thrash the CPU on the my testing SQL Server. I mean I need a query (or queries) that would get the CPU to 90% - 100% for several minutes at a time. The problem is my testing server has 48 cores. I've tried setting the Cost Threshold for Parrallelism to 2 and the MAXDOP to 40, but I can only manage to peg the CPU to about 20%.
Does anyone have a query I can use that just crushes the CPU? Maybe some crazy complex scientific calculation that chews up the CPU?
July 7, 2016 at 5:56 pm
Hi,
We used HammerDB to test our new SAN...it will simulate a load on the system and it consistently brought our CPU up above 90%. 😀
Thanks!
Bea Isabelle
July 7, 2016 at 7:41 pm
I don't think you need to do big calculations. You just need to do repeated stuff with no delay.
http://blog.sqlauthority.com/2013/02/22/sql-server-t-sql-script-to-keep-cpu-busy/
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply