473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

C#-APP - Application being throttled

I'm wrote a C# application to run a batch process on around 50 million records. Initially this was taking around about 60 seconds to run. Since I'm running a multi-core machine (Intel Quad 6600 - 4 cores), I alterered the code to use 4 threads, which had the desired effect of speeding up my code to around about 40 seconds running time, with all 4 cores running at 100%..

Now, my problem is this. During a routine upgrade, I replaced the hard-drive, and reinstalled a fresh version of windows xp (with all windows updates). Upon rebuilding the application, the run time had gone up to nearly 180 seconds, and the cores were all running at a max of 75%.

I'm using Visual Studio 2005 on a Windows XP machine.

I've tested all the hardware, and its all running fine, which leads me to believe theres a problem with the .net framework somewhere.

Is there some flag or option I'm missing when building the application, thats causing this CPU throttling? Is there someway I can force the application to use 100% of processor power as it was previously?
Mar 26 '08 #1
3 1345
Shashi Sadasivan
1,435 Expert 1GB
There is an option to build an application for 32 bit or 64 bit

However handling of various cores is handled by the hardware.

Are you connecting and disconneting with the database for every query that runs? You may want to use on conection, might lower the processing time
Mar 26 '08 #2
Thats whats confusing me about the whole thing, I'm loading all the data into memory, and processing it from there - no database connections, no reading from the hard-drive, the section being timed only uses data in memory.

Other programs have no trouble getting all 4 cores at 100%,so I presumed it was something in .net that was limiting it.
Mar 26 '08 #3
Plater
7,872 Expert 4TB
Well, it's probably kept in Virtual Memory, which = harddrive (swap file)
If your new harddrive is a slower speed, or even if it's the "same" speed (venders like to 'cheat') you could be experiancing slow down through that.
Any number of OS setting could effect it to, how it interacts with the quad core, or the system buses to the HD, how it handles virtual memory, what priority to give to the application.
Mar 26 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

33
by: aa | last post by:
I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters. Is there a similar...
5
by: The Roys | last post by:
Hi Im doing something wrong in quitting the Word.Application in my VB program. I have General Declarations Dim AppWord As Word.Application Form_Load() Set AppWord =...
8
by: BMM | last post by:
Hi. I have a dumb question. Is a database an application? And, in the context of a data-driven web-enabled application, is the database still an application? I have a project lead who says it is....
9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
0
by: coopdog | last post by:
This is a new issue as of an install to sp1 on vb express 2005. When I publish the application to my drive then I try to install it is wants to be installed from the same location as it was...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.