[THIN] Re: thread quanta and chkroot.cmd thingy

  • To: <thin@xxxxxxxxxxxxx>
  • Date: Mon, 15 Sep 2003 17:23:34 -0400

Brian,

Here is the response from Kevin, our CTO:
Tim's test is for priority boost not thread quantum. There is an important 
difference. The Background Services vs. Applications setting has no effect on 
priority boost. It does, however, have an effect on thread quantum. Just for 
clarification, priority determines the thread schedule (which thread will run 
next). How long each thread will run (AKA time slice) is measured in quanta. 
(Point of interest: the original poster uses the correct usage of quanta, but 
MSFT uses quantums so expect to see either in print)
On Windows 2000, when using Applications Mode the time slices vary. Foreground 
apps in Application Mode get 6 quanta and background apps get 3 quanta.
When you choose Background Services mode the time slice is fixed at 36 quanta. 
I haven't checked W2003 yet but assume that the number of quantums is similar.
When I talked to David Solomon (the guy who wrote Inside Windows 2000) last 
December he indicated that the times slices for threads running in Terminal 
Services Sessions are not variable even in Applications Mode. Only apps on the 
console are considered foreground apps (as far as time slices are concerned). 
In other words each terminal session user would get a time slice of 3 per 
thread while the console foreground application would get 6 (Regardless of what 
each thread's priority is). The test I was going to run was to see if this is 
correct or not.
However, even without running the test, I recommend Background mode. Quantums 
of 3 or 6 are too short for Terminal Services. Compare a typical terminal 
server with your desktop machine and look at the difference in the amount of 
threads. As you know, each time your time slice expires it causes a context 
switch. Having 6 or 12 times as many context switches (3 or 6 compared to 36) 
is an impediment to performance. Most desktop users are more concerned with 
their foreground app being peppy than they are with context switches, but too 
many context switches on a Terminal Services box is a killer for performance 
(and scalability).
Kevin 


Bernd Harzog
CEO
RTO Software, Inc.
bernd.harzog@xxxxxxxxxxx
678-455-5506 x701
www.rtosoft.com

 -----Original Message-----
From:   Brian Madden [mailto:brian@xxxxxxxxxxxxxxx] 
Sent:   Monday, September 15, 2003 4:33 PM
To:     thin@xxxxxxxxxxxxx
Subject:        [THIN] Re: thread quanta and chkroot.cmd thingy

So, after reading all these quanta things, does this setting really make a
difference?

I understand that Tim and/or Kevin are testing to see which setting is
better, but wouldn't it not really matter since an adverse setting would
only be impacted by what an administrator is actively running on the
console?

I would assume that this setting doesn't really matter in the real world?

Brian

Brian Madden
202.302.3657
brian@xxxxxxxxxxxxxxxx
--------
Visit www.brianmadden.com for thin client white papers, books, product
reviews, courseware, and training videos.


-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of Timothy Mangan
Sent: Monday, September 15, 2003 1:07 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: thread quanta and chkroot.cmd thingy

Simple test.  The thread that owns the "foreground window" also gets a
priority boost.  You can see this in the performance monitor.  Start a
program (I like "regedit" because it only has one thread), bring up
performance monitor: Add counter Thread: Current Priority for the thread(s)
of the application to be tested.  You will see the priority increase when
the window had the focus.  Works as console of TS session.

tim


-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]
Sent: Monday, September 15, 2003 9:28 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: thread quanta and chkroot.cmd thingy

Here is Kevin's response:

His answer has made me curious. I can prove who is right with a small test.
I'll let you know.
Kevin Goodman
CTO
RTO Software
* +1-678-455-5506 x702
6  +1-678-455-5551*
kevin.goodman@xxxxxxxxxxx
Address:  5400 Laurel Springs Pkwy, #108 Suwanee, GA  30024  USA
http://www.rtosoft.com

Bernd Harzog
CEO
RTO Software, Inc.
bernd.harzog@xxxxxxxxxxx
678-455-5506 x701
www.rtosoft.com

 -----Original Message-----
From:   Ron Oglesby [mailto:roglesby@xxxxxxxxxxxx] 
Sent:   Monday, September 15, 2003 9:22 AM
To:     thin@xxxxxxxxxxxxx
Subject:        [THIN] Re: thread quanta and chkroot.cmd thingy

Ok, no I have to allot some time today to test this.

Ron Oglesby
Senior Technical Architect
 
RapidApp
Office 312.372.7188
Mobile 815.325.7618
email roglesby@xxxxxxxxxxxx
 

-----Original Message-----
From: Andrew Rogers [mailto:Andrew.Rogers@xxxxxxxxxxxxxxxxxx]
Sent: Monday, September 15, 2003 8:12 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: thread quanta and chkroot.cmd thingy

Interesting, RTOSoft vs TMurgent - whos right?

You really know how to ask good questions Brian!! :)

Andrew
--o--

********************************************************
This Week's Sponsor:  ThinPrint
http://www.thinprint.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use
the below link:
http://thethin.net/citrixlist.cfm
********************************************************
This Week's Sponsor:  ThinPrint
http://www.thinprint.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use
the below link:
http://thethin.net/citrixlist.cfm


********************************************************
This Week's Sponsor:  ThinPrint
http://www.thinprint.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

********************************************************
This Week's Sponsor:  ThinPrint
http://www.thinprint.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

********************************************************
This Week's Sponsor:  ThinPrint
http://www.thinprint.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm


********************************************************
This Week's Sponsor:  ThinPrint
http://www.thinprint.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: