<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Times New Roman">FYI,</font></p>
<font face="Times New Roman">If you have "top" on your system and
want to instead see the CPU usage of each core, refer to [1].</font><br>
<br>
<font face="Times New Roman">1. Run the command: top</font><br>
<font face="Times New Roman">2. Then, try pressing: 1</font><br>
<br>
<p>On the other hand, it seems not easy to monitor the thread usage
of each core since the thread might switch cores for thermal load
balancing [2].</p>
<p><font face="Times New Roman">It looks to me too that you might
have provided the CPU overall capacity of each lapw1 process.
The Irix mode might have to be toggled in top using I (from </font><font
face="Times New Roman"><font face="Times New Roman">OFF for CPU
overall capacity to</font> ON for CPU thread) [3].</font></p>
<p>With top running, it looks like the total thread count can be
obtained using [4]: H</p>
<p>If you want to see the number threads being using by each process
(e.g., lapw1), nTH might be selected for that. Refer to [5,6].</p>
1. With top running, press: f<br>
2. Use arrow keys to select nTH, then press: d<br>
3. To quit field management window, press: q
<p>If your using a cluster having a monitoring tool, like Ganglia
[7], I suggest consulting the documentation for your monitoring
tool to see if it displays the CPU and threading information. <br>
</p>
If your using a cluster with a qsub queue system, there are programs
such as qstat and pdsh [8]. Though, if you are using qsub or a
different queue system like bsub, consult the documentation for your
particular system (e.g., man pages [9]).<br>
<br>
<font face="Times New Roman">[1]
<a class="moz-txt-link-freetext" href="https://bencane.com/2011/08/28/top-show-cpu-usage-on-all-cores/">https://bencane.com/2011/08/28/top-show-cpu-usage-on-all-cores/</a></font><br>
<font face="Times New Roman">[2]
<a class="moz-txt-link-freetext" href="https://bitsum.com/tips-and-tweaks/what-is-the-difference-between-a-thread-and-a-core/">https://bitsum.com/tips-and-tweaks/what-is-the-difference-between-a-thread-and-a-core/</a></font><br>
<font face="Times New Roman"><font face="Times New Roman">[3]
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/3342889/how-do-i-measure-separate-cpu-core-usage-for-a-process">https://stackoverflow.com/questions/3342889/how-do-i-measure-separate-cpu-core-usage-for-a-process</a></font></font><br>
<font face="Times New Roman">[4]
<a class="moz-txt-link-freetext" href="http://ask.xmodulo.com/view-threads-process-linux.html">http://ask.xmodulo.com/view-threads-process-linux.html</a></font><br>
[5]
<a class="moz-txt-link-freetext" href="https://superuser.com/questions/1123705/using-linux-top-how-do-i-view-the-thread-count-of-a-process">https://superuser.com/questions/1123705/using-linux-top-how-do-i-view-the-thread-count-of-a-process</a><br>
[6]
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/8032372/how-can-i-see-which-cpu-core-a-thread-is-running-in">https://stackoverflow.com/questions/8032372/how-can-i-see-which-cpu-core-a-thread-is-running-in</a><br>
[7] <a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Ganglia_(software)">https://en.wikipedia.org/wiki/Ganglia_(software)</a><br>
[8]
<a class="moz-txt-link-freetext" href="https://www.osc.edu/supercomputing/batch-processing-at-osc/monitoring-and-managing-your-job">https://www.osc.edu/supercomputing/batch-processing-at-osc/monitoring-and-managing-your-job</a><br>
[9] <a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Man_page">https://en.wikipedia.org/wiki/Man_page</a><br>
<p><br>
</p>
<div class="moz-cite-prefix">On 7/8/2019 1:03 PM, Peter Blaha wrote:<br>
</div>
<blockquote type="cite"
cite="mid:00338e7d-eee5-d2a0-85fb-49c7e5966c0f@theochem.tuwien.ac.at">You
have to explain exactly what you are doing and what the jobs do or
not.
<br>
<br>
a) How did you compile wien2k ? ifort or gfortran ??? Which blas ?
<br>
<br>
b) I do not understand your statement:
<br>
<br>
<blockquote type="cite"> I have seen it directly
from cpu monitor. The usage of the cpus are 100% at all the 48
cpus (24 core). I have started 4 calculations & the cpu
usage are as follows:
<br>
lapw1 2400
<br>
lapw1 600
<br>
lapw1 400
<br>
lapw1 100
<br>
</blockquote>
<br>
So you had 24 cores, 6 cores, 4 cores and only 1 core on the 4
jobs ???
<br>
They are all different, aren't they ??
<br>
<br>
Why are you saying they use 48 (or 24 cores) ???
<br>
<br>
What is "cpu monitor" ???
<br>
<br>
What are the case.dayfile outputs telling you ???
<br>
<br>
I'd like to see the timing lines in the dayfiles.
<br>
<br>
The timing should be different for these 4 jobs ....
<br>
<br>
<br>
<blockquote type="cite">
<br>
Eagerly waiting for your advice.
<br>
<br>
with regards,
<br>
<br>
On Mon, 8 Jul 2019 at 21:33, shamik chakrabarti
<<a class="moz-txt-link-abbreviated" href="mailto:shamik15041981@gmail.com">shamik15041981@gmail.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:shamik15041981@gmail.com"><mailto:shamik15041981@gmail.com></a>> wrote:
<br>
<br>
Dear Sir,
<br>
<br>
I have seen it directly from cpu monitor.
The usage
<br>
of the cpus are 100% at all the 48 cpus (24 core)
<br>
<br>
On Mon, 8 Jul 2019 at 21:11, Peter Blaha
<br>
<<a class="moz-txt-link-abbreviated" href="mailto:pblaha@theochem.tuwien.ac.at">pblaha@theochem.tuwien.ac.at</a>
<a class="moz-txt-link-rfc2396E" href="mailto:pblaha@theochem.tuwien.ac.at"><mailto:pblaha@theochem.tuwien.ac.at></a>>
<br>
wrote:
<br>
<br>
How did you find out that it has taken all 24 cores ?
<br>
<br>
Am 08.07.2019 um 13:06 schrieb shamik chakrabarti:
<br>
> Dear wien2k users,
<br>
>
<br>
> I have installed
wien2k in a
<br>
system having
<br>
> Ubuntu. If I set OMP_NUM_THREAD = 2/3/4, it is
taking all the
<br>
available
<br>
> 24 cores. Whereas if I set OMP_NUM_THREAD = 1 it
is taking
<br>
only 1 cpu
<br>
> per calculation. My query is how can I use more
than 1 cpu
<br>
but less than
<br>
> the total available cores (say I want to use 20
cores while
<br>
total
<br>
> available cores are 24)..
<br>
>
<br>
> Any response in this regard will be helpful for
us.
<br>
>
<br>
> with regards,
<br>
>
<br>
> --
<br>
> Dr. Shamik Chakrabarti
<br>
> Project Employee
<br>
> Dept. of Metallurgical and Materials Engineering
<br>
> IIT Kharagpur
<br>
> Kharagpur-721302
<br>
> INDIA
<br>
>
<br>
> _______________________________________________
<br>
> Wien mailing list
<br>
> <a class="moz-txt-link-abbreviated" href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a>
<br>
<a class="moz-txt-link-rfc2396E" href="mailto:Wien@zeus.theochem.tuwien.ac.at"><mailto:Wien@zeus.theochem.tuwien.ac.at></a>
<br>
>
<a class="moz-txt-link-freetext" href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a>
<br>
> SEARCH the MAILING-LIST at:
<br>
<a class="moz-txt-link-freetext" href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a>
<br>
>
<br>
<br>
--
--------------------------------------------------------------------------<br>
Peter BLAHA, Inst.f. Materials Chemistry, TU Vienna,
A-1060 Vienna
<br>
Phone: +43-1-58801-165300 FAX:
+43-1-58801-165982
<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:blaha@theochem.tuwien.ac.at">blaha@theochem.tuwien.ac.at</a>
<br>
<a class="moz-txt-link-rfc2396E" href="mailto:blaha@theochem.tuwien.ac.at"><mailto:blaha@theochem.tuwien.ac.at></a> WIEN2k:
<a class="moz-txt-link-freetext" href="http://www.wien2k.at">http://www.wien2k.at</a>
<br>
WWW:
<br>
<a class="moz-txt-link-freetext" href="http://www.imc.tuwien.ac.at/tc_blaha">http://www.imc.tuwien.ac.at/tc_blaha</a>-------------------------------------------------------------------------<br>
<br>
<br>
_______________________________________________
<br>
Wien mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a>
<br>
<a class="moz-txt-link-rfc2396E" href="mailto:Wien@zeus.theochem.tuwien.ac.at"><mailto:Wien@zeus.theochem.tuwien.ac.at></a>
<br>
<a class="moz-txt-link-freetext" href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a>
<br>
SEARCH the MAILING-LIST at:
<br>
<a class="moz-txt-link-freetext" href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a>
<br>
<br>
<br>
<br>
-- Dr. Shamik Chakrabarti
<br>
Project Employee
<br>
Dept. of Metallurgical and Materials Engineering
<br>
IIT Kharagpur
<br>
Kharagpur-721302
<br>
INDIA
<br>
<br>
<br>
<br>
-- <br>
Dr. Shamik Chakrabarti
<br>
Project Employee
<br>
Dept. of Metallurgical and Materials Engineering
<br>
IIT Kharagpur
<br>
Kharagpur-721302
<br>
INDIA
<br>
</blockquote>
</blockquote>
</body>
</html>