[Ilugc] internet speed issues with ubuntu

  • From: manokaran@xxxxxxxxx (Mano)
  • Date: Tue Jan 9 00:02:38 2007

On 1/8/07, Binand Sethumadhavan <binand@xxxxxxxxx> wrote:



How many parallel threads did you run with Prozilla?


4 - the default

Where are you downloading from and what is the latency (as measured by
ping) to that site?


I downloaded  from a site in Japan. The speed from the same site without
prozilla was around 10-20 kBps.

Will it be possible for you to compile this program and run on your
Ubuntu box (just save it in a.c and run: make a && ./a)?

#include <stdio.h>
#include <sys/socket.h>
int main (void) {
    int sb = 0;
    size_t sz = sizeof sb;
    int s = socket (AF_INET, SOCK_STREAM, 0);
    getsockopt(s, SOL_SOCKET, SO_RCVBUF, &sb, &sz);
    printf ("RCV: %d\n", sb);
    getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sb, &sz);
    printf ("SND: %d\n", sb);
}


The output was:

RCV: 87380
SND: 16384

regds,
mano

Other related posts: