Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-11-2005
OrNot OrNot is offline
Registered User
 
Name: Bin.Li
Organization: GE Healthcare
Project: Enterprise solution
 
Join Date: Jun 2005
Location: Shanghai
Posts: 157
Send a message via MSN to OrNot
-->
Questions.

1) What's glaicerstarter? I read some threads in the forums about it but can not find it in the doc. and src. An obsolete application?

2) How to select the stack size of glacier2? Of course I know it depends on the applications,but are there some generic advices?

3) So for as the demo glacier2/callback, the stack size is 256K, that is, if there are 8000 clients at the same time, it needs about 8000*3*256K=6G memory? Is it possible in win32 platform? In another words, is there a limitation of the maximum clients? For example, assuming the 2G user address space in NT, only about 2000 clients are permitted at the same time?
I guess Glacier2 selected the thread-per-connection mode just to deal with the situation where may be hostile clients and made a tradeoff with the threadpool mode. If is it possible to provide a property in config file to allow user to choose between the two modes just like other ice app.?

I am confused about this very much though Marc have once explained this issue in other thread.

4) If memory is not enough, the galcier2 will break down or just the new clients can not connect to the glacier2?
Reply With Quote
  #2 (permalink)  
Old 07-11-2005
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Quote:
Originally Posted by OrNot
1) What's glaicerstarter? I read some threads in the forums about it but can not find it in the doc. and src. An obsolete application?
Yes, glacierstarter was part of Glacier 1; it was used to start one process per session.

Quote:
Originally Posted by OrNot
2) How to select the stack size of glacier2? Of course I know it depends on the applications,but are there some generic advices?
Why does it depend on the application?
The stack size is not RAM consumed by each thread, but really virtual address space consumed by each thread. It's not very difficult to reach the virtual address space limit with a big stack size and many threads!

Quote:
Originally Posted by OrNot
3) So for as the demo glacier2/callback, the stack size is 256K, that is, if there are 8000 clients at the same time, it needs about 8000*3*256K=6G memory? Is it possible in win32 platform? In another words, is there a limitation of the maximum clients? For example, assuming the 2G user address space in NT, only about 2000 clients are permitted at the same time?
I guess Glacier2 selected the thread-per-connection mode just to deal with the situation where may be hostile clients and made a tradeoff with the threadpool mode. If is it possible to provide a property in config file to allow user to choose between the two modes just like other ice app.?

I am confused about this very much though Marc have once explained this issue in other thread.
According to Microsoft the virtual address space limit for 32-bit Windows is either 2GB or 3GB.
If you need more threads, try a smaller stack size. Glacier2 uses only thread per connection; it's not configurable.

Quote:
Originally Posted by OrNot
4) If memory is not enough, the galcier2 will break down or just the new clients can not connect to the glacier2?
I don't know, but it's easy to try.

Cheers,
Bernard
Reply With Quote
  #3 (permalink)  
Old 07-12-2005
OrNot OrNot is offline
Registered User
 
Name: Bin.Li
Organization: GE Healthcare
Project: Enterprise solution
 
Join Date: Jun 2005
Location: Shanghai
Posts: 157
Send a message via MSN to OrNot
-->
hi, Bernard,
Quote:
Why does it depend on the application?
You are right. The stacksize of the Glacier2 is only used by itself.
But, if the stacksize of the glacier2 can be set in config, what is the floor limit?

Quote:
The stack size is not RAM consumed by each thread, but really virtual address space consumed by each thread. It's not very difficult to reach the virtual address space limit with a big stack size and many threads
I know this. What I man is how Glacier2 deals with very huge number threads at the same time. This is also what I want to know in the third question. Assuming the following conditions:
1) 2G virtual meromy
2) 8000 connections at the same time, client and server buffered.

The stacksize is approximately : 2,000,000 K/ 8000/3=80K.
80K is enough for one thread of Glacier2? This is same as the above question about the floor limit. Or, I can freely set the stacksize of the glacier2?
I think that there should be a floor limit. I wonder why not set this floor limit interally. What is the reason to give out this property in config?

BTW: How to use Glacier2 with ICEbox?

Thanks alot.

Last edited by OrNot : 07-12-2005 at 12:22 AM.
Reply With Quote
  #4 (permalink)  
Old 07-12-2005
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Setting the stack size of threads created by Ice thread pools is not specific to Glacier2 ... the ThreadPoolName.StackSize property applies to any Ice application.

We did not research the minimum stack size for Glacier2 threads; I suspect a few KBs are sufficient. In the real world, this thread stack-size is not going to be the limiting factor for your Glacier2 process; presumably all your clients are not idle and you want a reasonable response time.
I recommend you run a benchmark with a typical workload (specific to your application) to find out how many clients a Glacier2 process running on your Windows PC can handle.

Glacier2 is not an IceBox service, so you can't load it as an IceBox service. But obviously you can use IceBox servers with Glacier2.

Cheers,
Bernard
Reply With Quote
  #5 (permalink)  
Old 07-12-2005
OrNot OrNot is offline
Registered User
 
Name: Bin.Li
Organization: GE Healthcare
Project: Enterprise solution
 
Join Date: Jun 2005
Location: Shanghai
Posts: 157
Send a message via MSN to OrNot
-->
I think I have gotten a very good and clear answer.
Thank you Bernard, thank your time.


Best Regards
OrNot
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
two questions yanhbo Help Center 1 09-15-2005 12:34 AM
IceStorm questions fcolle Help Center 19 04-21-2005 02:42 AM
OR mapping questions stephan Help Center 2 02-04-2005 04:42 PM
several questions on IceSSL diego Help Center 0 11-25-2004 08:44 PM
two questions simpley Help Center 6 11-06-2003 11:11 AM


All times are GMT -4. The time now is 10:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.