Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: John Hughes <john <at> Calva.COM>
Subject: Re: Simple Program with pthreads(with source) + openssi stable 1.2.2
Newsgroups: gmane.linux.cluster.ssic.devel
Date: Thursday 9th April 2009 11:34:31 UTC (over 8 years ago)
Cleir Araujo wrote:
>  
> 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".
One strange thing about your test process is that it starts all of the 
worker threads then calls pthread_exit(NULL), so the main thread is 
defunct while the others are runnning:

[email protected]:~$ bash-ll
[email protected]:~$ clusternode_num
6
[email protected]:~$ where_pid $$
6
[email protected]:~$ ./calc >/dev/null & 
[1] 437832
[email protected]:~$ ps -fp 437832
UID             PID       PPID  C STIME TTY          TIME CMD
john         437832     437810  0 13:37 pts/7    00:00:08 [calc] 

If I "fix" it so the main thread waits for the workers (even though they 
will never finish) and then try migrating it I get:

add_thread_group:Cannot move process 438181 (calc) - cannot find all shares
add_thread_group: group(438181)/share imbalance 4/1

(This is on my 2.6.14 system, so it may have bugs that the standard 
2.6.11 based system doesn't have).
 
CD: 4ms