Question #688575 on Yade changed:
https://answers.launchpad.net/yade/+question/688575
Status: Answered => Open
ehsan benabbas is still having a problem:
Thank you for the answer. By doing -j4 the iter/sec will increase.
But, when I use the following command:
cat /proc/cpuinfo | grep processor -c
I get "8" as an output which means my PC has 8 processor. (is that right?)
At the same time, if I use the follwoing command:
cat /proc/cpuinfo
This will be my output
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
stepping : 3
microcode : 0x27
cpu MHz : 3780.467
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb
rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology
nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est
tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt
tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb
invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid
ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida
arat pln pts md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds
swapgs itlb_multihit
bogomips : 6784.72
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
Which means my PC has 4 cores. Watching the "System Monitor" of my
Ubuntu, I see 8 CUPs (CUP1, CUP2,...,CUP8). So, it means that these 4
cores have 8 processors overall (is that correct?)
When I run my code by the following command
/home/ehsan/yade/install/bin/yade-2019-08-08.git-775ae74 -j4 packing.py
Only 4 CUPs of those 8 CUPs in "System Monitor" will be engaged and the other 4
will not.
When I run my code with the following command
/home/ehsan/yade/install/bin/yade-2019-08-08.git-775ae74 -j8 packing.py
I get lower rate for iter/sec in comparison with -j4 while in "System Monitor"
all 8 CPUs are engaged.
--
You received this question notification because your team yade-users is
an answer contact for Yade.
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp