mersenneforum.org  

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

Reply
 
Thread Tools
Old 2021-03-10, 18:53   #1
sp00n
 
Dec 2020

10102 Posts
Default Prime95: INI_FILE settings limited to 80 characters

This is taken from the source file for version 30.3b6.
In the common.c file the various INI settings are defined as e.g.
Code:
IniGetString (INI_FILE, "local.ini", LOCALINI_FILE, 80, LOCALINI_FILE);
IniGetString (INI_FILE, "worktodo.ini", WORKTODO_FILE, 80, WORKTODO_FILE);
IniGetString (INI_FILE, "results.txt", RESFILE, 80, RESFILE);
which limits the value to 80 characters.

I was trying to write the log file to a different directory than where the binary file and the prime.txt/local.txt are, and if you're using a longer file name (e.g. by adding the date and time) or a longer directory name, these 80 characters can be exceeded, which in turn cuts off the name of the file that is generated in the provided directory.

Example:
Directory of the prime95.exe: D:\Benchmarking\Prime95\30.3b6\binaries\
Directory of results.txt file: D:\Benchmarking\Prime95\30.3b6\logs\
Name of results.txt: Prime95_results_2020-12-31_23_59_59_FFT_248-8192.txt

Expected file name:
D:\Benchmarking\Prime95\30.3b6\logs\Prime95_results_2020-12-31_23_59_59_FFT_248-8192.txt

Actual file name (cut off after 80 characters):
D:\Benchmarking\Prime95\30.3b6\logs\Prime95_results_2020-12-31_23_59_59_FFT_248


Is there any particular reason why there's a limit to 80 characters and not to ~260 characters like Windows supports?

I seem to have been able to work around this by setting the WorkingDir= directive to one level above the directory where the .exe is located then setting prime.ini=, local.ini= and results.txt= as a relative path from that directory.
It appears to be working, but it seems unnecessarily complicated.

These are the resulting entries in the prime.txt, of course, they're only examples.
(I also find it a bit weird that you can set the file name for the prime.ini/txt in that exact prime.txt.)
Code:
WorkingDir=D:\Benchmarking\Prime95\30.3b6
prime.ini=binaries\prime.txt
local.ini=binaries\local.txt
results.txt=logs\Prime95_results_2020-12-31_23_59_59_FFT_248-8192.txt
So I'd suggest to change the 80 character limit to something higher in a future release so that these kind of workarounds aren't required anymore.

(Also, for more than just stress testing, you'd probably have to modify the other settings as documented in undoc.txt to the relative path as well.)

Last fiddled with by sp00n on 2021-03-10 at 18:53
sp00n is offline   Reply With Quote
Old 2021-03-10, 21:55   #2
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

22×54 Posts
Default

The 80-character limit is a relic of a bygone era when most computer screens could not display more than 80 columns. I agree it's no longer relevant in this day and age.

Last fiddled with by ixfd64 on 2021-03-11 at 01:50
ixfd64 is offline   Reply With Quote
Old 2021-03-10, 22:58   #3
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

32·911 Posts
Default

Prime95 is a relic, There are 8.3 limits in some of the code. I'll boost the limits you mentioned in 30.5.
Prime95 is offline   Reply With Quote
Old 2021-03-11, 01:46   #4
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

165718 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Prime95 is a relic, There are 8.3 limits in some of the code. I'll boost the limits you mentioned in 30.5.
It would be great if the obfuscated-exponent filename consequences of that residual 8.3-ness went away.
Quick, what exponent does file pA852841.residues relate to? pA851779.proof?
kriesel is offline   Reply With Quote
Old 2021-03-11, 15:25   #5
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

5·112·17 Posts
Default

Quote:
Originally Posted by kriesel View Post
Quick, what exponent does file pA852841.residues relate to? pA851779.proof?
Plus one for that! Well spotted! May George be healthy and have free time in the future, so he fix all those relics...

Last fiddled with by LaurV on 2021-03-11 at 15:26
LaurV is offline   Reply With Quote
Old 2021-03-11, 16:08   #6
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

3×5×503 Posts
Default

Also p8U82187 and related .bu* (dated today and yesterday, produced by prime95 v30.4b9 LL DC of M55882187)
There are p(clear 9 digit exponent) files produced in the same folder during the same time frame, from other work types from other workers on that instance.

pA853833.* from PRP-CF of M10853833

(and more examples like the above)

Last fiddled with by kriesel on 2021-03-11 at 16:09
kriesel is offline   Reply With Quote
Old 2021-03-11, 16:30   #7
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·3·5·373 Posts
Default

Quote:
Originally Posted by LaurV View Post
Plus one for that! Well spotted! May George be healthy and have free time in the future, so he fix all those relics...
+1!

Thanks, George!
chalsall is offline   Reply With Quote
Old 2021-03-11, 16:53   #8
sp00n
 
Dec 2020

2·5 Posts
Thumbs up

Quote:
Originally Posted by Prime95 View Post
Prime95 is a relic, There are 8.3 limits in some of the code. I'll boost the limits you mentioned in 30.5.
Great, thanks.
sp00n is offline   Reply With Quote
Old 2021-03-12, 04:45   #9
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

1028510 Posts
Default

Quote:
Originally Posted by kriesel View Post
Also p8U82187 of M55882187
pA853833.* from PRP-CF of M10853833
(and more examples like the above)
To be fair, we know (and always knew) how to decode those, there is some explanation in those .txt files sent with P95, which no one reads them ever. But it would be indeed wonderful if George fix the checkpoint names and temp file names, to something more clear and palatable, considering the new invention called "long file names".
We wouldn't mind zero-filled names to 9 positions, so we can sort them properly in the folder when there are different numbers of digits (edit: like for example M098765432_blah_blah.bkp, to be sorted before M123456789_blah_blah.bkp, and not M98765432_blah_blah.bkp).

Last fiddled with by LaurV on 2021-03-12 at 04:51
LaurV is offline   Reply With Quote
Old 2021-03-12, 17:25   #10
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

3·5·503 Posts
Default

The readme.txt file list section seems to indicate they'll have alpha first char, numeric ASCII for exponent. But the 7 N's don't fit even current DC exponents.

Code:
cNNNNNNN,cNNNNNNN.buN    Intermediate files produced during certification runs.
pNNNNNNN,pNNNNNNN.buN    Intermediate files produced by prime95.exe to resume computation where it left off.
pNNNNNNN.residues    Large intermediate file produced during PRP test for constructing a PRP proof.
pNNNNNNN.proof        PRP proof file.
eNNNNNNN,eNNNNNNN.buN    Intermediate files produced during ECM factoring.
fNNNNNNN,fNNNNNNN.buN    Intermediate files produced during trial factoring.
mNNNNNNN,mNNNNNNN.buN    Intermediate files produced during P-1 factoring.
I didn't see an explanation for the leading or embedded alpha characters.
Nothing relevant to that found searching readme, whatsnew, or undoc, for "file" or "8.3".
Where's it to be found?

Last fiddled with by kriesel on 2021-03-12 at 17:26
kriesel is offline   Reply With Quote
Old 2021-03-12, 20:45   #11
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

32·911 Posts
Default

Quote:
Originally Posted by kriesel View Post
Where's it to be found?
The usual answer: dig into C code.
Prime95 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about the settings at Prime95 Bommer1 Software 3 2019-11-25 13:05
prime95 settings evanh Software 3 2017-12-04 15:18
Some Prime95 settings lost rharmz Software 1 2014-05-20 07:36
Prime95 always uses nighttime settings fox_mccloud_123 Information & Answers 6 2013-05-07 21:12
NFS and quadratic characters jasonp Factoring 8 2006-08-05 21:06

All times are UTC. The time now is 11:27.


Thu Mar 30 11:27:23 UTC 2023 up 224 days, 8:55, 0 users, load averages: 1.38, 1.03, 0.82

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.

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