[parsec-users] view different number of threads in prstat

Mahmood Naderan nt_mahmood at yahoo.com
Wed Oct 31 02:48:01 EDT 2012


Thanks for your answer. However X264 was an example. I see this behavior with other benchmarks too (for example blackscholes). The question is, if we define 4 cpu but only one core runs 4 threads, then this is not a desired simulation. Normally we want each thread runs on one cpu. Do you have any comment on that?


 
Regards,
Mahmood



________________________________
 From: Yungang Bao <ybao at CS.Princeton.EDU>
To: Mahmood Naderan <nt_mahmood at yahoo.com>; PARSEC Users <parsec-users at lists.cs.princeton.edu> 
Sent: Wednesday, October 31, 2012 2:45 AM
Subject: Re: [parsec-users] view different number of threads in prstat
 
Hi Mahmood,

The following posts might help to understand the threading model of x264.

https://lists.cs.princeton.edu/pipermail/parsec-users/2009-August/000490.html
https://lists.cs.princeton.edu/pipermail/parsec-users/2011-April/001085.html
https://lists.cs.princeton.edu/pipermail/parsec-users/2011-August/001176.html


Best Regards,
Yungang

----- Original Message -----
From: "Mahmood Naderan" <nt_mahmood at yahoo.com>
To: "PARSEC" <parsec-users at lists.cs.princeton.edu>
Sent: Tuesday, October 30, 2012 4:19:45 PM
Subject: [parsec-users] view different number of threads in prstat



Dear all 
I have noticed that prstat command shows something different than what I ran. 
For example I have defined 4 cpus (in simics) and I run x264 with 4 threads. 


./x264 --quiet --qp 20 --partitions b8x8,i4x4 --ref 5 --direct auto 
--b-pyramid --weightb --mixed-refs --no-fast-pskip --me umh --subme 7 --analyse 
b8x8,i4x4 --threads 4 -o eledream.264 eledream_640x360_128.y4m 


Then I send it to background and launch prstat. However I see: 


PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 
1016 root 3936K 3072K cpu0 50 0 0:01:41 20% fc-cache/1 
1569 root 30M 17M cpu1 50 0 0:00:28 14% x264/6 
9 root 9992K 8264K sleep 59 0 0:06:08 5.5% svc.configd/20 
7 root 13M 9080K sleep 59 0 0:00:31 0.5% svc.startd/17 
1573 root 4736K 3520K cpu2 59 0 0:00:00 0.2% prstat/1 



Now the question is, where are other threads on cpu1, cpu2 and cpu3? 
Also, why it shows NLWP as 6? 




Regards, 
Mahmood 

_______________________________________________
parsec-users mailing list
parsec-users at lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/parsec-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/parsec-users/attachments/20121030/64049de1/attachment.html>


More information about the parsec-users mailing list