[netperf-talk] help needed

Srinivasan S srinivasan.s at ittiam.com
Thu Dec 15 02:21:50 PST 2005


Hi,

 I am trying to run netperf on my board based on ARM processor.

 When I run netserver in a linux machine and netperf in this board. I get through put as 0.00. 
 Appears my setup is not working and I don't have any clue about it.

 The network connectivity in the board is up, I tested with ping and telnet. 
 I've also compiled for native linux and got results when I ran between two linux machine so this rules out 
 anything wrong with the source. 

 Also  I ran netserver and netperf (default test) both in the same board and could get some throughput results.

 Can you please give direction what could be wrong.

 I commented out the following while corss compiling in netlib.c file under the ./src/ dir. my build did not have
 "sched_setaffinity"

#ifdef USE_CPU_SET
#include <sched.h>
  cpu_set_t           cpu_set;
  printf("bind_to_specific_processor: USE_CPU_SET %p %d\n",&cpu_set,sizeof(cpu_\
set));
  __CPU_ZERO(&cpu_set);
  printf("zeroed");
  __CPU_SET(processor_affinity, &cpu_set);
  printf("set");
  if (sched_setaffinity(getpid(), &cpu_set)) {
    fprintf(stderr, "failed to set PID %d's CPU affinity errno %d\n",
            getpid(),errno);
    fflush(stderr);
  }
#else
#undef __USE_GNU
#include <sched.h>
#define __USE_GNU
  unsigned long       this_mask;
  unsigned int        len = sizeof(this_mask);
  printf("masking\n");
  this_mask = 1 << processor_affinity;
  printf("masked\n");
  if (sched_setaffinity(getpid(), len, &this_mask)) {
    fprintf(stderr, "failed to set PID %d's CPU affinity errno %d\n",
            getpid(),errno);
    fflush(stderr);
  }
#endif


 Is my netperf not working because of removing this part of the code? 
 Please help me in this regard.
  
 -Srini



More information about the netperf-talk mailing list