Solved

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

Posted on 2009-04-10
9
655 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
  • 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 92

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
 

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
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.

 
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 92

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Server 2008 SBS is losing disk space 4 88
How to run the DNS query from the server? 5 66
Screen Mirroring 7 54
Backup DHCP Server 8 94
Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now