Results 1 to 5 of 5

Thread: Performance Problem!

  1. #1
    YingchunH is offline Registered User
    Join Date
    May 2005
    Location
    Beijing, China
    Posts
    3

    Talking Performance Problem!

    Hi everyone,
    I've got a performance problem with ice. I used TCP connection to transfer my data which may be 0-100 MB in size. It is too slow via network(WinXP SP2, 100M LAN, It will take about 35 seconds To transfer 9MB data ).

    I found that ICE runtime devided the data into packet of 64k in size on WIN32 platform. Here is the related source code of ICE runtime:

    IceInternal::TcpTransceiver::Write(Buffer& buf, int timeout)
    {
    Buffer::Container::difference_type packsize =
    static_cast<Buffer::Container::difference_type>(bu f.end() - buf.i);

    #ifdef _WIN32
    //limit packet size to avoid performance problems on WIN32
    if(packetsize > 64 * 1024)
    {
    packetsize = 64 * 1024;
    }
    #endif
    ...
    ...
    }

    I belive that too much network I/O times will cause this performance problem.
    Is 64K the best value? Is there other ways to improve data transfer performance if I don't wanna modify these codes and recompile them?

    Thanks very much.

    YingchunH

  2. #2
    YingchunH is offline Registered User
    Join Date
    May 2005
    Location
    Beijing, China
    Posts
    3
    P.S. ICE version 2.1.0

  3. #3
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588

    perfomance

    Hi YingchunH

    I using Ice for seding large amounts of data in winXp2 and i never have perfomance issue.

    I my case perfomance is always limit for the speed that my computer can marshall data in an Ice::Byte never for network.

    Have you tested your code in other OS?

  4. #4
    YingchunH is offline Registered User
    Join Date
    May 2005
    Location
    Beijing, China
    Posts
    3

    Smile

    Hi xdm,
    Thanks for your quick response.
    I masked off those codes and recompiled, now it is much faster(20 times above) than before.
    I 've not tested my code in other OSs yet, and I think this problem won't happened on other platforms cause the code is just for windows.
    I used string (other than sequence<byte>) to marshall byte data and got no performance question.


    thank you.

    YingchunH

  5. #5
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Thanks for the report, we'll look into this!

    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How about the performance of 3.4?
    By linkman in forum Help Center
    Replies: 1
    Last Post: 03-05-2010, 07:37 PM
  2. about performance
    By fengxb in forum Help Center
    Replies: 7
    Last Post: 01-12-2007, 05:55 AM
  3. Performance problem ...
    By joel vennin in forum Help Center
    Replies: 2
    Last Post: 08-22-2006, 11:11 AM
  4. Replies: 11
    Last Post: 12-06-2005, 06:52 AM
  5. Performance
    By Ivan in forum Help Center
    Replies: 28
    Last Post: 04-12-2005, 06:46 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
  •