Results 1 to 7 of 7

Thread: how to reduce the system cpu in the ice service?

  1. #1
    russule is offline Registered User
    Name: Lei Chun
    Organization: www.channelsoft.com.cn
    Project: Conf
    Join Date
    Oct 2006
    Posts
    32

    how to reduce the system cpu in the ice service?

    Hi,
    I am a frequently Ice-3.20 user, i wrote a simple Ice service and did responding presure test,when I find the CPU occupation is very high, with my operation of Windows 2003 Server.

    how to reduce the system cpu in the ice service?

    long for your instruction and a thousand thanks.

    best regards,
    My Full namea Lei
    My company:Channelsoft (Beijing) Technology Co., Ltd.
    http://www.channelsoft.com.cn/

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    I don't really understand the question. The simple answer is to reduce the CPU load do less work I realize that this isn't all that helpful, but to give a better answer I need to know more about what your service is exactly doing, and why you expect the CPU load to be low.

  3. #3
    russule is offline Registered User
    Name: Lei Chun
    Organization: www.channelsoft.com.cn
    Project: Conf
    Join Date
    Oct 2006
    Posts
    32
    Hi,
    When increasing the pressure ,I found that the CPU load by the Windows system process csrss.exe was increasing too.
    Does the ice service invoke the csrss.exe?

    Thank you very much!
    Last edited by russule; 05-28-2007 at 10:46 PM.

  4. #4
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    csrss.exe is part of Windows and is responsible for the DOS subsystem, running console windows and creating/destroying threads therefore if you are destroying and creating lots of threads, or generating loads of console output then I would expect this process to consume lots of CPU.

    Perhaps you are using an unsuitable concurrency model for these tests? What concurrency model & other associated configuration are you using in your server and client? The easiest way, as always, to help you with this problem is for you to send us a small self-contained application that demonstrates this problem.

  5. #5
    russule is offline Registered User
    Name: Lei Chun
    Organization: www.channelsoft.com.cn
    Project: Conf
    Join Date
    Oct 2006
    Posts
    32
    Hi matthew,

    the ice file:
    Code:
    #ifndef _H_TEST_H_
    #define _H_TEST_H_
    
    module VGProxy
    {
     struct  MGEvent
      {
        int ResID;           
        int CallID;         
        int EventID;      
        int Reason;         
        string DTMFString;   
      };
    
      struct  SGEvent
      {
        int ResID;         
        int CallID;       
        int EventID;      
        int EventData;       
        string CallerID;     
        string CalledID;    
        string OriCallerID;  
        string OriCalledID; 
        string rfu;          
      };
      
    
      interface VGService
      {
         int mgPlayVoice(int nResID,int nCallID,string szFileName,string szInteruptKeys,int nRate,int nBeginTime);
         int sgAnswerCall(int nResID,int nCallID);
         int sgReleaseCall(int nResID,int nCallID);
         int GetMgEvt(int nTimeout, out MGEvent event);
         int GetSgEvt(int nTimeout, out SGEvent event);
      };
    };
    
    #endif
    The ice client invoked the ice server by ice interface,the ice server invoked another RPC server by RPC interface.
    The ice server and the rpc server were in the same PC,the ice client was in the other PC.

    The ice client did these operations: answer a call,play a voice file, release the call,meanwhile receive the events.

    when I increasing the presure , the cpu load of the ice server was higher than that of the RPC server.
    How to reduce the cpu load of the ice server?

    Thank you very much!

  6. #6
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    If you are not generating lots of console output then I suspect the issue is that your server is busy creating loads of threads so the question is why. What concurrency model is your server using? How is the Ice server calling on the other server?

  7. #7
    russule is offline Registered User
    Name: Lei Chun
    Organization: www.channelsoft.com.cn
    Project: Conf
    Join Date
    Oct 2006
    Posts
    32
    Hi matthew,

    I maybe resolved the problem. By releasing the console output, the cpu load reduced.


    Thanks a lot for your helps,

    Best regards,
    __________________

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to reduce round trip delay?
    By andreynech in forum Help Center
    Replies: 6
    Last Post: 10-07-2007, 10:16 AM
  2. How to reduce the connections between client and server?
    By Pierre.Siron in forum Help Center
    Replies: 1
    Last Post: 03-27-2007, 03:31 AM
  3. Replies: 10
    Last Post: 01-24-2007, 09:21 AM
  4. Replies: 1
    Last Post: 05-18-2005, 12:49 AM
  5. CPU Idl is very high
    By dragzhb in forum Help Center
    Replies: 19
    Last Post: 10-03-2004, 08:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •