473,698 Members | 2,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Process affinity

Hi,

I know this has cropped up before because I've searched on it - but the
answers (use imagecfg.exe) don't work in this case.

Is it possible to set the process affinity of a .NET exe ? So that, right
from loading up - without setting processor masks in taskman - it only runs
in a uniprocessor mode ?

I managed to get hold of a copy of imagecfg.exe and tried it - but it didn't
work at all. The app wouldn't even load.

I ask because I used to use the ANTS profiler to profile our app and found
it very useful. Just recently I got a dual core machine and now when I try
to profile performance the app loads under ANTS but processor usage goes
ballistic and I have to kill it. For the record I suspect this is a problem
with our app not quite coping with dual core machines. But the developer has
had a look at it, and nothing really seems to stand out. And the app works
perfectly on its own.

I suspect if I can force it to run on one CPU only I can still profile OK.
BTW you can't attach to a process from ANTS. So I can't start it, set it
from Taskman, then attach.

TVMIA,

Adam.

--

- Adam.

=============== ===============
Ad*********@Omn ibus.NOSPAMMYSP AMSPAM.co.uk
Jul 20 '06 #1
0 1002

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2597
by: Peter Ĺstrand | last post by:
There's a new PEP available: PEP 324: popen5 - New POSIX process module A copy is included below. Comments are appreciated. ---- PEP: 324 Title: popen5 - New POSIX process module
0
1371
by: janob | last post by:
Does the issue posted in http://support.microsoft.com/?kbid=243543 apply to IIS 5.0 and IIS 6.0 whereby storing objects in session or application objects causes thread affinity thus removing all benefit of a thread pool Thank Jano
12
2935
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am starting is that it has a welcome window first which gets displayed and then the real windows after a while,in other words it means that the process name is the same, but the handle I need to retrive is the one from the final window and not the...
1
3765
by: SevDer | last post by:
Hi, I would like to know, if it is possible to maintain affinity by having a webgarden for our ASP.NET application in multi CPU server? And of course if possible without or minimal code change :) Thanks in advance, --
28
4934
by: Jon Davis | last post by:
We're looking at running a memory-intensive process for a web site as a Windows service in isolation of IIS because IIS refuses to consume all of the available physical RAM. Considering remoting to move data in and out of this process. Need something that's quick and dirty and easy to implement, but that's performant and secure at the same time. Any suggestions / tutorials? Would prefer not to go on the TCP/IP stack (socket) as it is not...
7
1794
by: not_a_commie | last post by:
Here's some code I wrote trying to track down a deadlock bug. I was unable to make this code deadlock on my Core 2 Duo. I'd be interested, though, if y'all think it is the right way to use thread affinity or not. I'd also be interested if you saw any code that might cause a deadlock in some other scenario. using System; using System.Collections.Generic; using System.Text; using System.Threading;
0
1145
by: shaun_wilde | last post by:
Hi all I have a windows service that spawns several console applications to perform work - I have however noticed that the console apps seem to only use processor 1 and 3 out of the 4 available leaving the other 2 on 0%. What could be the cause and is there any way to spread the load to take advantage of the spare processors? I tried using processor affinity to either force each console app to a particular processor or to spread it to...
1
2735
by: =?Utf-8?B?VmlqYXkgQ2hpa3Rl?= | last post by:
Hi Experts, With Session Affinity and Web Server Farm on ISA Server 2006 accessing 2 backend IIS servers, I’m getting error “Validation of ViewState MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKeyconfiguration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster”. Here is the scenario when I got the error.
4
4797
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi misters, I have winForm that needs update Panel (add controls to Panel of SplitContainer dynamically). I have a Backgroundworker, and DoWork event I want to add controls but I get this error in Spanish (I don't get translation: Los controles creados en un subproceso no pueden tener controles primarios en un control en un subproceso diferente.)
0
8598
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8887
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8856
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7709
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.