[THIN] Re: DOS program not working in Citrix

I wouldn't worry about affinity.  A 16-bit app is by nature single-threaded
-- meaning it will only run in one processor at a time.  Running in
different processors at different times is handled correctly by the OS.

The reason I suggested disabling HT on 2000 last week is because of what te
OS does incorrectly on 2000 when one logical processor enters the idle
state.  It appears to incorrectly clear some things that the companion
logical processor needs.  Most of the time this only slows down processing,
but there are some situations where the side effect causes errors.  The 2000
OS was developed prior to HT, and Microsoft made the appropriate corrections
in the XP and 2003 OS's so you can use HT there. Still, this may also be
unrelated to your problem - but it is something to try to ensure that it is
not causing the DOS issue - and is a good practice on that OS anyway.

Tim Mangan

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of Jeremy Lee
Sent: Thursday, June 24, 2004 11:02 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: DOS program not working in Citrix

I was just going to add that even though I use imagecfg on NTVDM when I
lauch the other program that pegs context switches/second it still show that
NTVDM is using all four process in affinity.  

I believe OS2.exe is a 16bit app.  It is in the system32 folder.  I don't
know why it loads before the executable does.  If I launch the program on XP
it just shows the executable in the DOS window not the OS2.exe like it does
on the server.  

If we turn on hyper-threading do you think we will still have problems since
it is a dual processor?

-----Original Message-----
From: Mark Cook [mailto:mc@xxxxxxxxxx]
Sent: Thursday, June 24, 2004 9:58 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: DOS program not working in Citrix



Sorry, what's OS2.EXE ?  Is it a dos or 16bit app, if so it's not CPU
affinity aware anyway !

You should only normally need to change NTVDM.EXE to a single CPU, the
hyperthreading is only clouding the issue I think as the OS just see's 4
CPU's or 2 if it's turned off - the problem is almost certainly down to
having more than one CPU !

Also, once you have started the app check the CPU affinity of NTVDM.EXE
to
see that it has been changed correctly by IMAGECFG as we did have issues
with that at onetime so did'nt use it in the end !

Mark


-----Original Message-----
From: Jeremy Lee [mailto:JLee@xxxxxxxxxx] 
Sent: 24 June 2004 15:25
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: DOS program not working in Citrix

I thought you weren't supposed to use Hyper-Threading on 2k servers.
For some reason our LAN Admin that is in charge of the Citrix servers
thinks he needs to use it.  We have had problems with other old Dos
programs and we have told him to turn off hyper-threading but he won't
do it.

The machine does have 2 processors with hyper-threading enabled so the
machine thinks there is 4 processors.  I used imagecfg from this site
http://www.robpol86.com/misc_pgs/imagecfg.php and here are my results:

C:\WINNT\system32\dllcache>imagecfg -u NTVDM.EXE
NTVDM.EXE contains the following configuration information:
    Subsystem Version of 4.0
    Image can only run in uni-processor mode on multi-processor systems
    Image working set trimmed aggressively on small memory systems
    Stack Reserve Size: 0x40000
    Stack Commit Size: 0x1000

C:\WINNT\system32\dllcache>imagecfg -a 0x1 NTVDM.EXE
NTVDM.EXE contains the following configuration information:
    Subsystem Version of 4.0
    Image can only run in uni-processor mode on multi-processor systems
    Image working set trimmed aggressively on small memory systems
    Stack Reserve Size: 0x40000
    Stack Commit Size: 0x1000
NTVDM.EXE updated with the following configuration information:
NTVDM.EXE contains the following configuration information:
    Subsystem Version of 4.0
    Image can only run in uni-processor mode on multi-processor systems
    Image working set trimmed aggressively on small memory systems
    Stack Reserve Size: 0x40000
    Stack Commit Size: 0x1000

The program still hangs at OS2.exe.  Do I need to do the same thing for
that executable?

-----Original Message-----
From: Mark Cook [mailto:mc@xxxxxxxxxx] 
Sent: Thursday, June 24, 2004 9:05 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: DOS program not working in Citrix



Nah sorry, this predated Hyperthreading - at that level the OS is
totally
unaware of whether or not the additional CPU's are virtual (ie.
Hyperthreaded) or physical.

Mark

-----Original Message-----
From: Tim Mangan (new) [mailto:tmangan@xxxxxxxxxxxx] 
Sent: 24 June 2004 15:00
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: DOS program not working in Citrix

That solution (affinity) sounds like you are running HyperThreading on a
2000 OS.  If you disable HT on 2000 you solve that problem and a whole
lot
more.  HT should only be enabled on XP and 2003.

tim

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf
Of Mark Cook
Sent: Thursday, June 24, 2004 3:52 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: DOS program not working in Citrix

Is the Citrix a Dual or Quad processor box ?  If so, run the app, then
change the CPU affinity on the NTVDM.EXE process to only run on a single
processor - does that make a difference ???  

I've seen this before with an old DOS app farmed out from a novell
server,
just hung on a Win2K server with dual CPU's, took one of the CPU's
offline
and it worked, put CPU back online but ran process with affinity set to
only
one CPU and it worked !




-----Original Message-----
From: Jeremy Lee [mailto:JLee@xxxxxxxxxx]
Sent: 23 June 2004 19:44
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: DOS program not working in Citrix

Just for a little more information.  It will run on a test 2k3 box I
have.





There is this little DOS based program that one person in a remote
office
needs to run.  It works fine on a XP based computer but on our citrix
servers it just hangs at the DOS prompt.  All our citrix servers are
windows
2000.  Is there anything that anyone knows of to get it to work on the
servers?


********************************************************
This weeks sponsor Emergent Online Thinssentials Utilities Using the
latest
software, hardware, networking technologies, proven technical expertise,
proprietary software and best practices, EOL provides custom-tailored
solutions for each client's mission and specific goals.
http://www.go-eol.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode
use
the below link:
http://thin.net/citrixlist.cfm
********************************************************
This weeks sponsor Emergent Online Thinssentials Utilities Using the
latest
software, hardware, networking technologies, proven technical expertise,
proprietary software and best practices, EOL provides custom-tailored
solutions for each client's mission and specific goals.
http://www.go-eol.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode
use
the below link:
http://thin.net/citrixlist.cfm
********************************************************
This weeks sponsor Emergent Online Thinssentials Utilities Using the
latest
software, hardware, networking technologies, proven technical expertise,
proprietary software and best practices, EOL provides custom-tailored
solutions for each client's mission and specific goals.
http://www.go-eol.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode
use
the below link:
http://thin.net/citrixlist.cfm


********************************************************
This weeks sponsor Emergent Online Thinssentials Utilities
Using the latest software, hardware, networking technologies, proven
technical expertise, proprietary software and best practices, EOL
provides
custom-tailored solutions for each client's mission and specific goals.
http://www.go-eol.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm
********************************************************
This weeks sponsor Emergent Online Thinssentials Utilities
Using the latest software, hardware, networking technologies, proven
technical expertise, proprietary software and best practices, EOL
provides custom-tailored solutions for each client's mission and
specific goals.
http://www.go-eol.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm
********************************************************
This weeks sponsor Emergent Online Thinssentials Utilities
Using the latest software, hardware, networking technologies, proven
technical expertise, proprietary software and best practices, EOL
provides
custom-tailored solutions for each client's mission and specific goals.
http://www.go-eol.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm
********************************************************
This weeks sponsor Emergent Online Thinssentials Utilities
Using the latest software, hardware, networking technologies, proven
technical expertise, proprietary software and best practices, EOL
provides custom-tailored solutions for each client's mission and
specific goals.
http://www.go-eol.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm
********************************************************
This weeks sponsor Emergent Online Thinssentials Utilities
Using the latest software, hardware, networking technologies, proven
technical expertise, proprietary software and best practices, EOL provides
custom-tailored solutions for each clients mission and specific goals.
http://www.go-eol.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm


********************************************************
This weeks sponsor Emergent Online Thinssentials Utilities
Using the latest software, hardware, networking technologies, proven technical 
expertise, proprietary software and best practices, EOL provides 
custom-tailored solutions for each client?s mission and specific goals.
http://www.go-eol.com
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm

Other related posts: