Re: Socket API performance diff. between Sp2k2 and 2k3

From: Daniel (Daniel_at_discussions.microsoft.com)
Date: 09/17/04

  • Next message: Bamba: "MySQL connection on Pocket PC with VB"
    Date: Fri, 17 Sep 2004 07:13:03 -0700
    
    

    Do you mean the TCP buffer? If so, I haven't checked. The allocated buffers,
    however, gets as big has the packages. We are using selects to see when data
    is available. When it is available, first we receive an unsigned int with the
    package size and then the whole package size 7 kB when it is file data.

    Yes, the speed of Pocket IE seems to be the same on both sp2002 and 2003 -
    which made me think that the WinInet API is better implemented than Socket
    API on the Sp2002.

    "Omar [MS]" wrote:

    > What is the recv buffer size when you are calling recv? Are you using
    > selects or just regular blocking recv's.
    > You can try changing your recv buffer size larger and smaller and see if
    > that makes a difference.
    >
    > The speed of PocketIE--is it as fast as your sp2003 data rate or your sp2002
    > recv data rate?
    >
    > Thanks,
    > - Omar
    >
    > --
    > This posting is provided "AS IS" with no warranties, and confers no rights.
    > Please do not send
    > email directly to this alias. This alias is for newsgroup purposes only.
    >
    >
    >
    > "Daniel" <Daniel@discussions.microsoft.com> wrote in message
    > news:553BB453-ADCD-4B21-B778-FD418747C5D4@microsoft.com...
    > > I posted this question a couple of weeks ago in the
    > > smartphone.developer-forum but with no luck, so I thought I would try here
    > > with the network experts instead. :-)
    > >
    > > I'm writing an application that uses the Socket API to send and receive
    > data
    > > over Internet. When testing the application on both a Smartphone 2002 and
    > a
    > > Smartphone 2003 (Motorola Mpx-200, Qtek 8080) I notice that when
    > downloading
    > > a file the Sp2002 only receives data at half the speed of the Sp2003. The
    > > package size on the file chunks is about 7 kB.
    > >
    > > At first, I thought it was OS-related, but then I tried downloading a 100
    > kB
    > > file with Pocket IE - this resulted in the same download speed on both
    > > devices!
    > >
    > > So, on Sp2002, is there any known performance differences when comparing
    > the
    > > Socket API and WinInet API?
    > >
    > > If not, any other ideas on what might be the difference? I use the exact
    > > same code on both platforms and I've spent some time investigating what
    > makes
    > > the Sp2002 slower (I mean, I guess there aren't many ways one can
    > implement
    > > a simple socket-receive in), but with no result so far. I should mention
    > that
    > > the speed
    > > difference occurs on both GPRS and when connecting using the cradle and
    > > active sync. Also, it doesn't matter if I write the data to disk or not -
    > so
    > > it has nothing to do with if I write the data to flash or not.
    > >
    > > Any input is appreciated. Thanks!
    > >
    > > Best regards,
    > > Daniel
    >
    >
    >


  • Next message: Bamba: "MySQL connection on Pocket PC with VB"

    Relevant Pages

    • Re: Working with incompetent adaists / unsafe typing war story
      ... Anonymous> types that are fragile to change, not private types. ... Anonymous> Perpetually changing requirements have minimal adverse ... programmers have a habit of "fixing" problems by changing the API, ... Anonymous> package meets the requirements. ...
      (comp.lang.ada)
    • Re: anygui,anydb, any opinions?
      ... expertise with that package. ... api calls you have, and you may as well start over with each ... interface would simply ignore the old parameters it did not ... feature that cannot be mapped reasonably to the Python api, ...
      (comp.lang.python)
    • Re: [Alsa-devel] Re: [PATCH 2.6.13.1 1/1] CS5535 AUDIO ALSA driver
      ... I thought of creating an API for coherent SG-buffers, ... The question is whether mmap of non-coherent buffer may ...
      (Linux-Kernel)
    • Re: How to develop a random number generation device
      ... Many operating systens are by design, immune to buffer over-runs modifying unrelated code. ... randomising memory locations) rather than actually preventing the overrun. ... If you try to run a 5-year old Linux binary on a current distribution, ... Linux, and the API is very stable - new API's and system calls are added, but existing ones are seldom changed or removed, and never without very good reason. ...
      (sci.electronics.design)
    • [rfc][patch] fix buffered write deadlocks with extra copy (and a way out?)
      ... API fell on its face because it ended up breaking filesystems and the ... buffer, then a second from temp buffer to actual pagecache. ... I would like more input about this from filesystems people, ...
      (Linux-Kernel)