473,563 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to maintain affinity in webgarden (multi CPU)?

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,

--

SevDer
http://www.sevder.com
A new source for .NET Developers

Jan 27 '06 #1
1 3761
Hi SevDer,

Welcome to the MSDN newsgroup.

As for the webgarden of ASP.NET web application, it can help us schedule
one ASP.NET appplication running across multiple worker processes. However,
the webgarden only contain setting for CPU mask which determine the worker
process count for serving the application. There is no other settings on
Thread affinity in webgarden based ASP.NET web application. So each request
of ASP.NET application using webgarden are not guaranteed to be served by
the same worker process(even the different postback requests for the same
page...). So when using webGarden, we have to take care of those state
management things like session state(Inproc), application cache since
they're all process specific.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Reply-To: "SevDer" <se******@sevde r.com>
| From: "SevDer" <se****@newsgro up.nospam>
| Subject: How to maintain affinity in webgarden (multi CPU)?
| Date: Fri, 27 Jan 2006 14:07:44 -0500
| Lines: 16
| Organization: http://www.sevder.com
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
| Message-ID: <et************ **@TK2MSFTNGP11 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: mail.dtfares.co m 68.167.20.2
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP11.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3741 09
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| 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,
|
| --
|
| SevDer
| http://www.sevder.com
| A new source for .NET Developers
|
|
|
|

Jan 30 '06 #2

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

Similar topics

6
7431
by: Thomas Womack | last post by:
If I have a dual-processor hyperthreaded machine (so with four CPU contexts), will a python program distribute threads over all four logical processors? I ask because I'm fairly sure that this *does* happen using the threading extensions in MFC, and fairly sure that it *doesn't* when using Java, so I don't see that the result is obvious for...
3
3114
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application there. There is performance degradation. The usual performance of the application on MP machine is better than that of uni processor machine....
4
2301
by: DMAC | last post by:
Hi, Ive been told this, but I hope it is NOT true. I have an sql server2000 installation running on a server that has four processors. It is on a active network but is not the domain controller so essentially it is fully dedicated to servicing the needs of sql server, (a bit of browsing, a bit of ms Office, but almost wholly dedicated to...
0
1443
by: Jeremy | last post by:
Hello all, I've done a couple of hours searching for answers to this question, but couldn't find a definite answer. I'm hoping someone here can just give me a quick answer. I have a dual processor server. Currenty it is set with web-gardening turned off. I have set the threads in machine.config as per microsoft recommendations:
3
2618
by: DrBytes | last post by:
Hello, I have a question about webgardens. As I understand it, a webgarden is physically one box with multiple processors in it. In the MSDN documentation about webgardens they mention : "If webGarden is set to true, by default, all CPUs are enabled and ASP.NET starts one process for each CPU" Ok.. So this means that when I have a box with...
3
2923
by: MattB | last post by:
I have a asp.net 1.1 application that a client is running at a hosting company. The hosting company has WebGarden = 1 on that machine's machine.config, and we get the following error in the application: System.Web.HttpException: Invalid_Viewstate. The solutions I've seen by googling this suggest changing things in the machine.config, but I...
0
999
by: Adam Benson | last post by:
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...
5
10838
by: not_a_commie | last post by:
So I have a motherboard with multiple CPU sockets. It seems that if I create a StopWatch on one thread and then call the Elapsed member from a different thread that sometimes I get a tick count that's a million miles away. My thinking is that I can subclass the StopWatch. Then when the Elapsed member is called, I can invoke it on the thread...
7
1791
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...
0
7664
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7948
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...
0
6250
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...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
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
0
923
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...

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.