mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2022-09-30, 15:33   #738
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

23·33·11 Posts
Default

Quote:
Originally Posted by kriesel View Post
Yes, and there's empirical evidence that using almost all the dual-CPU-system's ram in prime95 is suboptimal compared to using almost all the near ram on each CPU, in P-1 stage 2, and leaving the rest to be used for the other CPU's processes. Mprime / prime95 needs a little user assistance apparently to ensure it's the near ram in the multi-CPU (not merely multi-core) case.
I believe you are saying there is no efficient or easy way to use both. IMO, this would take some really deep programming on George's part. I do not know that he would want to mess with it.

Off topic: I wish there was a console (Win64) version of Prime95. All the GUI baggage would be gone. I have used and like mprime for this very reason.
storm5510 is offline   Reply With Quote
Old 2022-09-30, 16:32   #739
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

33·263 Posts
Default

Quote:
Originally Posted by storm5510 View Post
I believe you are saying there is no efficient or easy way to use both. ... All the GUI baggage would be gone. I have used and like mprime for this very reason.
It's easy to use all cores in one prime95 instance, on a dual-Xeon system. I've been doing that for years. Easy, but maybe not the most throughput. There was a performance dip seen going through 64 GiB ram allowed for P-1 etc on a 128 GiB dual-Xeon machine.

For computing efficiency, for P-1, on a dual-Xeon, I'm using two prime95 instances via the NUMA aware start command, each confined to its own single Xeon package/NUMA node/quad-channel ram access.

Long ago Madpoo reported results for a dual-14-core IIRC, observing a maximum speed of iterations, around 20 cores total.

For George to dive into making prime95, mprime etc, significantly NUMA aware, it would need to be a higher priority than some other choices for his time & talent. I'm not convinced there are enough dual-Xeon machines to justify it, and he hasn't a test machine himself. Right now IIUC he's bringing the polynomial performance to ECM that was in v30.8 introduced for P-1. Maybe P+1 is next? And there's the occasional bug identification and fix, etc.

If you want to run cmd line like mprime, on a Windows system, perhaps you could install WSL on Windows, and run mprime in the Linux environment that provides.

Last fiddled with by kriesel on 2022-09-30 at 16:37
kriesel is offline   Reply With Quote
Old 2022-10-01, 16:52   #740
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

23·33·11 Posts
Default

Quote:
Originally Posted by kriesel View Post
...If you want to run cmd line like mprime, on a Windows system, perhaps you could install WSL on Windows, and run mprime in the Linux environment that provides.
I have WSL1 with Ubuntu 20.04.4 on this system but it is really uncooperative. None of the console commands I use with the dedicated Linux box on another system seem to work here. I know mprime is here somewhere, but it shows no folders when I use "dir." I do not know what its problem is. All of its folders, if there are any, are buried really deep in the OS. They should not be. This makes it difficult to use with something like mfaktc where the work files must be manually edited. So, I do not mess with it.
storm5510 is offline   Reply With Quote
Old 2022-10-01, 17:31   #741
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

33·263 Posts
Default

Better WSL1 than WSL2, for looking at linux data from the Windows side. Don't move or delete it from the Windows side though; that won't handle linux inodes properly, or some such, and makes a mess.
In WSL1, path on the Windows side is probably something analogous to
C:\Users\(Windows-username)\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\(Linux-username?)
Find and make shortcut for future reference.

Of course, "dir" won't work at the Ubuntu command line. And neither will Windows paths. (Drive id's, / vs. \, other path differences)
kriesel is offline   Reply With Quote
Old 2022-10-02, 11:49   #742
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

6,011 Posts
Default

Replace dir with ls

I typically store all my data on the windows drives from wsl2.
henryzz is offline   Reply With Quote
Old 2022-10-02, 16:20   #743
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

1001010010002 Posts
Default

Quote:
Originally Posted by kriesel View Post
Better WSL1 than WSL2, for looking at linux data from the Windows side. Don't move or delete it from the Windows side though; that won't handle linux inodes properly, or some such, and makes a mess.
In WSL1, path on the Windows side is probably something analogous to
C:\Users\(Windows-username)\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\(Linux-username?)
Find and make shortcut for future reference.

Of course, "dir" won't work at the Ubuntu command line. And neither will Windows paths. (Drive id's, / vs. \, other path differences)
Too late. I already updated it to WSL2 yesterday evening. I don't see any difference.

I used "Canonical" for a search. I have two sets of folders with this name. See the attached image. One is two years old and another is recent.

I do not want to pull this way off-topic or make it a long drawn-out subject!
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	18
Size:	30.6 KB
ID:	27403  
storm5510 is offline   Reply With Quote
Old 2022-10-02, 17:42   #744
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

33·263 Posts
Default

Quote:
Originally Posted by kriesel View Post
Error setting affinity to cpuset 0x000000c0: No error
(refer to attachment of https://mersenneforum.org/showpost.p...&postcount=731)
Adding AffinityVerbosity=0 to prime.txt and restarting prime95 did not resolve it.
kriesel is offline   Reply With Quote
Old 2022-10-02, 18:29   #745
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

22·43·47 Posts
Default

Quote:
Originally Posted by kriesel View Post
Adding AffinityVerbosity=0 to prime.txt and restarting prime95 did not resolve it.
What does hwloc report for the configuration when running two prime95s each bound to their own NUMA node?
(run benchmark and quickly stop it, look in results.bench.txt)
Prime95 is offline   Reply With Quote
Old 2022-10-02, 18:34   #746
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

100110000112 Posts
Default

The problem is:
kriesel sets the affinities to only one hyperthread per physical core but Prime95 tries to set the workers' affinity to both hyperthreads per core. Since one of them is not available by the OS, the error occurs.
kruoli is online now   Reply With Quote
Old 2022-10-02, 19:22   #747
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

11111100101002 Posts
Default

Quote:
Originally Posted by kruoli View Post
The problem is:
kriesel sets the affinities to only one hyperthread per physical core but Prime95 tries to set the workers' affinity to both hyperthreads per core. Since one of them is not available by the OS, the error occurs.
Why would the OS restrict setting affinity to both logical processors of one physical processor?
Prime95 is offline   Reply With Quote
Old 2022-10-02, 19:25   #748
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

100110000112 Posts
Default

If the user has set the affinity by hand, the OS should not give the program the possibility to extend this.
kruoli is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do not post your results here! kar_bon Prime Wiki 40 2022-04-03 19:05
what should I post ? science_man_88 science_man_88 24 2018-10-19 23:00
Where to post job ad? xilman Linux 2 2010-12-15 16:39
Moderated Post kar_bon Forum Feedback 3 2010-09-28 08:01
Something that I just had to post/buy dave_0273 Lounge 1 2005-02-27 18:36

All times are UTC. The time now is 10:39.


Tue Nov 29 10:39:37 UTC 2022 up 103 days, 8:08, 0 users, load averages: 0.52, 0.83, 1.02

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔