mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2017-12-03, 11:06   #1
daxmick
 
daxmick's Avatar
 
Feb 2014

10101002 Posts
Default prime95 in a Docker container issue/question

I'm experimenting on different way to run/deploy prime95 and I thought maybe having the program in a LXC or Docker container would be an easy way to deploy to many machines.

However, I have an issue. It appears that a Docker containers are non-persistent. (Meaning that any changes written to disk within the container are lost at the next power down of that container.) Yes, you can "mount" another folder outside of the container but that kind of defeats the purpose I'm trying to get at... UNLESS, there is a way to run mprime within the container, along with some of the permanent files (like prime.txt) but then store the non-permanent files (like local.txt and worktodo.txt) in a mounted directory outside of the container (thus they would persist after a power down of the container).

Sorry, a bit long winded. In short, is there a way to put local.txt, worktodo.txt (and other changing files) in a different directory than where mprime runs?
daxmick is offline   Reply With Quote
Old 2017-12-03, 11:49   #2
S485122
 
S485122's Avatar
 
"Jacob"
Sep 2006
Brussels, Belgium

7·281 Posts
Default

Yes, This is explained in readme.txt and undoc.txt.

Jacob
S485122 is offline   Reply With Quote
Old 2017-12-03, 12:18   #3
daxmick
 
daxmick's Avatar
 
Feb 2014

22·3·7 Posts
Default

Quote:
Originally Posted by S485122 View Post
Yes, This is explained in readme.txt and undoc.txt.
Jacob
Thank you for the reminder, and this might help others who have failed to read all the information available before posting a question. That said, I have read all the txt files in the folder and I think my question is still a valid one. Obviously I may have missed the command line argument you are suggesting I use. Could you be more specific than just RTFM?

I'm assume you are referring to the '-W' command line argument but that appears to refer to loading ALL the configuration files from a different directory. I want to leave prime.txt where it is and only read local.txt, worktodo.txt, (and the temporarily created files) from a different directory. That said, am I reading the '-W' option incorrectly?

I just thought of a possible "alternative" way to accomplish what I'd like BUT I'm not sure of its ramifications. I guess I could create a softlink (ln -s) for the local.txt and worktodo.txt files but I don't know if this solution would be possible for the other dynamically generated files.
daxmick is offline   Reply With Quote
Old 2017-12-03, 13:06   #4
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

160658 Posts
Default

This might be a sufficiently valuable question to be moved to the software forum. Although I mostly lurk the GIMPS fora these days, I believe docker-ization would be quite useful to increasing general GIMPS participation -- yet this is the first I've heard of it for Prime95. You might get better exposure in the Software forum rather than the question and answer forum. (And not just because of the dockerization thing -- I believe the specific problem here you're asking about is non-trivial, though as I intimated above I haven't read the docs for Prime95 in a few years. You say that you have, and your comments align with my memory, hence my suggestion.)
Dubslow is offline   Reply With Quote
Old 2017-12-03, 13:13   #5
S485122
 
S485122's Avatar
 
"Jacob"
Sep 2006
Brussels, Belgium

7·281 Posts
Default

undoc.txt starts with some options to store some files elsewhere :

"In prime.txt you can force the program to use different filenames for 6 files.
You can also change the working directory (identical to the -W command line
argument).
prime.ini=your_filename
local.ini=your_filename
worktodo.ini=your_filename
prime.log=your_filename
prime.spl=your_filename
results.txt=your_filename
WorkingDir=your_directory_name"

But don"t forget that prime.txt contains two settings about the machine : HardwareGUID and WindowsGUID. You should look up FixedHardwareUID=1 in the documentation.

Not sure how you could achieve what you want (use "Docker" for deployment...)

Jacob
S485122 is offline   Reply With Quote
Old 2017-12-03, 13:51   #6
daxmick
 
daxmick's Avatar
 
Feb 2014

22·3·7 Posts
Default

Quote:
Originally Posted by S485122 View Post
undoc.txt starts with some options to store some files elsewhere :

"In prime.txt you can force the program to use different filenames for 6 files.
You can also change the working directory (identical to the -W command line
argument).
prime.ini=your_filename
local.ini=your_filename
worktodo.ini=your_filename
prime.log=your_filename
prime.spl=your_filename
results.txt=your_filename
WorkingDir=your_directory_name"

But don"t forget that prime.txt contains two settings about the machine : HardwareGUID and WindowsGUID. You should look up FixedHardwareUID=1 in the documentation.

Not sure how you could achieve what you want (use "Docker" for deployment...)

Jacob
Thank you for a more detailed response! I really do appreciate it. So, if I read you correctly, I could put in the "your_filename" a complete path to the file, yes? If so, that would certainly solve this issue.
daxmick is offline   Reply With Quote
Old 2017-12-03, 15:19   #7
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

160658 Posts
Default

Quote:
Originally Posted by daxmick View Post
Thank you for a more detailed response! I really do appreciate it. So, if I read you correctly, I could put in the "your_filename" a complete path to the file, yes? If so, that would certainly solve this issue.
Should be, yes. Those strings should be directly passed to the C lib functions, which should be in turn directly passed to the relevant syscalls, which can certainly handle relative or absolute paths on the fly with no problem.
Dubslow is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
prime95 in a Docker container issue/question daxmick Software 1 2017-12-03 16:06
Prime95 for Mac Timer Issue tapion64 PrimeNet 1 2014-04-18 20:42
Question about Prime95 Warlord Software 6 2013-09-30 00:17
Windows 7 Windows Update & Prime95 issue!!! Unregistered Information & Answers 14 2010-04-10 21:47
Simple question on Prime95 xtreme2k Software 4 2003-04-02 08:35

All times are UTC. The time now is 16:15.


Sun Oct 1 16:15:36 UTC 2023 up 18 days, 13:57, 0 users, load averages: 1.35, 1.38, 1.17

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, 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.

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