Solved

How to assign more CPU to an application on windows server 2003 R2 standard

Posted on 2009-04-10
9
659 Views
Last Modified: 2012-05-06
Hi Experts:

When I start an application , it only uses 25% of the CPU power, I want the system to give mor CPU power to the application, so it can finish faster,  Is there a way I can achieve that ?

Thanks
0
Comment
Question by:changjia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
9 Comments
 
LVL 7

Expert Comment

by:Gladys Kerns
ID: 24115721
Hi Changiia... I'm guessing you have a newer multi-thread or multi-core processor such as a Core2Quad or a Core2Duo Extreme with MT?

If so, your application may not support multi-thread processing.  What are you basing your 25% usage off-of and what is the application?
0
 
LVL 7

Accepted Solution

by:
Gladys Kerns earned 300 total points
ID: 24115724
or since your question is about Windows 2003 Server... probably a multi-proc server, right?
0
 
LVL 95

Assisted Solution

by:John Hurst
John Hurst earned 200 total points
ID: 24115764
An application (anywhere including Servers) typically needs disk resource, possibly other I/O resource, as well as CPU. So if the CPU is only 25% busy, it is very probable that is all it needs. It is a bit like electrical current - if something only needs 5 amps, making 10 amps available won't increase the current draw.

So do you have some reason to say the application is running slowly? Remember, it may want a lot of disk. Is there another simultaneous application also using CPU?

You can open task manager, look at applications, go to the process and set priority. That may help a bit.

... Thinkpads_User
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:changjia
ID: 24115859
Thanks for the help.

The server is Windows 2003 standard R2, It has 2 dual core CPUs.

The application is a batch script we wrote to generate a lots of reports. Currently, it takes 4 hours to finish, We want to shorten the time it takes... when we look at the CPU monitor, it stays at 25%, I set the priority to real time, it still stays at 25%.. Is there a way to give 50% of the CPU to the process?

Thank


Any suggestions?

Thanks

0
 
LVL 7

Expert Comment

by:Gladys Kerns
ID: 24115878
Thinkpads has a viable theory as well (i/o resources)... particularly if you're generating a number of large reports.

How about this - to test his theory and mine at the same time.... can you separate the report production process into two parts?

Let's see if you can make "homemade multi-core processing" Separate the script operations into "halves" if that's possible between two batch scripts and then run them simultaneously.
0
 
LVL 7

Expert Comment

by:Gladys Kerns
ID: 24115886
if you do this and still end-up around 25%... it's i/o.... if you do this and end-up around 50%... it's lack of multi-core support....

I'm pretty sure that raw batch scripting does not support multi-core.  What aps are you running with these scripts?
0
 

Author Comment

by:changjia
ID: 24115982
Brilliant idea, Thanks guys!
I will do the test and let you know!!
We are using an open source program called AWStat, it uses perl to generate bunch of reports for a website...
0
 
LVL 95

Expert Comment

by:John Hurst
ID: 24115988
To really reduce the amount of time, you need to see if the application can process in a different way - specifically by physical record sequence rather than searching by logical sequence. Then split the application as otter77 is suggesting (good suggestion).
... Thinkpads_User
0
 
LVL 7

Expert Comment

by:Gladys Kerns
ID: 24116029
ah... I've used awstats for Perl before.  It works well but it is very i/o intense if you're reading big IIS logs.  It's always run very slowly for me.

Completely off-topic but if you're in the market for free statistics engines - you may consider Google Analytics.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question