Monday, February 20, 2012

limit the CPU usage

Hi all,
I know we can set limit to the memory used by SQL Server, but are there
any way to force only 30% of total CPU will used by the SQL server. ?
Thanks alot.You can specify how many processors to use, on a multi-proc box, but you
cannot specify the % usage.
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
"Rena" <rena@.mail.hongkong.com> wrote in message
news:OIoOUJEjEHA.1344@.TK2MSFTNGP11.phx.gbl...
Hi all,
I know we can set limit to the memory used by SQL Server, but are there
any way to force only 30% of total CPU will used by the SQL server. ?
Thanks alot.|||That's not possible. You can only set the SQL Server CPU affinity on
multiprocessor systems i.e. which CPU's SQL Server can use.
Peter Yeoh
http://www.yohz.com
Need smaller SQL2K backups? Use MiniSQLBackup Lite, free!
"Rena" <rena@.mail.hongkong.com> wrote in message
news:OIoOUJEjEHA.1344@.TK2MSFTNGP11.phx.gbl...
> Hi all,
> I know we can set limit to the memory used by SQL Server, but are
there
> any way to force only 30% of total CPU will used by the SQL server. ?
> Thanks alot.
>|||if you were running Windows Server 2003 , you could in theory use WSRM to
limit the processor util by SQLServr.exe as per link below. Pretty cool, you
can even have time based policies that change the percentage depending the
time of day - ie increase the percentage over night when batch processing.
Would do some research on supportability with SQL Server / best practices
before going for it and test test test !
http://www.microsoft.com/windowsser...loads/wsrm.mspx
"Rena" wrote:

> Hi all,
> I know we can set limit to the memory used by SQL Server, but are ther
e
> any way to force only 30% of total CPU will used by the SQL server. ?
> Thanks alot.
>
>|||Hi Rena,
It is not possible, with standard tools, to dictate the amount of CPU time
for SQLServer, but there is a Win2000 Server parameter, 'priority boost',
which dictates which process has priority over the CPU.
SQLServer runs at normal priority on Win2000 Server (priority base 7). This
can be boosted to priority base 13 by setting 'priority boost' option to 1
from the default of 0 using sp_configure. This should only be done if the
Win2000 Server is dedicated to SQLServer or there are more than one CPU.
Reducing the amount of CPU time for SQLServer is normally not necessary nor
desirable. If the CPU is running at or near 100% for consciderable periods
and this time is used by SQLServer, you could try boosting the priority for
other processes or conscider whether there exists a bottleneck.
Hope it helps.
James.
"Rena" <rena@.mail.hongkong.com> wrote in message
news:OIoOUJEjEHA.1344@.TK2MSFTNGP11.phx.gbl...
> Hi all,
> I know we can set limit to the memory used by SQL Server, but are
there
> any way to force only 30% of total CPU will used by the SQL server. ?
> Thanks alot.
>

No comments:

Post a Comment