Hello developers,
 
when i try to exec a simple program with pthreads, the
following message appears: "Cannot move process 775543 - 775543 is a system process".
 
i have a doubt:
 
 
1 -  in which conditions the openssi recognizes a specific process as being a system process?
 
 
 
Please see the and make file source:
 
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define NUM_THREADS     3
void *LancaThread(void *threadid)
{
   long tid;
   tid = (long)threadid;
   printf("Spaning thread #%ld! %-10.2f\n", tid);
   while (1)
    printf ("Calculating: %f\n",sqrt (rand ()));
    pthread_exit(NULL);
    return 0;
}
int main(int argc, char *argv[])
{
pthread_t threads[NUM_THREADS];
int rc;
long t;
for(t=0;t<NUM_THREADS;t++){
   rc = pthread_create(&threads[t], NULL, LancaThread, (void *)t);
  if (rc){
    printf("ERROR to spawn thread pthread_create() return: %d\n", rc);
    exit(-1);
    }
  }
pthread_exit(NULL);
}

Building the program: gcc -o calc source.c -pthread -lm
 
Regards, Cleir
 
 
 
 
 


 

From: cajaraujo@hotmail.com
To: ssic-linux-devel@lists.sourceforge.net
Subject: RE: [SSI-devel] Simple Program with pthreads + openssi stable 1.2.2
Date: Mon, 6 Apr 2009 14:41:30 -0300

Thanks Roger,

please see.....

1 ) the actual console messages:

Cannot move process 70666 -  mxteste is a system process

set_daemon_prio: error 14 setting priority for pid 70664 to 0
set_daemon_prio: error 14 setting priority for pid 70665 to 0

2 ) contents of /proc/cluster/loadlevellist

cat /proc/cluster/loadlevellist
/bin/bash-ll

3 ) what hardware you are running

2 X Dual-Core AMD Opteron(tm) Processor 2218 (Total of 4 processors)
Model: Sun Ultra 40 M2 (x86_64)


Regards, Cleir








> Date: Sat, 28 Mar 2009 20:24:18 +0000
> Subject: Re: [SSI-devel] Simple Program with pthreads + openssi stable 1.2.2
> From: roger.tsang@gmail.com
> To: cajaraujo@hotmail.com
> CC: ssic-linux-devel@lists.sourceforge.net
>
> Your program shouldn't have the PV_SYS flag. Please post...
> 1) the actual console messages you are getting
> 2) contents of /proc/cluster/loadlevellist
> 3) what hardware you are running
>
> -Roger
>
> 2009/3/28 Cleir Araujo <cajaraujo@hotmail.com>:
> > Hello all,
> >
> > i tried exec a simple program using pthreads under openssi 1.2.2, but the
> > following message appears:
> >
> > "Cannot move process %d - %s is a system process".
> >
> > Can i comment the source the session "If the process is a system process it
> > cannot go remote." and recompile the ssi kernel to distribute the threads
> > under nodes ?
> >
> > /*
> > * If the process is a system process it cannot go remote.
> > */
> > if ((PVP(t->p_vproc)->pvp_flag) & PV_SYS) {
> > error = -EBUSY;
> > printk("Cannot move process %d - %s is a system process\n",
> > t->pid, t->comm);
> > goto out;
> > }
> >
> > Regards, Cleir
> > ________________________________
> > Conheça já o Windows Live Spaces, o site de relacionamentos do Messenger!
> > Crie já o seu!
> > ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > ssic-linux-devel mailing list
> > ssic-linux-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/ssic-linux-devel
> >
> >


Descubra quais produtos Windows Live tem mais a ver com você! Faça o teste!

Quer saber qual produto Windows Live combina melhor com o seu perfil? Clique aqui e descubra!