#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    15
    Rep Power
    0

    Angry Socket Throughput


    OS: Win2K Pro SP4
    Intel 1.8 Ghz
    512 MB Ram
    3Com Network Card
    Simple Hub in between server and client

    I'm a little bit confused with the performance of my Socket Server/Client apps.

    I have implemented two versions of the server - one blocking and the other one using Completion Ports and they both are relatively the same.

    The client itself just uses select(). Nothing fancy.

    I've been looking at thoughput numbers for my server and they are somewhat of a downer. On Win2K pro, my server app is pushing out roughly 7.2KB's per second to the client. Which doesn't seem right to me.

    Anyone have any performance numbers of their own?

    TIA,

    green one
  2. #2
  3. I'm Baaaaaaack!
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    5,538
    Rep Power
    243
    Can you post code that compiles but has all but the minimum removed (and still has the behavior)? I have never had problems with sockets on my network, I suspect that you may have some sort of logic problem.

    My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
    Free code: http://sol-biotech.com/code/.
    Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
    Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
    LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw
  4. #3
  5. not a fan of fascism (n00b)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Feb 2003
    Location
    ct
    Posts
    2,756
    Rep Power
    95
    first thing i would do is check tcpdump and see how big the packets are and how often the window size hits 0. that will tell you what to fix in the app.

IMN logo majestic logo threadwatch logo seochat tools logo