473,396 Members | 1,864 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,396 software developers and data experts.

Dual CPU and Webgardening

We are using a webserver with dual processors.Web gardening is set to off
and our application is in an application pool with *ONLY* one
workerprocess.I just wondered if our application in this case can take
advantage of the other processor of box in which the webserver is
installed.I was reading this article :

http://msdn.microsoft.com/library/de...delSection.asp

In this it say that if WebGarden is set to false this :
"Indicates that CPU usage is scheduled by the Windows operating system. The
cpuMask attribute is ignored and only one worker process will run. The
default is false."

Dose this mean that OS will use the other CPU automatically without having
webGarden enabled in our application?
Thanks For your help.

Reza Alirezaei
April/18/2005
Nov 19 '05 #1
6 1117
> Dose this mean that OS will use the other CPU automatically without
having webGarden enabled in our application?


Yes, the OS will be able to run multiple threads of the worker process on
2 CPUs at once. WebGardening runs a copy of the worker process for each CPU.
The intent is to reuse cache and other lower level optomizations as such.

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #2
>>OS will be able to run multiple threads of the worker process on 2 CPUs
**at once**
**at once** refferes to the fact that OS consider all 2 CPUs as one stronger
CPU for example and it dosen't load balance it on 2 CPUs ,am I right?

Thanks

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:49**********************@msnews.microsoft.com ... Dose this mean that OS will use the other CPU automatically without
having webGarden enabled in our application?


Yes, the OS will be able to run multiple threads of the worker process on
2 CPUs at once. WebGardening runs a copy of the worker process for each
CPU. The intent is to reuse cache and other lower level optomizations as
such.

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #3
>>> OS will be able to run multiple threads of the worker process on 2
CPUs **at once**

**at once** refferes to the fact that OS consider all 2 CPUs as one
stronger CPU for example and it dosen't load balance it on 2 CPUs ,am
I right?


The OS schedules threads. If the process (the worker process in this case)
has more than one thread then it's possible that two different threads from
that process will be running at the same time. So when I said "at once" I
really meant "at the same time" (sloppy wording on my part).

So in both configurations, both CPUs will get used. It's just that with a
web garden each process is marked as having a preference as to which CPU
it runs on, and the OS tries to honor that. This saves the OS from having
to flush the cache and this is a perf boost.

Did that help?

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #4
Yes it really helped,but I'm still kind confused what is the difference
between "at once" and " at the same time":-)
Let's pretend that there are 5 threads in worker process :

1) you mean OS runs for instance two threads of worker process on CPU#1 and
3 threads of worker process in CPU#2?

2)This might be an stupid question ,each person who is working with the
application creates a thread in worker process?each instance of our
application is one thread?

Thanks
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:50**********************@msnews.microsoft.com ...
OS will be able to run multiple threads of the worker process on 2
CPUs **at once**

**at once** refferes to the fact that OS consider all 2 CPUs as one
stronger CPU for example and it dosen't load balance it on 2 CPUs ,am
I right?


The OS schedules threads. If the process (the worker process in this case)
has more than one thread then it's possible that two different threads
from that process will be running at the same time. So when I said "at
once" I really meant "at the same time" (sloppy wording on my part).
So in both configurations, both CPUs will get used. It's just that with a
web garden each process is marked as having a preference as to which CPU
it runs on, and the OS tries to honor that. This saves the OS from having
to flush the cache and this is a perf boost.

Did that help?

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #5
> Let's pretend that there are 5 threads in worker process :
1) you mean OS runs for instance two threads of worker process on
CPU#1 and 3 threads of worker process in CPU#2?
It could, but it will only run one thread on one processor at one time. So
you can't run two threads on a single processor at the same time.
2)This might be an stupid question ,each person who is working with
the application creates a thread in worker process?each instance of
our application is one thread?


In ASP.NET there is a pool of threads per worker process. As a request arrives
into ASP.NET a thread is removed from the pool to handle the request. Once
the request is complete the thread is returned to the pool. By default, the
worker process has a maximum of 25 threads per CPU. This is configurable
in machine.config.

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #6
Maybe we should add that a worker process handles
all the requests for all the Applications which run under
it in the same Application Pool.

So, we can have multiple application pools, each running
in its own worker process, and each of them taking care
of as many threads as are configured for each worker process.

The CPU affinity determines whether 1, 2, 3, 4 or more,
processors are able to handle ASP.NET requests.

The guys who wrote ASP.NET are geniuses!


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:50**********************@msnews.microsoft.com ...
Let's pretend that there are 5 threads in worker process :
1) you mean OS runs for instance two threads of worker process on
CPU#1 and 3 threads of worker process in CPU#2?


It could, but it will only run one thread on one processor at one time. So
you can't run two threads on a single processor at the same time.
2)This might be an stupid question ,each person who is working with
the application creates a thread in worker process?each instance of
our application is one thread?


In ASP.NET there is a pool of threads per worker process. As a request
arrives into ASP.NET a thread is removed from the pool to handle the
request. Once the request is complete the thread is returned to the pool.
By default, the worker process has a maximum of 25 threads per CPU. This
is configurable in machine.config.

Nov 19 '05 #7

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

Similar topics

9
by: Tomer Ben-David | last post by:
Hi I have a big j2ee appliction that was so forth run on a single cpu machine. I have tested it on a dual cpu machine, its running much slower (about X3 times slower). I know that...
3
by: Yaroslav K. Kravchishin | last post by:
Oracle 7.0.1 Server When I type SQL> select sysdate from dual; SYSDATE --------- 01-OCT-03 01-OCT-03 2 rows selected.
5
by: John Dalberg | last post by:
I am planning to build a server to be used as a SQL Server and web server. Right now I can only use a single box for both. I have read some threads were dual processors are having problems with...
25
by: John Gibson | last post by:
Hi, all. I need to upgrade my dual Xeon PostgreSQL engine. Assuming similar memory and disk sub-systems, I am considering a Quad Xeon system vs. a Dual Itanium for PostgreSQL. I believe that...
2
by: webwarrior | last post by:
Hi, Is there a reason why we have to pay more for licensing for a different kind of processor? Why are we not charged for the Hyperthreading on some processors also. If Oracle is really...
3
by: J-T | last post by:
I have two questions in IIS, 1) If I assign my ASP.NET application to an application pool with one worker process only ,and if the worker process is supposed to be shut down after 20 minutes...
2
by: bruce_brodinsky | last post by:
Don't know whether to post this on a hardware or software board, so here goes: I wrote a c# chess program which searches for checkmate. Now, it's single-threaded. But I was thinking. I just got...
4
by: LLessieux | last post by:
Hi, I have been seeing a strange behaviour when doing some tests on a Dual - Dual Core Opteron system using Windows XP (32bits with SP2). In out application we have a wrapper around the thread...
8
by: Andy | last post by:
Hi guys, I'm sorry, I'm not sure this is the correct group to be asking this kind of question... I'm going to develop a software package that includes a web server (and PHP code) , a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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
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...
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,...

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.